Thanks for sharing usefull tips..
Thanks for sharing usefull tips..
Nice, That is exactly what i was looking for. thanks
Thanks for the tips! Much appreciated
MutantJohn's programming tips: Find a passion and chase it (in programming, of course). Even if it's just in your free time. Find something you love coding and code that. Make sure it's hard too.
Ada's Extra Advice:
Also pick a language that you feel comfortable with. Don't go by the Tiobe Index etc - if your brand new and C/C++ scares you (it shouldn't really as both are good first languages) check out slightly simpler syntax languages such as Python or even C#.
Double Helix STL
Ugh. C# can be pretty confusing too because it doesn't make a distinction between a pointer and a reference. It's motto seems to be just pass the damn object and it will work. Except, sometimes it doesn't and you have to think about passing your "pointer" by "reference" instead. I find it much easier to actually make a distinction between pointers and references.
And ugh. Python. Another stupid dynamically typed language. The enemy of all humankind*.
*) Strictly my opinion only.
Actually, I do think it is incredibly confusing to tell people that in JavaScript, things are passed by "reference" as well. The problem is, these languages use reference in a way that's probably more correct but puts the wrong abstraction in people's minds.
What I mean is, we dereference pointers so it makes sense that an actual pointer should be formally known as a reference. So in JS where they talk about passing references, what they really mean is, a copy of a pointer. In all reality, I think it makes people think of C++ references where it is the object.
It's very unfortunate but I see a lot of people who fail to understand JS's reference semantics and it's not really through that much of a fault of their own. Their tools are confusing and are a little unwieldy, especially considering that most of these high-level scripting languages like to poop on C and C++ for not making the programmer think about pointers. Even though you literally have to think about pointers to write JS successfully.
So yeah, making hard distinctions between references and pointers was one thing C++ did right and I'm very saddened that other languages haven't followed suit. C++ was invented in 1983. This isn't exactly new technology.
It's very simple. There's native types and there's non-native types. They are different, except that they aren't. Native types are passed by value, except when they aren't. Strings can never be passed by value, but sometimes they can.
To be fair, it's like crying over nothing. Just know your types and there's nothing confusing about pass by value or reference. If one is still confused, then its because they are still learning the ropes and being confused is perfectly ok and an expected state. For every wannabe programmer that quits because he couldn't be bothered pressing on their studies, we can hear a breath of relief from high above in the heavens. However, it is no less truth that you can thank the above paragraph to the wonderful (not!) development that is languages built exclusively of OOP.
Last edited by Mario F.; 01-11-2017 at 04:10 PM.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
It's fine! It looks very convenient, especially for a beginner on this forum)