![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#51 | ||||
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
look a few threads up...
Quote:
Quote:
Quote:
- I like C style syntax because it's easier to read - well defined variables because it's easier to maintain - pure OO because it makes sence(to me) Bottom line, I don't like loose languages that has too few rules. Quote:
|
||||
|
|
|
|
|
#52 | ||
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
C-style languages aren't readable when you have to adjust yourself to the 103149127 styles of indenting adopted by people. Quote:
As for Python being weakly typed and C++ being strongly typed..... highly debatable, depending on your definition of strongly/weakly typed. May I recommend you read this. |
||
|
|
|
|
|
#53 |
|
Programmer
Join Date: Apr 2005
Posts: 73
Rep Power: 4
![]() |
Java CodeFu Challenge 1
OpenLoop, how about a challenge - demonstrate your Java code-fu versus my Python code-fu.
Here's a spec I just whipped up - it doesn't do anything particularly tricky or language specific - read data from a file, process the data, write data to a file. The actual design of the program internals can be whatever you feel best exhibits java style - the primary concern is that it reads the input processes it, and outputs correctly (that said, the prettier your code, the better). If, for instance, different parts of the output would be best done at different times then do it. If you accept, the next challenge will use OO ;-) Start with mydata.txt containing the following text 3213214214214214:0214214214214214 :@!42121242142: 23213214214 6262626426262 : 0xabc14214214de : 12132131242142144 2132132132976 :foo: 121 056612321: 0x670E43242DDDDDDDDDDDDDDDDDDDDDDDDDDDD4C Input
Processing:
Output (to mydata.txt):
The code should produce the same sum, average, and aggregate when run N times. --OH. |
|
|
|
|
|
#54 |
|
Programming Guru
![]() |
Yes, we should all just lead in to a giant flame war about why other people should convert to the languages we prefer.
![]() |
|
|
|
|
|
#55 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
|
|
#56 |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
little boys will always compare the 'thingies'
![]() 'tis a fact of nature.
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
#57 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
I don't see how this is a flame war. It's just a remotely heated discussion. It hasn't turned into "you smell" "no, you smell!" "NO! YOU smell" or anything.
|
|
|
|
|
|
#58 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
This thread is for verb and he was asking a simple question. Let's not hijack it into a flame war.
hydroxide, I got a better idea for you. See my other thread about prime numbers calculation to see which language is faster. Sure python code is compact, the same program could have 40% less code but like i said, it all comes at a cost. Candy is sweet, only if you don't care about your teeth |
|
|
|
|
|
#59 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
Interfaces give the appearence of multiple inheritance without giving the user the advantage of code reuse that true multiple inheritance brings. This is similar to Java 1.5.0 autoboxing, which gives the appearence of a complete object model without this actually being the case. With regards to Java being more powerful than Python, this depends on what you mean. Java is faster than Python, and arguably has more libraries, but Python is the more advanced language of the two. I'd put forward the suggestion that Python a more powerful language than Java, because it frequently allows one to implement programs in less code than Java. But it depends on your definition. I'd also define Java as being more powerful than C, something which you may disagree about. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|