Page 3 of 3
<  1 2  3
Reply
   
 Coding. Where to start? 
 
 
  #31 (permalink)  
Old 05-04-2008, 09:07 AM
Regular

Group: Regulars
Location: Smirnoff county


Quote:
Originally Posted by toholio View Post
The reverse is also true, as you get better at design your coding will improve. When I look back at code I wrote way back when the thing that makes me shudder isn't the code it's the design the code is implementing.
Yeah you make a good point I will agree with you on that point.


Personally I don't see anything wrong with Java syntax.

I can go between different languages still, but I find the strict data typing in Java "comforting" if that makes sense LOL.
__________________
"The Toaster": White 2.0GHz C2D Macbook 2GB/250GB(Mothership)/SD, LEOPARD
"iTouchMeBabe": 16GB iPod Touch, 2.1 FW
"Smirnoff": G4 450MHz Sawtooth, Debian 4.0 PPC
BiRDBRAiN is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #32 (permalink)  
Old 05-04-2008, 01:00 PM
Regular

Group: Regulars
Location: S37°56.2' E145°07.6'


Quote:
Originally Posted by BiRDBRAiN View Post
Personally I don't see anything wrong with Java syntax.
My main complaint is it's a verbose mess. Part of this is probably the fault of the Java designers but huge part of it is its relationship to C's syntax. There's stuff in there tat makes perfect sense for a language that could just about be a set of assembly macros that isn't quite comfortable in a partially object orientated language like Java.

Then there are things which one might actually consider broken. Here's my most recent Java WTF:
Code:
// what does this return?
for(;;) {       	   
  try {
    return 1;
  } finally {
    break;	   
  }		   
}		   
return -1;
It's just just plain odd behaviour that it doesn't return 1. Flow shouldn't be modified like that. There's also a lot of superfluous syntax in there all of which is a carry over from C.

Quote:
Originally Posted by BiRDBRAiN View Post
I can go between different languages still, but I find the strict data typing in Java "comforting" if that makes sense LOL.
It makes perfect sense. I felt the same way right up until I "had" to start working in a dynamically typed language.

The basic argument here, and correct me if I'm assuming too much about your line of thought, is that you might pass an object into some code and have it explode because it does something horribly unexpected. This is a valid concern but turns out to be very rare in practice. There are two main reasons for this not being a big issue in dynamically typed languages (as I see it):
  1. One can, and should, design by interface not type. If an object supports the method setFireToPants() then we don't care what type the object actually is so long as it knows how to put a match to its clothing. There isn't likely to be method name collision because,
  2. The types you might be working with are limited by context. If I'm working with containers I'm unlikely to accidentally try to open() an Array. If I working with network connections I'm unlikely to try to flatten() a TCPSocket.

Take this all with a grain of salt. Most of my commercial experience is with C++ and Ruby not Java. If a Java guru is reading this, please correct me.

Perhaps we should have a discussion about strong and weak typing next.
toholio is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #33 (permalink)  
Old 07-04-2008, 12:27 AM
Regular

Group: Regulars
Location: Toongabbie, NSW


Just wanted to draw your attention to this famous quote:

Quote:
"...the best way to prepare [to be a programmer] is to write programs, and to study great programs that other people have written. In my case, I went to the garbage cans at the Computer Science Center and fished out listings of their operating system."
- Bill Gates (Microsoft Corporation)
Cheers
Steffen.
__________________
From the moment of commitment, nature conspires to help you
dotnet is online now
Profile CardPM
Go to the top of the page
Reply With Quote
 
Page 3 of 3
<  1 2  3
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
Region coding and new Macbooks remhh Notebooks 13 21-12-2007 03:01 PM
Email coding vid Mac OS X & All Software 8 19-10-2005 11:53 AM
html coding Jimbo Projects: Audio, Graphics, Video, HTPC and Programming 22 18-02-2005 07:38 AM