The point is that lambdas don't have to be tied to the class and can easily change on the fly.
I never understood the draw of anonymous inner classes, or plain old inner classes, especially for GUI code. I never used it, because I hate repeating myself and that is what this clunky mess causes, and it also makes it difficult to reuse the code with different behaviors. I always just had a method in the GUI widget class that accepted listeners dynamically so behaviors could easily change in my Swing library I built up.
Following Java conventions leads to a bloated, un-DRY and ultimately difficult to maintain code base.
It just makes updating take that much more bandwidth and time.
When I do use Java(it is usually JRuby) I use 1 jar per top level package and try very hard to make each jar file follow the Unix way(do one thing and do it well). It works great to keep things properly separated and is fantastic for updating.
Two libraries could concievably have the same package and class name causing conflicts. Of course that is why the verbose and nasty com.myurl.ten.layers.of.packages.to.get.to.a.class namespacing occurs.
I have seen what happens when Redbox crashes to the desktop.
It couldn't connect to the database so it decided its best option was to kill off the rental interface leaving the desktop visible with a virtual keyboard.
Back before Qwest got bought out by CenturyLink, you could pick various DSL providers, and MS was one of them. Don't know if they still do that but MS definitely is an ISP with webmail, Azure, etc.
Funny thing is that Jonathon Martin was absolutely vilified for speaking out against him being harassed.
Guess male on male harassment is still okay in many people's eyes.
I have known women "programmers" who couldn't write a hello world program by themselves who cry discrimination when confronted with their incompetence.
Until that sort of thing stops, and vile people like that entitled brat in the Donglegate farce go away, women claiming harassment in IT will always go under a microscope.
This is as stupid as the encryption export restrictions. It is like the government thinks that no one can implement encryption or that foreign code is dirty.
How about they put some restrictions where it matters like toys and dog food from China?
A confession is not at all the same thing as pleading guilty.
The OP is right, a confession alone is not sufficient for conviction. Go to a cop and confess to a crime you didn't commit. You might get slapped with filing a false statement but you will not get convicted on the crime you confessed to.
Re:Too Little, Too Late & MtGox
on
The New PHP
·
· Score: 1
Rasmus couldn't figure out how to write a parser to detect variables without appending a $ on it. There is no other reason.
At least other languages that have sigils in variable names exist for semantic reasons, not to make your crappy parser happy. For example Ruby, $, @ and @@ all have semantic meaning as do variable that have no sigil.
Re:Wake me they fix namespaces
on
The New PHP
·
· Score: 1
You can't determine equality without checking if they are transitive.
It is fairly basic math, checking if its reflexive, symmetric and transitive all determine equality, all three properties have to be true.
The point is that lambdas don't have to be tied to the class and can easily change on the fly.
I never understood the draw of anonymous inner classes, or plain old inner classes, especially for GUI code. I never used it, because I hate repeating myself and that is what this clunky mess causes, and it also makes it difficult to reuse the code with different behaviors. I always just had a method in the GUI widget class that accepted listeners dynamically so behaviors could easily change in my Swing library I built up.
Following Java conventions leads to a bloated, un-DRY and ultimately difficult to maintain code base.
Why?
It just makes updating take that much more bandwidth and time.
When I do use Java(it is usually JRuby) I use 1 jar per top level package and try very hard to make each jar file follow the Unix way(do one thing and do it well). It works great to keep things properly separated and is fantastic for updating.
Two libraries could concievably have the same package and class name causing conflicts. Of course that is why the verbose and nasty com.myurl.ten.layers.of.packages.to.get.to.a.class namespacing occurs.
Can you sort an array like so in Java
public void swap(int a, int b)
{
int tmp=b;
b=a;
a=tmp;
}
swap(array[i],array[j]); ...
Answer: no you can not.
references in java are gimped pointers and have nothing to do with passing parameters.
What gets passed is a value, if it is a primitive, or an address if it is an object.
http://javadude.com/articles/p...
It is amazing how ignorant Java devs are.
Pass by reference means passing the address of the pointer, not the address stored in the pointer.
Didn't I see this drug on the criminally underrated Dredd?
Wrong, the intent is to encourage the creation of works and build a robust public domain.
Copyright is broke because the latter no longer exists in any real sense on works created in the last 100 years or so.
I have seen what happens when Redbox crashes to the desktop.
It couldn't connect to the database so it decided its best option was to kill off the rental interface leaving the desktop visible with a virtual keyboard.
And full admin rights
It continues and always will because of how people are.
Back before Qwest got bought out by CenturyLink, you could pick various DSL providers, and MS was one of them. Don't know if they still do that but MS definitely is an ISP with webmail, Azure, etc.
Funny thing is that Jonathon Martin was absolutely vilified for speaking out against him being harassed.
Guess male on male harassment is still okay in many people's eyes.
I have known women "programmers" who couldn't write a hello world program by themselves who cry discrimination when confronted with their incompetence.
Until that sort of thing stops, and vile people like that entitled brat in the Donglegate farce go away, women claiming harassment in IT will always go under a microscope.
Linux started out community driven and was like that for most, if not all of the 90's.
GitHub is closely connected to Git, not the other way around.
GitHub would be called HgHub or something if Git didn't exist. Git would be completely unaffected if Github didn't exist.
He had Florida as a toss-up, with a statistically insignificant lean towards Obama.
And that is exactly how Florida ended up.
+1
There is a difference between premature optimization and good programming. Sadly, the latter gets confused with the former.
Universities exist to produce an educated populace, it is not a job training center.
Without understanding the theory you are not going to be able to do much other than be an API monkey.
It runs fine with Wine.
Do you know the definition of export?
What is wrong with accepting code from Cubans?
This is as stupid as the encryption export restrictions. It is like the government thinks that no one can implement encryption or that foreign code is dirty.
How about they put some restrictions where it matters like toys and dog food from China?
A confession is not at all the same thing as pleading guilty.
The OP is right, a confession alone is not sufficient for conviction. Go to a cop and confess to a crime you didn't commit. You might get slapped with filing a false statement but you will not get convicted on the crime you confessed to.
Rasmus couldn't figure out how to write a parser to detect variables without appending a $ on it. There is no other reason.
At least other languages that have sigils in variable names exist for semantic reasons, not to make your crappy parser happy. For example Ruby, $, @ and @@ all have semantic meaning as do variable that have no sigil.
You can't determine equality without checking if they are transitive.
It is fairly basic math, checking if its reflexive, symmetric and transitive all determine equality, all three properties have to be true.
Just because all languages have flaws that does not mean that all languages are equally flawed.
PHP flaws >>>>>>>>>> <insert any non-esoteric language here>
That mysql_real_escape_string and other abominations such as register globals ever existed is proof of the dev teams incompetence.
The fact that they actually tried to use val > INT_MAX to detect integer overflow is just confirmation of their incompetence.