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.

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!

SetCronJob www.setcronjob.com offers FREE cron jobs and web based cron hosting :)

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.

Programming Designs - Tech, programming, and web design blog
PD Forums - Using the latest and greatest PunBB 1.3 =)

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.

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

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.

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.