Cebu Business I.T. Incubator

Object-Oriented Programming with PHP

The recent PHP versions now supports object-oriented programming or OOP, which usually are in class form. Since PHP OOP are in class form,  they have accessors, mutators, data members, etc. — much like the usual OOP programming languages. Last week, we started a short crash course with Web Development with PHP/MYSQL. So, I introduced a bit of OOP since most of the participants have the idea already about OOP ( in Java, C++).

Here’s a snippet I used as a demo during our short session:


<?php
class demo {
     var $name;
     function setName($nombre)
     {
          $this->name = $nombre;
     }
     function getName()
     {
          return $this->name;
     }
}
$naming = new demo();
$naming->setName("Jerome Locson");
echo $naming->getName();
?>

I guess if you have a  background in programming, you know how the code works. And if not, just drop me comment and I am willing to answer it.



Bespin: Code Editor on the Web

No code editor in your PC? Are you not comfortable with your text editor when using it for hard coding because it is not color coded? Bespin might help you with that. Bespin is a web-based open-source code editing tool that makes it easy for you to manage and edit codes on the web, anytime.

Bespin is a Mozilla Labs experiment that proposes an open, extensible web-based framework for code editing that aims to increase developer productivity, enable compelling user experiences, and promote the use of open standards.

Introducing Bespin from Dion Almaer on Vimeo.

Currently, it is under its initial prototype framework that includes support for basic editing features, such as syntax highlighting, large file sizes, undo/redo, previewing files in the browser, importing/exporting projects, etc.



GG Mashup: The Google + Globe Mashup

After the recent Globe + Google Developers Workshop, now opens the Google + Globe Mashup. This gives opportunity for developers to create a mashup application using Google and Globe Labs APIs and earn from it.  Announced during the event, I believe that this will be a two months challenge and will end by 3rd week of August. And for the first 5 application submitted will get a one-year Globe DSL subscription or a Tattoo package. Not bad at all, and with the chance to commercialize your mashup apps.

So, here’s the process (image courtesy of  Globe Labs):

globegoogleprocess

If you’re interested to join, please click here for the complete details. For different Google APIs visit Google Code. Globe Labs APIs are accessible for members only, so please register first to get access to the developer APIs.



What’s new with Mozilla Firefox 3.5 (RC)?

According to statistics, Firefox is the most commonly used browser in the market today. Firefox is the open-source web browser offer from Mozilla which recently released the Firefox 3.5 (Release Candidate) that will be out for public soon.

Here’s a video of Mike Beltzner, Director of Firefox Development, giving a quick tour on what’s new with Firefox 3.5 (Release Candidate):

Read more…



Using Google Web Elements (Conversation) as a Blog or Website Chatboard

Google-Web-Elements-ChatboardUnveiled by Patrick Chanezon during the recent  Globe + Google Developers Workshop I attended, the Google Web Elements. It is a set of Google products that you can easily customize and integrate in your website or blog. What elements can you add to your site? Well, you can add the following Google products: Calendar, Conversation, Custom Search, Maps, News, Presentations, Spreadsheets and YouTube News.

So, for this demo, I used the conversation element as a chatboard in this blog which is located at the bottom-right panel (see the screenshot). Read more…