Code is just logic and a fancy syntax behind it.
I keep my neutral opinion about it.
Btw the warm i said is 27C. Still not my liking.
I keep my neutral opinion about it.
Btw the warm i said is 27C. Still not my liking.
Humans can only gain meaning through syntax, so yes syntax is magicSyntax == magic
Cmon manMy opinion on code is that people get far too involved in talking about code
It's just boiling hot with the sun bearing down on us down here.On the topic of today's weather; it was sunny, but windy in a way that cuts to the bone.
I read it. There's some I agree with, and some I don't. The rest I don't understand what's he talking about T_TCoolsquid, read all of this then tell me the greatness of Java
class Foo {
private final int bar;
public Foo(int theBar) {
bar = theBar;
}
public Foo() {
this(1);
}
}
LinkedList<Integer> l = new LinkedList();
private void add(Integer... num) {
for(Integer toAdd : num)
l.add(toAdd);
}
add(1,2,3,4,5,6,7);
It's cold and cloudy. Perfect weather for Oahu... So how's the weather today?
Java is useful, but full of obnoxious and redundant syntax; Clojure seems cool, although I haven't messed with it yet aside from some cursory research; Perl is annoying; Ruby is OK; Python's procedural stuff is very good, but its object-orientation seems like it was cobbled together as an afterthought (unlike Java's, which the whole language was built around); Haskell is very useful and has an excellent tutorial, but strict static types and typeclasses can be annoying to debug on occasion (at least the compiler told me that I had to add Enum to all the functions that were supposed to accept any kind of number, so that helped, although the reports for other kinds of syntax errors are utterly useless); and I don't know a whole lot about C or C++ except that C++ has both procedural and object-oriented stuff going on at the same time, so it's like C and Java stacked on top of each other and can be really confusing.CODE OPINIONS NEEDED. ON THE DOUBLE
Though why are you commenting here? This is a place for werewolf players.I'd actually be OK with a separate "Coding Discussion" thread, if only to quiet all the people who want to use this thread to talk about other things...
Java is useful, but full of obnoxious and redundant syntax; Clojure seems cool, although I haven't messed with it yet aside from some cursory research; Perl is annoying; Ruby is OK; Python's procedural stuff is very good, but its object-orientation seems like it was cobbled together as an afterthought (unlike Java's, which the whole language was built around); Haskell is very useful and has an excellent tutorial, but strict static types and typeclasses can be annoying to debug on occasion (at least the compiler told me that I had to add Enum to all the functions that were supposed to accept any kind of number, so that helped, although the reports for other kinds of syntax errors are utterly useless); and I don't know a whole lot about C or C++ except that C++ has both procedural and object-oriented stuff going on at the same time, so it's like C and Java stacked on top of each other and can be really confusing.
Totally unrelated: It was actually warm where I am not for once today. It was warmer outside than in for the first time since, like, September.
Consturctors can call each other by using this.
Would let you doCode:class Foo { private final int bar; public Foo(int theBar) { bar = theBar; There are problems with that, it is detailed in the article [QUOTE="SoraZodia, post: 984635, member: 105965"]As for methods with the same names as consturctors, I can tell the different because of the return type.[/QUOTE] Still not good practice [QUOTE="SoraZodia, post: 984635, member: 105965"]For the section List Literals, [CODE]LinkedList<Integer> l = new LinkedList(); private void add(Integer... num) { for(Integer toAdd : num) l.add(toAdd); }
Code:add(1,2,3,4,5,6,7);
I like Perl for text manipulation and its many many libraries on CPAN. Hence why I used it for my irc botJava is useful, but full of obnoxious and redundant syntax; Clojure seems cool, although I haven't messed with it yet aside from some cursory research; Perl is annoying; Ruby is OK; Python's procedural stuff is very good, but its object-orientation seems like it was cobbled together as an afterthought (unlike Java's, which the whole language was built around); Haskell is very useful and has an excellent tutorial, but strict static types and typeclasses can be annoying to debug on occasion (at least the compiler told me that I had to add Enum to all the functions that were supposed to accept any kind of number, so that helped, although the reports for other kinds of syntax errors are utterly useless); and I don't know a whole lot about C or C++ except that C++ has both procedural and object-oriented stuff going on at the same time, so it's like C and Java stacked on top of each other and can be really confusing.
True, but there nothing stopping you from creating your own List class that has it. Or throw the idea to Oracle and they may add it inList literals would still be a better option.
Because this thread is as easy to read and follow for me as the scientific papers on basal ganglia function that I read at uni would most likely be for you. My response to all this code talk is "Wat?" and were I not on my phone and about to head off to bed, I'd supply an appropriate imagey u do dis rjs?
class String
def test_method
return "testing"
end
end
puts "ohai".test_method # Outputs "testing"