Topic: Top tips for a beginner coder?

yep, ima noob to coding,

but i would like to learn, so if youve got any tips/useful codes please let me know

Re: Top tips for a beginner coder?

Depends on what you want to learn to program.

A usefull site is www.w3schools.com Which has a number of programming languages in.

Sorry. Unactive due to personal life.

3

Re: Top tips for a beginner coder?

http://php.net

Re: Top tips for a beginner coder?

Best tip: Try googling anything smile 99,99% you'll find what you want!

Re: Top tips for a beginner coder?

http://joelonsoftware.com/
http://en.wikipedia.org/wiki/Programming
http://en.wikipedia.org/wiki/Design_pat … r_science)
http://en.wikipedia.org/wiki/Anti-pattern
http://tryruby.hobix.com/ :-)

Carpe diem

Re: Top tips for a beginner coder?

Depends on what kind of programming you want to do. If you want to do web-related stuff I suggest going to www.w3schools.com and learning some basic html/css/php then looking up functions at php.net to achieve what you want. If you're interested in desktop programming I recommend trying out .NET (you can get Visual Studio Express for free, just google it for the site). Using a .NET language is great for starting out for Windows-based programming as you can develop apps a lot faster than other languages and even make games that run on xbox 360 using XNA.

7 (edited by njwoods 2009-03-20 18:25)

Re: Top tips for a beginner coder?

Well Tizag.com has some of the best beginner programming tutorials.  They're not the best real world examples but they'll get you started.

The other thing I would say is even though it may take a while to get a grasp on coding secure code - most of it's quite simple.  ALWAYS filter your input - from any source.  And always do this on the server side - do not trust javascript since it runs on the client/visitor computer.  When you filter input never try to worry about what characters to block, only worry about what characters you should let in.  Use functions like preg_match or similar functions to specify rules where if the input is not between 0-9 and a-z or A-Z - strip it out silently or report an error to the user.  If you're using php be sure to use mysql_real_escape_string before your database queries (all of them).  That alone should prevent most if not all sql injection attacks.

8

Re: Top tips for a beginner coder?

njwoods wrote:

When you filter input never try to worry about what characters to block, only worry about what characters you should let in.  Use functions like preg_match or similar functions to specify rules where if the input is not between 0-9 and a-z or A-Z - strip it out silently or report an error to the user.

To clarify what that means specifically, is that you start off with a blacklist which blocks everything and then you only specifically allow the characters or other info you require.


njwoods wrote:

If you're using php be sure to use mysql_real_escape_string before your database queries (all of them).  That alone should prevent most if not all sql injection attacks.

Not if you're running PostgreSQL it won't. big_smile Use the specific *sql escape function fr your DB if creating your own code from scratch. The likes of PunBB have database layers so that the DB specific query is unnecessary. It uses one common name for all DB types.

Re: Top tips for a beginner coder?

You have to consider first to one particular programming language. Aside for learning the language is you can develop your programming logic. Once you develop some sort of programming logic, learning other programming language is easy.

Re: Top tips for a beginner coder?

It is also good to choose a particular language. Then search for free online tutorial to get started.

11

Re: Top tips for a beginner coder?

Yes, I have used www.w3schools.com also and find it a very good reference site.

Corky

12

Re: Top tips for a beginner coder?

i agree i think go on google i find alot of my answers oin there also try looking at other peoples work smile that also helps

Currently :: Installing vb Getting a new domain and modding punbb :)

Re: Top tips for a beginner coder?

You will find almost anything on google...and try other search engine also like yahoo and msn..

happy searching!

14

Re: Top tips for a beginner coder?

good idea but yahoo isnt the best as most people advertise with google smile

Currently :: Installing vb Getting a new domain and modding punbb :)

Re: Top tips for a beginner coder?

Top Websites:

http://www.tizag.com/
http://www.php.net/
http://www.w3schools.org/

Top Tips:

* Keep your code clean, everybody likes clean code.
* If ever the need occurs to develop software, try to keep PHP away from HTML, this may seem hard at first but there are many ways to do it.

16 (edited by Amjad 2011-03-05 05:33)

Re: Top tips for a beginner coder?

Hi All,
I have bookmarked these sites as I was in search of coding.
Thanks to all for contributing and sharing useful links.
Kindle Wireless Reading Device

Amjad

Re: Top tips for a beginner coder?

Utchin wrote:

Depends on what you want to learn to program.

A usefull site is www.w3schools.com Which has a number of programming languages in.

Quite true.

Re: Top tips for a beginner coder?

Depends on what kind of programming you want to do. If you want to do web-related stuff I suggest going to w3schools.com and learning some basic html/css/php then looking up functions at php.net to achieve what you want. If you're interested in desktop programming I recommend trying out .NET (you can get Visual Studio Express for free, just google it for the site). Using a .NET language is great for starting out for Windows-based programming as you can develop apps a lot faster than other languages and even make games that run on xbox 360 using XNA.

19

Re: Top tips for a beginner coder?

Try http://www.hotscripts.com/ ! There are interesting codes.

Re: Top tips for a beginner coder?

I guess first you have to decide what programming language you want to learn. If you're a beginner to the programming world, you might want to learn some Object Oriented language such as Java, C#. It will teach you a lot of good concepts. Good luck!

Re: Top tips for a beginner coder?

Start reading other people's code.

Re: Top tips for a beginner coder?

Start on HTML, then to PHP, then CSS. Learn basics of each then move to advanced stuff each language.

Re: Top tips for a beginner coder?

The one thing I would recommend, is not to make the mistake of trying to tackle CSS before HTML, because as it is 'under' HTML you think this makes sense. That might appear logical, but HTML is the simplest code, and you want to start with baby steps. Font dive into the deep sh*t at first.

Re: Top tips for a beginner coder?

Go to w3schools and borrow some books on the library and keep on trying! Watch some youtube videos and read/live/dream code!

Re: Top tips for a beginner coder?

Thanks fo the tips, very useful