Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:This woman is an idiot.... (Score 5, Informative) 1255

Any belief that forcing public schools on everyone is seriously misguided. Nothing ever gets better when it's forced on people. The best schools in the world are in Finland, where a voucher system forces public schools to compete with private schools.

Uh, wrong. There are no private schools in Finland. Everyone gets the same education, and the results seem to be exactly what the author of TFA is suggesting.

Comment Re:Idiot (Score 1) 490

I've been quoting Beck for years, even a broken clock twice a day and all that. There is one thing he said which i think needs to be carved onto the mountain and NEVER forgotten which is "You do NOT shred the constitution to "get the bad guys" as its the constitution that keeps us from becoming the bad guys". I'm sorry if some don't like the guy but on that point he is right, once you start throwing out the rule book to "get the bad guys" the definition of bad guy just keeps growing until YOU are the bad guy.

Funny, because literally the only quote I remember from "A Man for All Seasons" is the exact same thing:

"And when the last law was down, and the Devil turned round on you—where would you hide, Roper, the laws all being flat? (He leaves him) This country’s planted thick with laws from coast to coast—man’s laws, not God’s—and if you cut them down—and you’re just the man to do it—d’you really think you could stand upright in the winds that would blow then?"

(http://www.sparknotes.com/lit/amanforallseasons/quotes.html Quote #4)

Comment Re:Getters and setters (Score 1) 543

Tangential question: What's the advantage of having getters and setters vs. just accessing the variable directly? If automatically generating getters and setters is just an easy/common thing, what function do they really serve?

Future-proofing. Due to the rigidity of Java/C++ you can't just switch a variable to a method call without breaking all your code (might also be true of C#, never bothered looking into it). So you give everything a getter/setter even if it's just Foo getBar() { return bar; } void setBar(Foo foo) { bar = foo; } for hundreds of lines.

Contrast to a language like Python, where you can transparently move from attribute access to methods just by putting the @property decorator on the methods.

Comment Re:3, 2, 1 (Score 1) 203

Elite computer scientists look down upon both because they are perceived as quick and dirty hacks. But that doesn't matter; for many applications, a quick and dirty hack is good enough.

If anyone wants to know why this is now a crock of shit, look no further than this post: http://me.veekun.com/blog/2012/07/28/quick-doesnt-mean-dirty/ It goes through the development of a simple web-app using proper technologies as the author discovers and uses them for the first time, and serves as a good introduction to Flask, SQLAlchemy, and Postgres.

Quote:

This is a recurring sentiment: developers telling me, well, yeah, Python may be all cool in your ivory tower, man, but like, I just want to write some programs.

To which I say: what the fuck are you people smoking? Whence comes this belief that anything claimed to be a better tool must be some hellacious academic-only monstrosity which actively resists real-world use?

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...