Too much to do, so little time, so freakin lazy, and I’m going crazy.
It’s been forever since I last worked on my pet project, It’s like 2 weeks, its probably because I’m adjusting to my new schedule and school stuff, plus I needed a rest it’s been two months since I last slept well because of my work, and I really needed a break.
While I’m on break I always think of a ways to get closer to coding, lol in my mind there are a lot going on, I can’t focus on one things because I’m too busy thinking other stuff. It’s like walking in a strange place and doesn’t give a damn on new things I see, for example there are a lot of new faces I see in the campus, including freshman chx, but I didn’t gave a damn. I’m thinking of a lot of things that I feel like my brain is about to explode, and thats a bad sign.
Anyways first week of schooling is awful almost all of my colleagues are busy on their OJT and its like I’m out of place. I don’t have anywhere to hangout except the INTERNET cafe and it sucks because I had to spend 60 pesos just to passed 4 hours of time so I can go home in the afternoon. and I don’t really have a choice so ya.
Actually I had a choice, I could go to the new library at our campus but the question is what the hell am I gonna do in there. I’m even lazy enough to work on my project and its like forcing me to study 4 hours just to passed time and thats fucked up. Now I missed working, school is really boring. Work is fun because you receive money by doing what you love and that’s something everybody wants.
Anyways last few days, something came up after I woke up, EUREKA!!!!
I decided that to get me started on coding again, I though of learning Object Oriented Programming on PHP. It’s useful because I’m working on my Web App and its a good plus if I have also knowledge in OOP.
What I did in order to get started in studying OOP, I have to do a quick research on what is OOP. Then I found out that I already took this or familiar with OOP, it’s is included on ICT121 Data Structions, the typedef student struct(){} thingy if you still remember. And Sir Victor Lapin an application developer also taught me some techniques in OOP and that gave me idea about OOP.
Anyways it turns out that the concepts is quiet hard, I have to do several trials so that I can grasp the idea and then created my own OOP and added it to my pet project. At the end of studying I came up with this codes.
?php class Database { public $host = "localhost"; public $username = "root"; public $password = ""; public $database = "InventorySystem"; public function __construct() { $this--> public function MysqlCheckConnection() { /** * @desc Check if the mysql_connect is succesful or not. */ if (!mysql_connect($this->host, $this->username, $this->password)) { die("Cannot connect to <a class="zem_slink" title="Database" href="http://en.wikipedia.org/wiki/Database" target="_blank" rel="wikipedia">Database</a>, please fix Connection/ folder."); } else { return true; } } public function MysqCheckSelection() { /** * @desc Check if there is a database to select. */ if (!mysql_select_db($this->database)) { die("Cannot select a Database, Database $this->database does not exist please fix Connection/ folder."); } else { return true; } } } $connect = new Database();
It’s really great because I have discovered new perspective in programming, I can now create custom functons and define what specific commands I would implements.
So overall its really fun learning OOP, though I only learned the basics, I will push through and continue to moderate level of OOP.
The above codes is my codes in connecting to the database, though its not that necessary to OOP that db connection but I feel like it and its cool!
Quick Update:
I’ve started on my InventorySystem, I will post its repository in my next post probably this week because I had to complete its interface.
I will also edit the source code page and put links to my github account for those who wants to develop the site further.
Peace!
Related articles
- There is always time for everything. Prioritizing is important.| New Projects and New Adventure! (troubledblogger.wordpress.com)
- Looking for OOP Design Suggestions (daniweb.com)
- Code Reuse has Finally Arrived…Obviously! (jjinux.blogspot.com)
- Has programming lost its way? Part Two (betanews.com)
- oop Lecture 7 (slideshare.net)
- ownCloud feed aggregator – the M part (algorithmsforthekitchen.com)
- Vb.net database oop (melvynsimons.typepad.com)
- Nmap NSE Howto: MySQL Auth Bypass (offensivecoder.com)
There is always time for everything. Prioritizing is important.| New Projects and New Adventure!
Lately I’ve been busy in a lot of things I have OJT and I’m also working part time on my projects, e.g Android Apps and etc. But then I just realized that it doesn’t make sense anymore, I can’t continue with the project atleast for now because I have better things to do. So I will probably stop the android development for a while in order for me to focus on much more important things. Especially classes is starting, and I’m haven’t finished my OJT (10 days left thank God) . And I’m excited because I can be able to work on my projects and prioritize on things that I needed to do to improve myself.
You guys probably noticed that the site has gone inactive for a while, its because I’m working on something interesting, I’m working on making an application or web application, I will not tell all the details but at least I’m telling this just let you know I’m still alive, barely breathing though lol.
I’ve been working on this website for like 2 weeks and I think 3 days if I can remember, working 2 hours morning, OJT in the rest of the day, and about an hour or two when arrived at home. In those 2 weeks I’ve covered a lot basics on web development, I learned PHP, HTML 5, CSS atleast the concepts I guess that’s the important thing to learn, the concepts. Right now I’ve reading jQuery and Javascript its like 5 days and I’m still in progress to learn those languages hopefully soon. This website is one of our projects in school but I did’nt do my best developing it at school, and I really want to improve it more and now I can finally develop it more and improve it because time permits me to.
I don’t feel tired at all but there are times that I just wanna lie in bed and hope in morning I can fully recover from exhaustion. I’ve never worked like this in my life, its like it was the first time and it was good, for the fist time, I’m doing things that is very productive everyday.
Life is too short to spend it on worthless things at least in your different perspective. I guess it really true that when love what you do, then you will never work a day in your life take me as an example.
Anyways in the latter part of the development I will do a documentation of the web application breaking the application into bits and pieces of codes and to give a little tips xD.
Source Codes will be upload soon.
Related articles
- 40 Useful HTML5 Tutorials, Techniques and Examples (onextrapixel.com)
- Converting C# to Java – An Experiment (Part 4) (adndevblog.typepad.com)
- Cut through the Email Clutter with the Android Gmail App (mycricket.com)
- HTML5 canvas color picker + jQuery + CSS3 (designscripting.com)
- How to Perform the World’s Greatest SEO Audit (seomoz.org)
- HTML5 Boilerplate: Making Web Development Easier (realeyes.com)
- Hack @ Kohort: Seeking Front-End Dev Rockstar (markpeterdavis.com)
- Palawan Journal: Introduction (manongbeli.wordpress.com)
- Tweet Heat – The hottest Tweets of the Month [May 2012] (inspiredm.com)
- How to speed up your website (itechtunes.com)
- Falk Mobile relaunch, the HTML5 way (9elements.com)
- How We Tune Our Own App Using RUM Data (newrelic.com)
- Web Optimization in Visual Studio 2012 RC (codebetter.com)
- OJT @ Fujitsu Ten (rhsapinoso.wordpress.com)
- A Day In the Life Of Me (cracked1979.wordpress.com)
- Work Less and Do More by Applying the Pareto Principle to Your Task List [Productivity] (lifehacker.com)
- Are You A Dog-tired Project Manager? Try These 5 Tricks To Regain Your Vigor (bootstraptoday.com)
Book Review: How The Little Prince End Up Being Happy At The End | Little Price
Among the characters of the story little prince who are you? And why? I would probably say that the best character that described my life in this story was the fox. From all the planets that he visit and the people he had met the little prince learned a lot from the fox. That in order for someone to be friend with other he should talk to him or have a connection with him. The fox said that all of us are just the same the only matters are that we make friends we connect to each other. The little prince bumped into a fox who asked to be tamed by him. To be tamed by someone is establish ties with them, so that each one becomes special to the other. When the little prince silently, saying he had lots of friends to discover and many things to understand, the fox told him sincerely:
“I’m beginning to understand’, said the little prince. ‘There is a flower… I think she has tamed me…’ …………The fox became silent and gazed for a long time at the little prince.
‘I beg of you…tame me!’ he said.
‘Willingly,’ the little prince replied, ‘but I haven’t got much time. I have friends to discover and a lot of things to understand.’
‘One can only understand the things one tames,’ said the fox, ‘Men have no more time to understand anything. They buy ready-made things in the shops. But since there are no shops where you can buy friends, men no longer have any friends. If you want a friend, tame me!’”
It’s quite funny how the fox deliver that taming thing but, if one wants to make friends he should tame or connect with him and I think that is how world works, grown up are pond of buying ready-made things and often ignored that what they got is just things. And they end up being depressed because they didn’t spend their money in good use. It’s like they are being selfish while others is in the midst of hunger and agony. I’m like the fox, which needs friend not just friend who looks at things in figures but a friend who value friendship and loyalty and see through just physical figures.
Related articles
- When Beauty Tamed the Beast by Eloisa James (biggirlbooks.net)
- His Treasure (Men of Valor #1) by Kiru Taye (everybodyneedsalittleromance.com)
- Book Review: Unbreak My Heart by Melissa Walker (literallyjen.com)
- Book Review: Collection Three (mylifeworthliving.com)
- So who’s the winner? (bookrhapsody.wordpress.com)
- Badge of Honor (rhymenreview.wordpress.com)
- Jellicoe Road by Melina Marchetta (atubofjellybeans.wordpress.com)
- Review: “A Confusion of Princes” by Garth Nix (birthofanewwitch.wordpress.com)
- Lauren Child’s Favorite Books from Childhood – New York Times (blog) (artsbeat.blogs.nytimes.com)
- An Enigma, Wrapped in Glitter: ‘Prince: The Making of a Pop Music Phenomenon’ (Review) (popmatters.com)
- Dracula, a tribute (onceuponascreen.wordpress.com)
- Book Review: MWF Seeking BFF: My Yearlong Search For A New Best Friend by Rachel Bertsche (imperfecthappiness.wordpress.com)
- A Year Without Autumn by Liz Kessler – review (guardian.co.uk)
- Book Review: Boy and Bot by Ame Dyckman (shoppingblog.com)
- Dark Prince, by Christine Feehan (mrsaubergine.wordpress.com)
- Review: An Uncommon Education (bookingmama.net)
- Book Review: The Midwife’s Confession By Diane Chamberlain. (lifeintheblueridges.wordpress.com)
- Book Review: Collection Two (mylifeworthliving.com)