Lets say this. It wouldnt hurt.
In response to CaptFalcon33035
CaptFalcon33035 wrote:
Learning any programming languages would be beneficial to learning other languages. Programming will help you learn how many programs work, and if you experiment with different languages, you learn different things and develop your own style of programming.

If you've already had experience with one language, it's always easier to learn another and your experience can be really helpful if you plan on having a career in programming. I suggest OOP languages. With object-oriented programming, you learn the syntax and style of structured programming. Screw spaghetti code and never get into it.


What is spaghettic code? And I want to learn C++ over Java, but I have no where to learn :-(
In response to Moleboy
Also, let's say I learn Java at a pretty good level, what are it's limit's to helping me? After I know a certain amount of Java, would it just stop helping me in DM or can I just keep learning and getting better with DM by getting help from Java?


--Moleboy
In response to CaptFalcon33035
If it's college, they want the students leaving with a broad idea of several programming languages... no matter how confusing or ultimately useless they might be.
In response to Moleboy
Moleboy wrote:
Also, let's say I learn Java at a pretty good level, what are it's limit's to helping me? After I know a certain amount of Java, would it just stop helping me in DM or can I just keep learning and getting better with DM by getting help from Java?

Once you have a solid grasp on the underlying concepts, learning more and more details about Java (e.g. how the standard library is organised (poorly, by the way)) will not help you with DM.

But it may take you a while to learn Java that solidly. Depends how quickly you catch on.
In response to Moleboy
Moleboy wrote:
What is spaghettic code?

Imagine a bowl of spaghetti. Pretty messy, right? Now imagine that you are required to know exactly which strands of spaghetti go where; which places of the bowl they lie in, and which other pieces of spaghetti they touch. It's be a nightmare to poke through it and figure out how it all fit together.

That's spaghetti code. =) Basically it's just really badly organised code with lots of goto statements jumping all over the place so it's hard to unravel the workings of the system.
In response to Xx Dark Wizard xX
Xx Dark Wizard xX wrote:
1 public class per file is horrible, goto is useful in a switch and to break from a nested loop.

I don't use goto, normally when I want to break from multiple nested loops I'll have some kind of boolean variable can I set to true when I want them to break- but that's gross and ugly.

What really needs to be done is a break (and continue, etc.) that can take arguments.

break, break 0, break() or break(0) would break from the current loop.
break 1 or break(1) would break from the current loop before it.
break 2 or break(2)... you get the picture.
In response to Elation
The reason goto is good in switch is because some languages require break, and sometimes you may want to jump to the top of the loop. I don't consider goto a loop, I consider it the duct tape of programming.
In response to Elation
I like to use continuations a la Scheme. They completely eliminate goto-like structure in favor of an elegant logic flow, while still allowing arbitrary jumps between logical processes.
In response to CaptFalcon33035
You havent even tried java have you
In response to Elation
Elation wrote:
Xx Dark Wizard xX wrote:
1 public class per file is horrible, goto is useful in a switch and to break from a nested loop.

I don't use goto, normally when I want to break from multiple nested loops I'll have some kind of boolean variable can I set to true when I want them to break- but that's gross and ugly.

What really needs to be done is a break (and continue, etc.) that can take arguments.

break, break 0, break() or break(0) would break from the current loop.
break 1 or break(1) would break from the current loop before it.
break 2 or break(2)... you get the picture.

I think PHP has a break 2 or something. Not sure about other languages I know there is a continue label in some langauages.
In response to Moleboy
http://members.byond.com/hiead

On Hiead's hosted files, their are some great resources for people looking to learn C++. Please download the file so you do not have to continually do so every time you want to view the file. It'll save some bandwidth.

And next time you see Hiead, thank him for those resources. I've found them to be quite useful and is great for newbies to programming.

http://members.byond.com/Hiead/files/ C%2B%2B%20How%20to%20Program%2C%20Fifth%20Edition.chm

That book is great for newbies. It provides examples of all of it's work and really gets you into structured programming before you learn the language. So, you learn about classes and such while you're learning the basics about syntax and all. It really helps you stray away from C-like programming which is not object-oriented at all. OOP is the way of the future, man.
In response to Xx Dark Wizard xX
goto is the complete opposite of duct tape, from my perspective. I see that metaphor as presenting goto as a bond holding all of the programming together, y'know, 'cuz duct tape is strong and all.

goto make it fall apart. goto statements seem to make things operate much less smoothly and robust. Granted, if you know what you are doing really well, or you have no other way, goto may be acceptable. It's spaghetti code member number one, and we need to find a better way to do things than goto.
In response to Jermman
Yeah, and it's mega-crap and slow, so I just stopped. What the heck would you do in a situation like that?
In response to CaptFalcon33035
When I meanr duct tape I meant its useful in certain situations but regular tape will do fine (for() while()).
In response to CaptFalcon33035
CaptFalcon33035 wrote:
Yeah, and it's mega-crap and slow, so I just stopped. What the heck would you do in a situation like that?

How is it slow ? Your DM loops turn into goto when it gets compiled. I believe in some situations it is faster.
In response to CaptFalcon33035
CaptFalcon33035 wrote:
On Hiead's hosted files, their are some great resources for people looking to learn C++. Please download the file so you do not have to continually do so every time you want to view the file. It'll save some bandwidth.

Since when were these legal to host?
In response to Smoko
Don't worry about it.
In response to Xx Dark Wizard xX
Bullcrap.

And uh, well, it looks like you replied to my post about java. goto is not relevant here.
Page: 1 2