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
You are not logged in. Please login or register.
PunBB Forums → Programming → 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
Depends on what you want to learn to program.
A usefull site is www.w3schools.com Which has a number of programming languages in.
Best tip: Try googling anything 99,99% you'll find what you want!
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.
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.
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.
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. 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.
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.
It is also good to choose a particular language. Then search for free online tutorial to get started.
Yes, I have used www.w3schools.com also and find it a very good reference site.
Corky
i agree i think go on google i find alot of my answers oin there also try looking at other peoples work that also helps
You will find almost anything on google...and try other search engine also like yahoo and msn..
happy searching!
good idea but yahoo isnt the best as most people advertise with google
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.
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
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.
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.
Try http://www.hotscripts.com/ ! There are interesting codes.
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!
Start reading other people's code.
Start on HTML, then to PHP, then CSS. Learn basics of each then move to advanced stuff each language.
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.
Go to w3schools and borrow some books on the library and keep on trying! Watch some youtube videos and read/live/dream code!
Thanks fo the tips, very useful
PunBB Forums → Programming → Top tips for a beginner coder?
Powered by PunBB, supported by Informer Technologies, Inc.