Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
Kllrnohj wrote:
And that is only two functional techniques[...]
"And those are the..."
Bahah. Wow Laughing
Kllrnohj wrote:
elfprince13 wrote:
But for the record, Java is fully capable of being a functional language.


Just what we needed!

Oh, wait, no. That isn't being a functional language, that is over-engineering well past the point of being retarded

And that is only two functional techniques - a far cry from being a functional language.

Also, all the casts to/from Object just highlights that Java really can't handle it in the first place.

I think I already covered these points in my post above. I think this falls under the "Java sux lol" part.
KermMartian wrote:
Kllrnohj wrote:
And that is only two functional techniques[...]
"And those are the..."


Haha, fail Kerm is fail.

"And those are the only two functional techniques" says something completely different.
Kllrnohj wrote:
KermMartian wrote:
Kllrnohj wrote:
And that is only two functional techniques[...]
"And those are the..."


Haha, fail Kerm is fail.

"And those are the only two functional techniques" says something completely different.


Fail k-usernames are fail.

"And those are only two functional techniques..." says something correctly.
Well, I know it's been a while, but here's something I came across:

Code:
repeated = String.format(String.format("%%0%dd", n), 0).replace("0",s);
Can you figure out what it does? Smile
I think the clue is in the name of the string variable. Wink
It would seen to be a truly TERRIBLE way to do (what is at least in C++) std::string.append((char)s,n), unless s is a string, which the name would seem to imply.
Well, actually it was Java, and it repeats the string s n times. I suppose the clue is in the variable name Wink.
And it is a pretty terrible way to do it.
merthsoft wrote:
Well, actually it was Java, and it repeats the string s n times. I suppose the clue is in the variable name Wink.
And it is a pretty terrible way to do it.
Yup, definitely agreed, and I was afraid that it might be Java. :/
So, I figured I'd revive this thread with this jewel:

Code:
string s = token;
token = s.Replace(Environment.NewLine, " ");
This is the only place the variable "s" is used in the entire function Smile
merthsoft wrote:
So, I figured I'd revive this thread with this jewel:

Code:
string s = token;
token = s.Replace(Environment.NewLine, " ");
This is the only place the variable "s" is used in the entire function Smile
Teehee. Very nice; I presume that that is your own wonderful code? Smile
That's code I get to maintain Very Happy
I don't know if this has been mentioned yet...

Code:
#define true false // Happy debugging, suckers!
SirCmpwn wrote:
I don't know if this has been mentioned yet...

Code:
#define true false // Happy debugging, suckers!
Ah yes, that's an oldie but a goodie. Smile
Oh dear:
http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/main/org/codehaus/groovy/runtime/ArrayUtil.java...
Oh my.
But what if I want a 251-element array?
File a bug report. Or make the last object an array?
Should I say anything about arbitrarily large arrays Very Happy
That's just sad, really, really sad.
My friend tried to make a Periodic Table kind of program in science class today and this is what he wrote:

TI Basic:

Code:
Input "ELEMENT:",Str1
If Str1="HYDROGEN"
Disp "ELEMENT PICKED:",Str1
.....


This continued for about 100 more elements of the periodic table. Sad [/code]
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 4 of 6
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement