Computers and Technology
Posts tagged programming
How to learn another Programming Language
Jul 21st
For the past few months, I have been struggling with trying to learn how to program in Javascript, one of the easiest languages one can learn (besides C, I suppose). I know to program in PHP pretty well, I got the whole concept down, and I’ve made plenty of sites to say that I’m experienced. I can work with MySQL, and I can do plenty of other things. However, Javascript has been giving me a headache, that is, until recently.
I tried to work through the language the same way I did with PHP. I watched a few in-depth videos, I tried to do some tutorials on good-tutorials, etc etc. But that did not work. However, I found a great way to get started with the language. I call this the “crash course method”.
Crash Course Method
Some useful PHP functions
Apr 15th
Recently, I have noticed that I use the same exact functions over and over again in PHP. I’ve actually set-up a complete function list that I tend to include in all of my projects. Here is an overview of some of them.
Let’s connect
You will need to connect to your database from time to time. It is important to do that in most projects that deal with MySQL, and you’ll probably do it frequently, on every page. Now, you can either delete that “function CustomConnect” and the braces and simply include() this part as a file orrr, just add this to your function list and call it up whenever you need it: