OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Dec 13, 2017 12:52 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 139 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: Advice for novice programmers thread
PostPosted: Mon Dec 20, 2010 10:43 pm 
Offline
Member
Member
User avatar

Joined: Wed Dec 08, 2010 3:16 am
Posts: 144
Location: St. Louis, MO USA
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.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Mon Dec 27, 2010 5:20 pm 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 3:03 am
Posts: 1029
Location: Hobart, Australia
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?

_________________
My Personal Blog | My Software Company - Loop Foundry | My Github Page


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Wed Dec 29, 2010 1:09 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9228
Location: An der schönen blauen Donau, watching muppets
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?

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Wed Dec 29, 2010 7:22 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7153
Location: Germany
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.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Fri Sep 23, 2011 5:25 pm 
Offline

Joined: Fri Apr 29, 2011 9:03 pm
Posts: 9
Location: Australia
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

_________________
Garbage collection is only for programmers that make garbage and can't clean up for themselves.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Fri Sep 23, 2011 6:00 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 24, 2009 8:11 pm
Posts: 1249
Location: Sunnyvale, California
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...


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Sun Apr 22, 2012 6:25 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 30, 2012 7:36 am
Posts: 40
Location: Bangalore, India
Well i learnt HTML, QBASIC and then C and java and now assembly.

_________________
Walking my way in making my OS


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Wed May 23, 2012 4:43 pm 
Offline
Member
Member
User avatar

Joined: Sat Apr 30, 2011 12:50 am
Posts: 308
hegde1997 wrote:
Well i learnt HTML, QBASIC and then C and java and now assembly.

And brought up a dead thread!


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Tue Jun 04, 2013 9:08 am 
Offline
Member
Member

Joined: Sun Feb 03, 2013 10:38 pm
Posts: 58
Location: Canada
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.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Tue Jun 04, 2013 10:27 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 528
Location: Victoria, Canada
Look at the years.

It has most certainly been more than two weeks.

_________________
The good thing about Unix is when it screws up, it does so very quickly.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Mon Dec 09, 2013 10:44 am 
Offline
Member
Member

Joined: Sun Feb 03, 2013 10:38 pm
Posts: 58
Location: Canada
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.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Tue May 13, 2014 10:22 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 1980
Location: USA (and Australia)
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.

_________________
My OS is Perception. (1 2)


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Wed May 14, 2014 3:08 am 
Offline
Member
Member
User avatar

Joined: Fri Jul 03, 2009 6:21 am
Posts: 359
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.

_________________
Every universe of discourse has its logical structure --- S. K. Langer.


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Sun Jan 24, 2016 2:10 pm 
Offline
Member
Member

Joined: Tue Sep 23, 2014 6:12 pm
Posts: 140
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?


Top
 Profile  
 
 Post subject: Re: Advice for novice programmers thread
PostPosted: Sun Jan 24, 2016 7:53 pm 
Offline
Member
Member

Joined: Tue Nov 08, 2011 11:35 am
Posts: 453
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 139 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group