|
Yea nice going there mate, I nearly thought this thread wasn't going to go the way I predicted, way to prove me wrong
|
|
|
|
|
The concept of "fundamental concepts" vary with time.
When I learned Basic, Fortran, Pascal, Cobol and the assembly languages of four different architectures + MIX (ref Donald), "fundamental concepts" included how to handle 1-complement vs. 2-complement, order of bits, octets, halfwords and words (like some PDP-11 OS structures with the high order halfword first but the high byte in each halfword last ... or was it the other way around?), advantages and disadvantages of a hidden upper bit in the mantissa of float formats...
Kids of today could (or couldn't) care less about normalized mantissas, BCD nibbles amd the question of when minus zero is equal to plus zero. And, I must admit, today I don't care that much myself. I do remember that such understanding used to be essential, but it isn't anymore.
Nowaday, I handle integer values withoout worrying about their binary representation (if I do, it is because I use them for something else than integer numerical values, which is bad practice in any case!). I handle sets of objects without concerns about next-pointers: I add objects to the set, remove objects, traverse the set etc, without ever seeing a next-pointer. What I do see, is whether the set is ordered, objects accessible by keys etc.
Sure, knowing what goes on one level below the one you work at is essential. In the days of 1-complement machines it could help you understand why sometimes 0 != 0. Today, when a foreach loop was abruptly terminated, my old familiarity with next-pointers was a great help in pinpointing the problem to the replacement of one object in a DOM structure with a new versison - the replacement was done in a code snippet that didn't know that the old version was the current one in a foreach iteration, replacing it with one with a null next-pointer. That is an implemmentation anomaly, just like 0 != 0 is an implementation anomaly. 2-complement fixed the latter - a list implementation mantainng the list by a separate link structure rather than embedding the next link in the object itself would have fixe the former. Like 1-complement died out with time, object embedded next pointers might die out with time. Then, understanding the use of next pointers might become as irrelevant as understanding the difference between 1- and 2-complement.
Sometimes I am frustrated by our younger programmers and their lack of understanding of fundamental concepts. And then, when I think it over, I more and more conclude: "Actually, they do not need it for anything at all, given the tools we have available nowadays". Besides. it gives me a lot of opportunities to act as an old grandpa who can explain to the kids how it was in the old days, and how it really is even today, if you just look closely... Some of the kids simply love it!
|
|
|
|
|
Good statement. Context is key. Of course, its better to know these things, but the question of usability comes up. If I don't know what a normalized Mantissa is does that mean I am stupid? Can't code?
OTOH - when you know these things, it sometimes can save the day. Is that a reason to stop learning how to program on the Phone, and pick up Assembly? I dont think so.
Where there's smoke, there's a Blue Screen of death.
|
|
|
|
|
Hello, this is my 1st post here. Looks like a great forum.
I really like 7989122's reply, for a few reasons:
1: I think sometimes it's easy to be too reliant on hindsight and deploy it without regard for the environment and its inhabitants. e.g. when I learnt Latin it was helpful and gave me a more fundamental understanding of English. But I learnt to make basic baby sounds first, then picked up English then Latin. So I learnt some language origins and building blocks in reverse order because that's what was the go at the time and all I was capable of.
2: the reply doesn't use the term "idiot". I can't see any positive disposition created by using this word. I suspect it's source could be of self indulgence. But I don't know, I choose to ignore it's intent.
3: as a trainee Citizen Developer who began 1 year ago learning using Small Basic and now just started with C#, if I find that I need to or it's conducive to achieving my goals then i'll learn some C.
Learning with Small Basic has been great fun and we have the opportunity to make our own controls, optimise our code, consider efficient resource use and devise crafty work arounds. And once again it's fun.
Whilst this question and discussion occurs often, I think it's helpful for those learning. Thanks for the post.
|
|
|
|
|
There is a whole can of worms here, depending on your personal prejudices!
IMHO there is no such thing as a "better language" per se. Each of them have advantages and disadvantages but even those are dependent on how you are trying to use them, and for what.
If you want to code for an Android device for example, then Java is the obvious choice. But for a PC? I hate even letting the Java runtime know my PC exists, let alone allow it to install itself!
C# is good for PC app development, but if you want lots of speed, then C++ is better.
C is good for embedded devices, but C++ works well if you are careful, and C# won't really work at all.
But Java, C, and C++ wouldn't work in a web site where Javascript is king!
And so on! Task and environment is more important than language: if you already appreciate the hardware I wouldn't learn C - it's a bit outdated and very simple these days, plus it has no OOPs features at all which really do help with large modern developments.
So what would I learn? If you want to learn about OOPs then I'd start with C# - it's powerful, OOPS and flexible, but "hides" the hardware from you pretty well so you can concentrate on tasks rather than implementations.
modified 22-Dec-13 6:08am.
|
|
|
|
|
We are coding for Win32, but I am coding more low level than he, that's why I tend to favor languages that do not hide the hardware from me. Currently I am experimenting with a program that can manipulate PE files (written in C++) and a metamorphose program in assembler. If everything works out I plan to join both projects together to encode PE files.
For many things like GUI, Delphi seems a lot easier to me at first but as soon as you want to do something a little more complex it gets really annoying plus the language is just crap.
|
|
|
|
|
Ignore what anyone tells you about "the best language", or "this one is better than that". Choose the language that you understand (at least to a reasonable degree), and does the job.
Veni, vidi, abiit domum
|
|
|
|
|
Exactly, right tool for the right job!
|
|
|
|
|
If your employer confronts you with different jobs requiring different tools at different times - on short notice - then you will need to prepare a generalist skill set in advance.
If there is pressure to get a product into test or out the door, you simply won't have the time to pick it up, even though you may be a very fast learner.
This sort of meltdown can be exacurbated by principals going on holiday, long term secondment, or elsewhere.
Under these circumstances you are likely to be the only spar holding the burning plane's wings on as the bosses try and guide it down to a safe landing.
Example - C# is a great language for General Purpose and rapid prototype; but being able to mix and match with interop win32 dll's either from the API or that you have written yourself is a great skill, which is picked up by learning C/C++ techniques and the Interop techniques in advance. Even old skills like ATL/COM are useful for RPC's and eventing if you are crossing process and OS boundaries.
Learning the basics in advance and in your own time would definitely make you an asset, at least in industrial, robotic and engineering contexts.
And let's not forget, the madder the company the more fun there is.
|
|
|
|
|
You seem to believe you are asking a question with a concrete answer. You can also ask is it better to learn the saxophone or the veena or should you wear blue on Thursdays.
Peter Wasser
Art is making something out of nothing and selling it.
Frank Zappa
|
|
|
|
|
I don't always wear blue on Thursdays, but I do like to be smart. I've started 'Dress Up Thursdays' where I turn up in a suit or shirt and tie and jacket.
Purely to increase the signal-noise ratio with 'Dress Down Friday'.
|
|
|
|
|
IMHO...
There is no 'best language'. All depends on the task you have to perform...
Whenever you face a new task you have to look into your toolkit and choose the best tool you have for that task. If you have no tools for it, then look around and ask others to help to choose a new tool to 'buy'. But you can't talk about 'best' without talking about the task...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
None of those is a best first language. And C should be learnt before object-oriented and other "modern" languages.
A new developer should learn have exposure to a number of languages in roughly chronological order and understand the fundamentals more than any particular language.
Cody227 wrote: I've never never written a single program in ASM I feel like I would've never understood coding without it
I think we agree.
There are some who pick a language that they think will get them the most money and then only learn that one language; it leaves them stunted and in flexible.
What makes it worse is when they choose to learn that one on their own from books rather than going to college and learning from several accomplished practitioners and colleagues.
|
|
|
|
|
My point is that I think a new developer should learn a rather low level language that is unforgiving at first, to learn the basic principles, how a computer works and what should/shouldn't be done in coding. If someone asked me what language he should learn I would advise him to do it in this order:
- C tutorial to learn what variables, loops, if-statements and so on are
- a few simple C programs that run in a DOS console
- assembly
- assembly
- assembly
- more complex programs in C++ (absolutely no RAD environment)
- choose a language that suits you and your requirements best (now you should now enough to use a RAD environment too)
PIEBALDconsult wrote: what makes it worse is when they choose to learn that one on their own from books rather than going to college and learning from several accomplished practitioners and colleagues.
lol that's exactly how I started. My first "program" was a fake-virus batch which displayed a list of all files in green in an endless loop. From then on I was hooked and started to read tutorials about different languages like BASIC, Delphi and C suited me the best so I began to enhance my skills in that language. But I only do it as a hobby so it's okay not to be a professional in it. (Still I'm the best coder in the school and like to make the teacher look like an idiot. They're "teaching" us Delphi and no one has nowhere near an idea what a pointer is)
|
|
|
|
|
You are wrong.
Veni, vidi, vici.
|
|
|
|
|
I have upvoted CPallini's reply, because I feel he is essentially correct; the only minor disagreement I have with his conclusion is that I feel the OP is absolutely right.
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'
As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”
Vincent Van Gogh
|
|
|
|
|
There is no "better than any other" language. You must pick the language that you understand best and can do the job. Delphi is apparently great for UI stuff (I have only used it a tiny bit) but is a pain otherwise. Java sucks on the PC, you are better off using C# or even, *gasp*, VB than Java - however, on mobile devices it may be a lot better fit.
For what you describe, I would definately use C and C++. C is as close to the metal you can get without using assembler, C++ gives you objects, classes and all the good stuff.
When you say zero-terminated strings are "slow", how do you mean? They are one of the fastest implementations of string handling you can get, generally.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
|
Ok, maybe not.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Quote: even, *gasp*, VB than Java
I thought the lounge was supposed to be KSS safe! go now, we don't want another one of those types here!!
|
|
|
|
|
When you say zero-terminated strings are "slow", how do you mean? They are one of the fastest implementations of string handling you can get, generally.
That's stunningly ignorant. strlen is O(n) and is needed for most operations strings. To speed them up you need a type containing the length along with a char buffer or a pointer to one. And then add a refcount and copy-on-write to avoid unnecessary copying.
|
|
|
|
|
I think it "all depends" on how you define the words "better," and "learn."
And, it depends on your cognitive style: yes, people have different cognitive styles; some are more innately top-down thinkers; others are more innately bottom-up thinkers. For some people thinking recursively is very natural (they feel at home in LISP). People's ability to visualize/conceptualize complex processes may vary in terms of the relative salience of "visual-thinking" and "abstract thinking."
And, context: where you are; the circumstances you are in; the limits, or requirements, of the task at hand, and the time to achieve it in.
imho, what is a more interesting question to ask is: what type of education would best prepare people for careers as professional programmers? And, yes, that takes us right into the briar-patch (in England, would that be a "sticky wicket" ?), of what a "professional programmer" is, these days.
I'll never forget when I worked at Adobe, as a PostScript shaman, on Illustrator, PhotoShop, Acrobat, Multiple-Master Font Technology, etc.; one day, I talked to the young genius, Mark Hamburg (who was awarded the Gordon Moore Prize by his peers for his remarkable work on PhotoShop's evolution).
I asked Mark what he had majored in at college; he replied he'd majored in Mathematics; I asked him if he had considered Computer Science. Mark said, essentially, that he had already read, and understood, all of Donald Knuth's books, while he was in High School, and felt he had nothing more to learn in that area. Unfortunately, most of us are not Mark Hamburgs (and will never be) !
My own journey in the last thirty years has been from 6502, and 6809, assembly language, to Pascal, and Basic, to HyperCard, to LISP, to PostScript, to Visual Basic and VBA, finally to C#. For me C# is perfect: just terse enough, just high-level enough.
Rant: If only MS had put some energy into giving WinForms a high-level vector-based 2d retained-mode graphics/drawing engine, instead of going off the deep-end into the-next-greatest-thing-frenzy with WPF and SilverLight !
But, all the languages I have studied, and used, have helped me become the obscure non-entity I am today
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'
As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”
Vincent Van Gogh
|
|
|
|
|
BillWoodruff wrote: For some people thinking recursively is very natural (they feel at home in LISP). I learned LISP when I was taking graduate courses in artificial intelligence back in the late 80's. My best description of the experience was removing the top of your skull, rotating your brain counter-blockwise 90°, and reattaching your skull.
Software Zen: delete this;
|
|
|
|
|
Amen, Brother Wheeler !
I went through a phase of LISPmania. At one point I spent ten days figuring out how to write a three-line method that took two ints as parameters and created a 2d array in memory.
I forget, now, whether it was more than doubly-recursive.
After successfully deprogramming myself from the "cult of 'car and 'cdr," in sesshins at the Berkeley Zen Center, and by binging on cheap Chinese take-out with extra MSG, and Jolt Cola, until bulimic ...
I realized that, in the future, it would take me as much time to revivify my understanding of that three line solution, as it took me to develop it ... and I moved on to ... PostScript, which ... few people ever appreciate this ... is a very LISP-like language with an post-fix notation "front-end," and explicit stacks, wired-up to a monster-great graphics model/rendering-engine.
I do believe that a period of total immersion in an "alternate programming universe," like LISP, Prolog, or, even, PostScript, can be a valuable part of a programmer's education ... if they have a strong base in a strongly-typed language to begin with.
But, I am very influenced by the work of the anthropologist of education, George Spindler, at Stanford, on the utility of "discontinuities" in education and socialization as catalysts for cognitive devlopment, and acculturation.
I think frequently getting your own mental chassis torn-down to the point you become all too aware of what nuts the bolts are, and then, re-assembled, is downright salubrious
Merry, Merry, Bill
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'
As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”
Vincent Van Gogh
|
|
|
|
|
That matches my experience. While I don't remember much of the LISP I learned at the time (it was 25 years ago), I do remember how the experience seemed to broaden my approach to things in more 'traditional' languages.
I actually used some of the AI techniques later on. My employer never knew, but I had a rule-based parser in 'C' that would find U.S., Canadian, and U.K. Royal Mail postal information in free-form text and create the appropriate bar code.
Software Zen: delete this;
|
|
|
|
|