Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Tuesday, September 11, 2012

Programming Is Hard To Understand

I just read this in one of the threads I'm part of.

To be honest, programming is hard but only at the beginning phase. Just like every other things you do the same with riding a bicycle. You'll find it hard to maintain your balance that sometimes you'll end up scraping your knees but once you get the hang of it, you'll totally enjoy it forgetting all the wounds and frustrations throughout the process.

So what do I need to "easily" understand programming?

The answer is simple: learn to LOVE IT.

Haven't you notice if you love to do something no matter how hard or difficult it is you still enjoy doing it without ANY complaints. I always notice this behavior with my other colleagues. Our work is mainly to do programs but only a few are actually enjoying it. Most of them are just treating it as their source of income or just because they are good at it. Remember, not all people who are good at something actually love what they're doing. Maybe they'll just some genius who are born with those talents but their hearts aren't just for it. These kind of people almost always end up not enjoying their life and once they realize this it's already too late.

Wednesday, March 14, 2012

Detect Browser Info

When it comes to detecting browser info in PHP, we stick to the basic by using get_browser() but it doesn't properly display the browser types/names. If you're using Joomla, you'll most likely use the Joomla browser detection library.

Wednesday, March 7, 2012

localhost only shows white page?

Have you encountered where you localhost was only displaying a white space? No matter how many times you restart your local server (may it be wamp or xampp) still nothing happened?

In my part the problem was the port got conflict with skype. So I logged out the skype, restart my wamp, and logged in my skype again. I check again the localhost in my browser and it now works!

If you're 100% sure that you haven't done anything with your server configurations then it is possible that it is just a port conflict. Don't panic like what I did. hahaha...

=D

Tuesday, January 24, 2012

PascalCasing and camelCasing

PascalCasing is where the first letter of each word is in upper case. It's the same with ucwords in php. This is usually used in naming a class.
MyHelloWorld
JoomlaComponent

camelCasing is where the first letter of the first word is in lowercase while the first letter of the subsequent words are in uppercase. It's the same with ucwords in php except that the first letter is in lowercase. This is usually used in naming a function or variables.
myHelloWorld
joomlaComponent
Related Posts Plugin for WordPress, Blogger...