Comment Re:Why? (Score 1) 355
for and while loops are syntactic sugar for GOTO's.
What do you think they compile down to?
smh
for and while loops are syntactic sugar for GOTO's.
What do you think they compile down to?
smh
Lambdas are far more useful than simply abstracting loops, which are an abstraction itself. You can actually pass in code to other methods so you don't have to use retardation like Comparable and Comparator to endlessly repeat yourself for each search or sort you want to perform that differs from the default implementation. At least interfaces can have implementation, that is a small improvement.
In Ruby because C# makes me feel dirty:
array.sort #default sort
array.sort {|l,r| rl} # reverse sort, pretending that reverse doesn't exist
array.sort{|l,r| l.some_valr.some_value}
Pre-Java 8, that was a painful thing to do. More usefully you can now use lambdas instead instead of the nasty boilerplate of anonymous classes to clean up your code for things like listeners.
Spend some time in Scala or JRuby and find out that you can do a lot, cleanly, concisely, easy to maintain and in a tenth of the LOC that Java requires. It will make your Java code better.
And no Java generics suck because of type erasure leading to this senselessness:
ArrayList myStrings = new ArrayList();
String tmp = (String)myStrings.get(0);
What a joke.
There are tools in IDE's to take care of the boilerplate but it still exists and still needs to be maintained.
What cracks me up are Java accessors and mutators that don't do any thing other than store and retrieve a value.
public void setIdiocy(SomeType idiot) {
this.idiot=idiot;
}
Just make the fields public, it is the same thing.
Well if Oracle succeeds they will get sued because a fair amount of the method headers in the API's are exactly the same as function headers in C or C++.
It is not implementation that Oracle is trying to protect, but function/method headers which are no different than a table of contents or an ingredient list in a recipe, neither of which of copy-writable.
What?
Joel is talking about moving your code to a new platform not updating your application.
Moving your code to the new shiny means that you aren't moving and are spending a lot of time and money not moving.
He is saying don't move to
It is not that complicated.
Python also broke backwards compatibility, and it caused the exact same kind of issue for teams that were entrenched in version 2.x.
Wrong, Python 2.x is still being developed. It is not like VB6 in the slightest. Python 2.7.10 was released just last month.
Yeah, Guido should have called Python 3 something else, but it is not like the differences are that massive if you want to upgrade to 3.
Yup
Once the number of games that will run on Linux reaches a tipping point, a lot of gamers, who build their own rigs any way will start moving to Linux because Windows is a ball-ache to keep clean and is an unnecessary expense. There is a reason MS is giving away Windows 10 for free for a year and it is not because of any altruism. They are trying to cock-block Steam from succeeding in their Linux push.
Gamers are about the last portion of the home PC market that MS has locked in.
err encryption-aware
It seems like just another point of failure to me.
The idea that it is useful when moving equipment has some merit, but you don't need an encryption-away FS to do it.
I am not sure what she is whining about, the RIAA members give very little money to the artists, using the term artist very loosely as it rarely describes RIAA acts, especially bland, uninspired crap like Taylor Swift.
Many acts are in debt to a major label even after a moderately successful album.
She should be used to getting reamed without lube.
You need a citation for the value, to everyone including business, of public highways and streets?
College acceptance rates might be higher but a huge reason for it is that private high schools are selective. Does that stat also include community colleges and regional universities where have a pulse and a HS diploma pretty much the only requirement?
Public schools have to take everyone, including those that will never even apply for college.
Those cables have no value.
They are a scam.
Pick any other cable at random and the odds are that they are equal quality to monster.
Sadly, the installer is not part of the F/OSS program and no license that I can think of makes injecting malware via the installer a license violation.
The problem is that Sourceforge, and other sites, are using OSS projects to spread malware.
Maybe GPLv4 will have a "third party sites can't inject malware into the download" clause. What Sourceforge is doing is far more harmful than 'Tivoization'
Seriously, an anti-Sourceforge/Download.com open source license is needed.
x/0, where x!=0 is always undefined.
Since infinity is not a number saying that x/0 is +/- infinity is nonsensical.
Love may laugh at locksmiths, but he has a profound respect for money bags. -- Sidney Paternoster, "The Folly of the Wise"