Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Still... (Score 1) 193

I think he was just pinging me for the ideas, which do predate my efforts and is certainly fair -- I started my whole "object" approach to c in 1985.

Of course, the whole point was to avoid using compiler tech that generated code I didn't intend it to generate, and in that sense, I got what I was after.

I wish I could still write my code in assembler, though. I was never more at home than when churning out 6809 or 68000 code.

Comment Re:Still... (Score 4, Interesting) 193

Have you ever written C code which uses a switch statement based on what type a struct/union is and calling the relevant code for it?

No. When I use structures as objects (which is often), they almost always contain a pointer to a block of general methods appropriate to that structure, as well as containing any methods unique to the object, all of which are called through the object/structure, so it would be unusual, at least, to be testing the object type in order to choose an object-specific procedure to call. However, I do mark each object type with a specific ID and serial as they are created, along with a tag indicating what procedure created them, as these things facilitate some very useful memory management and diagnostic mechanisms.

Have you ever used qsort?

I am aware of qsort. But I have my own multi-method sort library that I use. Most of them locate the comparison mechanisms they are to use through the procedures specified by the objects they are asked to sort. Likewise list management, memory management, certain types of drawing primitives and image processing primitives, image handling mechanisms, associative storage, basically anything I have run into that I thought likely I would need more than once. I am positively locked into the idea that if I write it, I can fix it, and the number of bugs and problems that fall into the "maybe they'll fix the library someday" class are greatly reduced. I'm a little less picky if I have the source code to a capability I didn't actually write and can supply my own version if and as needed. A good example of something like that is SQLite. Actually having the source code and compiling it in reduces my inherent paranoia to a somewhat duller roar.

Comment Been there, had that done to us (Score 3, Insightful) 748

People owning and running businesses should be allowed to choose whith whom they associate and do business and then the ones which discriminate against otherwise good, paying customers can rightfully go under instead of being propped up by the policies of the state.

That's precisely the kind of thinking that led to child labor in factories and mines; it is also why we have to subsidize low paying jobs through our taxes so people can survive at a (somewhat) more reasonable level. It is what led to "whites only" and "separate bathrooms"; It is why the male/female employment ratios are so skewed; it is why older engineers are replaced by younger ones who know far less and don't have families to support; it is why the EPA, or something like it, really needs to exist. And so on.

Business, large and small, incorporated or not, as entities, resemble people only to the degree that most of them, left unregulated, exhibit sociopathy and/or psychopathy. History has shown this explicitly, time and time again. No one is guessing about this: the facts have been in for a long time, and new facts consistent with the old continue to arrive with distressing regularity.

The idea that business, left to its own discretions, will do the right thing is nothing more than a fantasy. Unregulated business is a very bad idea, and further, the premise that bad businesses will automatically fail because customers will do the right thing is equally bankrupt, and for many of the same reasons. Large numbers of people are both selfish and disinterested in the welfare of others.

Comment No wonder you're anonymous (Score 2) 748

Yes but that doesn't make the intestines a sexual organ.

Any body part with nerve endings and/or usable contact surfaces can be brought into play in sexual relations under the right circumstances. This has nothing do do with the gender of the party or parties involved. The fact that you don't know these things speaks very poorly about your competence and experience in the sexual arena.

Comment Still... (Score 3, Interesting) 193

...using c. Although I do like to comment thusly, and so prefer a compiler that understands at least basic c++:

// comment

I like to stay as close to the metal as I can get. I'd use assembler, but many of my projects are cross platform, so c it is.

Comment The 4th amendment... RIP (Score 3, Insightful) 376

This is why we Americans now have the Fourth Amendment, requiring due process (with various levels of proof) before interfering with someone's life.

Well, but that was a while ago. Now the legal system is using rationales like "hey, your MONEY doesn't have any rights, so we don't need due process to seize it, just suspicion" and also "terrorism", "you are on this list", and the big winner, "I think I'll just shoot you" (and often your dog, even, every once in a while, your cat), plus "we like searching your finances and communications without a warrant, so we do (IRS, NSA, DEA, other TLAs)", etc.

You gotta keep up a little better.

Also, the 4th constrains the federal government. With significant optimism poured on the 14th amendment, plus a judge who hasn't received his most recent bribes, the 4th also constrains state governments. It does not, however, constrain corporations or individuals. That is, of course, if anyone was still paying it serious notice, which is clearly not the case anyway.

This stuff actually depends upon civil law, and there, the rules are *completely* different and not at all what you expect. Or will enjoy. Civil law exists specifically so the system can hammer you in the event that criminal law is not up to the job. Any other usefulness is wholly coincidental.

Comment Clearly (Score 4, Interesting) 166

Java and so forth is not limited enough. Not even close. And outside of that, there's the whole "ooops, the bug let some code execute" that will plague browser-side executables forever, or as close to it as makes no difference.

This is one of the core (ha) problems with client-side execution in a general purpose machine.

If you want to host a reputable website, then the more you can put active functionality for the user in server-side CGI, the better you can actually take that high road. All this java-loaded stuff on websites is a constant invitation to problems. It's an idea that is only safe in a world without bad guys. And our world is hardly that -- even the ones that are supposed to be the good guys (the government) are bad guys now.

But if you can tell your users "turn off client side execution" and your website will still work, then all they need is a browser that can read HTML, CSS and CGI and follow the HTTP and HTTPS protocols. Then if you can get browser manufacturers to quit pretending that HTTPS provides "identity" so the browsers drop the SCARE tactics for self-signed certificates, we can all enjoy the web without nearly as much risk for the surfer or paid blackmail for the site owner.

For all of us who remember how to read and enjoy real web sites, this would just be another (good) day. On the other hand, if you're one of those who doesn't read, likes to type "tl;dr" (and thinks it's funny, instead of sad as heck) and/or one of the video-addicted, you're probably completely screwed. :)

Slashdot Top Deals

"More software projects have gone awry for lack of calendar time than for all other causes combined." -- Fred Brooks, Jr., _The Mythical Man Month_

Working...