OSDev.org
https://forum.osdev.org/

Advice for novice programmers thread
https://forum.osdev.org/viewtopic.php?f=13&t=3320
Page 9 of 10

Author:  miker00lz [ Mon Dec 20, 2010 10:43 pm ]
Post subject:  Re: Advice for novice programmers thread

midir wrote:
[*] Elegant code that's easy to understand is better than confusing code that runs faster. It just is.


USUALLY, yes. you'll find the guys who were programming back on the 8088s who can't break their old habit even on quad cores though. sometimes that's a good thing.

Author:  JackScott [ Mon Dec 27, 2010 5:20 pm ]
Post subject:  Re: Advice for novice programmers thread

miker00lz wrote:
midir wrote:
[*] Elegant code that's easy to understand is better than confusing code that runs faster. It just is.


USUALLY, yes. you'll find the guys who were programming back on the 8088s who can't break their old habit even on quad cores though. sometimes that's a good thing.


Why?

Author:  Combuster [ Wed Dec 29, 2010 1:09 am ]
Post subject:  Re: Advice for novice programmers thread

Can you understand insertion sort in a moment's notice if you happen to come across that code? Can you do the same for heapsort? Which of the two would you rather use in a tight loop?

Author:  Solar [ Wed Dec 29, 2010 7:22 am ]
Post subject:  Re: Advice for novice programmers thread

Measure. Optimize. Measure.

Until I have proof that this "tight loop" is actually affecting my performance significantly, and I have proof that whatever sort algorithm I programmed is solving that problem, a call to qsort() beats both options hands-down because it replaces the algorithm with a standard library call.

Author:  hall123 [ Fri Sep 23, 2011 5:25 pm ]
Post subject:  Re: Advice for novice programmers thread

Before you call yourself a complete programmer you must at least learn a good amount of Common Lisp. Now Common Lisp might never get you job but it will make you think differently about programming forever. Once you learn some Lisp at reasonably well it will give you a look at programs should be written and you WILL make better programs because of it.

Daniel

Author:  NickJohnson [ Fri Sep 23, 2011 6:00 pm ]
Post subject:  Re: Advice for novice programmers thread

hall123 wrote:
Before you call yourself a complete programmer you must at least learn a good amount of Common Lisp. Now Common Lisp might never get you job but it will make you think differently about programming forever. Once you learn some Lisp at reasonably well it will give you a look at programs should be written and you WILL make better programs because of it.

hall123's signature wrote:
Garbage collection is only for programmers that make garbage and can't clean up for themselves.


I agree with you, but you have to admit, it's ironic that you're advocating the one type of language (functional) that really needs garbage collection...

Author:  hegde1997 [ Sun Apr 22, 2012 6:25 am ]
Post subject:  Re: Advice for novice programmers thread

Well i learnt HTML, QBASIC and then C and java and now assembly.

Author:  Nessphoro [ Wed May 23, 2012 4:43 pm ]
Post subject:  Re: Advice for novice programmers thread

hegde1997 wrote:
Well i learnt HTML, QBASIC and then C and java and now assembly.

And brought up a dead thread!

Author:  greyOne [ Tue Jun 04, 2013 9:08 am ]
Post subject:  Re: Advice for novice programmers thread

While everything listed in the OP seems to outline an effective strategy for learning language syntax,
And familiarizing yourself with programming as a whole, it seems to neglect a couple of important points.

Firstly programming theory. Severely underrated, but highly necessary.
History of programming languages and compilers is something that will never hurt you if you have.

And secondly, program architecture and design (including design patterns).
I remember my early code used to be jumbles of general messiness and circular dependencies.

These may have been mentioned,
But I really don't want to read through 9 pages of old posts.

Also, it's not thread necro-philia/mancy.
It's been less than 2 weeks.

Author:  Kazinsal [ Tue Jun 04, 2013 10:27 am ]
Post subject:  Re: Advice for novice programmers thread

Look at the years.

It has most certainly been more than two weeks.

Author:  greyOne [ Mon Dec 09, 2013 10:44 am ]
Post subject:  Re: Advice for novice programmers thread

Debugging code is at least twice as hard as writing it in the first place.
So if you end up writing the most clever bit of code you possibly can,
By definition, you must be at least twice as clever to debug it.

Author:  MessiahAndrw [ Tue May 13, 2014 10:22 am ]
Post subject:  Re: Advice for novice programmers thread

hall123 wrote:
Before you call yourself a complete programmer you must at least learn a good amount of Common Lisp. Now Common Lisp might never get you job but it will make you think differently about programming forever. Once you learn some Lisp at reasonably well it will give you a look at programs should be written and you WILL make better programs because of it.

Daniel


I would say to try to expose yourself to as many programming paradigms as you can. Learn what agent-based programming, class-based programming, event-based programming, functional programming, prototype-based programming is.

Learn parallelism - both thread-based and task-based.

Not every language makes every paradigm intuitive to use, so try to use different languages so you get an idea of what closures, polymorphism, anonymous functions, templates are really like.

I'm fortunate to have a job where I'm exposed to large projects that range from Node.js to C++ to Perl to PL/SQL.

Understand that everyone is an expert on something else - while one programmer may be an expert on cryptography, another may be an expert on compiler technology, network architecture, graphics rendering, memory management, databases, or artificial intelligence. Do not disrespect someone because they make a simple mistake or ask what you think is a dumb question - they may be experts and highly respected in their own fields.

Author:  bwat [ Wed May 14, 2014 3:08 am ]
Post subject:  Re: Advice for novice programmers thread

It's all about logic. Everything else is just details forced into your head space by ephemeral implementation technologies. I say this as someone who is currently implementing a datapath for an algorithm that is thousands of years old.

Author:  mac [ Sun Jan 24, 2016 2:10 pm ]
Post subject:  Re: Advice for novice programmers thread

Lots of different opinions in this thread.

I hope by my post count I didn't bug this forum by costant spamming. :)

Let me begin. I'm a novice. I admit I don't know a lot about programming except for the basic theory like variable, loops, if...then. I know this is a very advanced forum.

I would love to enjoy programming only for the sake of it. My one problem I have is that I lack some kind of inspiration. It's perpetually hard to move forward with anything. It's like a mental paralysis. I also have Asperger's Syndrome, this makes it so complicated. It's like I need an outline for everything to keep me on track.

So tell me am I lost or can I still learn?

Author:  Nable [ Sun Jan 24, 2016 7:53 pm ]
Post subject:  Re: Advice for novice programmers thread

SeanMc wrote:
So tell me am I lost or can I still learn?
If your memory still serves you somehow and you want to learn - you are not lost.

Quote:
It's like I need an outline for everything to keep me on track.
Heh, most people who are considered to be healthy also can't make much progress without making outline for their work.

Btw, it looks like a bit of necroposting.

Page 9 of 10 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/