₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,157 members, 8,448,903 topics. Date: Tuesday, 21 July 2026 at 04:12 AM

Toggle theme

Timbs001's Posts

Nairaland ForumTimbs001's ProfileTimbs001's Posts

1 2 3 4 5 6 7 8 ... 13 14 15 16 17 18 19 (of 19 pages)

ProgrammingRe: Let's Learn Object Oriented PHP! by timbs001(op): 8:10pm On Apr 04, 2012
pc guru: for now Zend Framework 1 is having a total rewrite and believe me Zend 1 is too compilcated and slow, i think for now Yii ,CakePHP, codeigniter is good but Yii is the fastest and the easiest that i know, to grasp first Zend Framework 2 is almost out which is a bit too complex esp with new patterns, try Yii if you don't like Yii or find it hard i'll send my real address for you to beat me up cheesy.
OK, I'll try to pick up Yii once I'm free from some projects
And incase it's not as you promised, don't hesitate to send
Your real address for me to..... cheesy
ProgrammingRe: Let's Learn Object Oriented PHP! by timbs001(op): 7:54pm On Apr 04, 2012
wink@bumdish, nah
The advantages of OOP PHP are too immense to ignore it.
You can't work with most PHP based CMS without understanding
OOP PHP, and also Zend framework.
PHP is fast becoming a full fledged Object oriented language
As of PHP 5.4. To ignore it is to remain outdated
And miss out the advantages and features.
Never regretted learning OOP PHP.
Happy PHPing cheesy

@ Pc_guru, u are right, one can get acquinted with OOP PHP
While working with PHP frameworks.
I will recommend Zend framework or DRupal CMS those are the
Ones I work with. wink
ProgrammingRe: Let's Learn Object Oriented PHP! by timbs001(op): 6:40pm On Apr 04, 2012
@pc_guru, noted. But - didn't have intention of going into that soon anyway. Thanks for the tutorial post. Guess you know much about OOP PHP too. Looking forward to more postings from you. Happy PHPing cheesy
ProgrammingRe: Let's Learn Object Oriented PHP! by timbs001(op): 10:49am On Apr 04, 2012
TUTORIAL ONE: ADVANTAGES OF OBJECT ORIENTED PHP PROGRAMMING


CODE REUSABILITY


Breaking down complex tasks into generic modules makes it
much easier to reuse code. Class files are normally separate from the main script,
so they can be quickly deployed and reused in different projects.


POLYMORPHISM

Each class and object is independent, so method and property names are intrinsically associated with
the class and any objects created from it. There’s no danger of naming conflicts, so
methods(functions) or properties(variables) can have the same name as long as they exist in different classes.

If you have two functions bearing the same name in a script written in the procedural way, it will cause a fatal error.
In OOP PHP, you can have something like:

<?php

Class A {
Public function isEmail(){
// code goes here

}

}

Class B {
Public function isEmail(){
// code goes here

}

}
?>


There will be no error arising from the above code because each isEmail() function exist in a scope of its own, i.e encapsulated.



SIMPLICITY AND READABILITY



Imagine validating user form fields and all you see in the code is the following

<?php
// use class methods to validate individual fields

$val->isInt('age');
$val->removeTags('name', 0, 0, 1);
$val->checkTextLength('comments', 5, 500);
$val->removeTags('comments', 0, 0, 1);
$val->isEmail('email');

// validate the input and get any error messages

$filtered = $val->validateInput();
$missing = $val->getMissing();
$errors = $val->getErrors();

?>



The above code is simpler and easier to read and understand as opposed to the procedural way.

The details for validation and generating error messages is safely tucked away in the classes and

Can be changed at anytime without affecting the implementations above in the client code.


PROTECTING DATA INTEGRITY WITH ENCAPSULATION:


The idea of encapsulation is to ensure that each part of an application is self-contained
and doesn’t interfere with any others, except in a clearly defined manner.

Each object will behave like a black box separate from even other objects
of the same class and the data in them can be restricted by access level .


IN TUTORIAL 2......


We will be talking about: what are classes and objects? and how to create classes and objects in PHP
Later we will move on to advanced concepts such as[b] abstract classes and interfaces and also the different ways of generating objects such as Singleton pattern and the factory pattern.[/b]

Feel free to ask questions


Happy PHPing cheesy
ProgrammingRe: Let's Learn Object Oriented PHP! by timbs001(op): 8:52am On Apr 02, 2012
@A-Zed and Hello1212, noted. We will kick off this week. Keep checking the thread for updates. Happy PHPing cheesy
ProgrammingRe: Let's Learn Object Oriented PHP! by timbs001(op): 4:05pm On Mar 30, 2012
@donciaglo and solokool, noted wink
EducationRe: JAMB/UTME 2012 Result Is Out! by timbs001(m): 2:47pm On Mar 30, 2012
rotiler: 25821668GJ pls i really need to see the result ..... 25821668GJ pls i really need to see the result ..... 25821668GJ
Checked it now:
No Result Yet
ProgrammingLet's Learn Object Oriented PHP! by timbs001(op): 11:10am On Mar 30, 2012
Most companies nowadays hiring PHP developers are requiring knowledge of Object oriented PHP as a requisite. I have worked with many Frameworks such as PEAR, Zend Framework and also Drupal CMS and all of them are developed using object oriented Approach. Most PHP developers are still comfortable with the old procedural way of coding and are seemingly scared of the word OOP. I want us to use this medium to enlighten everyone the advantages of OOP PHP over the old procedural way and also post relevant tutorials to help pple learn. Once pple signify interest , I will also start posting tutorials also. Pls let's keep the thread Educative and dedicated to PHP cheesy
Jobs/VacanciesRe: 2012 SON Hopefuls:lets Converge Here For Updates by timbs001(m): 10:54am On Mar 30, 2012
cheesy Almost forgot that I wrote the test too. Anyway, let's pray something good comes out of it.
PoliticsRe: Has Power Been Worse Than Normal Lately? by timbs001(m): 10:47am On Mar 30, 2012
Gbawe: Shout "fresh air" ten time followed by twenty halleluyahs. Your electricity will miraculously come on. wink wink
LMAO
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 9:05am On Mar 30, 2012
[quote author=Flex_sexybone]*coughs* kpuhukpuhu........*sneezes* etchiemmm.[/quote]undecided
BusinessRe: Otunba Gaddafi Is Dead (Mr. Isaac Agbetusin, Nigeria's Mobile Toilet Pioneer) by timbs001(m): 5:19pm On Mar 28, 2012
RIP sir embarassed cry cry
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m):
lilodez: BREAKING NEWS. Orientation and documentation scheduled for 23rd - 28th of april. Letters would be out before then. See you good people then.
BP's have been raised and lowered at this honorable forum and if one is not careful, one will be declared medically unfit by the time NSITF eventually calls us cheesy cheesy cheesy
@flex wink, Quite agree with your line of thought, you just need to polish the way you present it tongue tongue
@puplin, Be quiet or I will call you to order cool (I know who you really are wink)

@all, What will be will be.
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 7:09pm On Mar 22, 2012
@adah25, thanks for the prompt and timely update.
@puplin wink , why do I keep thinking that you are one of the oldies that registered a new account just to play pranks on us cheesy cheesy
@all, what God has started, he will finish.Amen
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 2:28pm On Mar 22, 2012
Where is adah25? and Broncop? wink
Abi una don check una names? Let's hear from you pls
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 2:04pm On Mar 22, 2012
reinedamse: Hehehehehehehehe grin more and more drama cheesy.anyway friday is tommorow. i wish everyone goodluck wink.
By the way,NSITF made a publication in Nigerian tribune dis morning.The organization has started its operations fully no doubt.
@reindamse what was the publication about?
@all, no fighting please cheesy cheesy cheesy
We will triumph at last IJN. Amen
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m):
lilodez: At all i called the man again with all the questions he said and i quote. 'You are disturbing me relax by friday 25 you will hear from them'. Now i am more confused because 25th is not friday but sunday so should we expect text messages by monday? Fear no gree me call the man again. I rest my case. Broncop, danto, adah, zico and all over to you
He probably meant 23rd and not 25th since he said friday. Anyway, let's keep praying and believing and as Notfree will always say: "We will not lose". Amen
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 4:47pm On Mar 19, 2012
lilodez: Letters to roll out by friday. It is well
@ lilodez, is it confirmed huh huh huh huh
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 9:57pm On Mar 15, 2012
@lilodez, Present ma! cool
We no go anywhere o, we dey background dey watch as things dey unfold cheesy cheesy
By his Grace, we will not be disappointed. Amen.
PoliticsRe: Breaking News :boko Haram Sets Conditions For Ceasefire by timbs001(m): 8:46pm On Mar 14, 2012
angry Their days are over and they will pay for their gruesome deeds!
PoliticsRe: Ngozi Okonjo Iweala Versus Dora Akunyili by timbs001(m): 3:55pm On Mar 14, 2012
papatosibe: They are both Ibo.

What good can possibly come from an Ibo woman?
undecided undecided undecided. Does your comment make sense at all huh huh
CrimeRe: Elochukwu & Chiamaka Nnajiofor Tortured 14 Year Old Oliver Arakwe To Death by timbs001(m): 2:14pm On Mar 14, 2012
cry cry. The poor boy.
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 5:43pm On Mar 13, 2012
Ameeeeeeeeeeeeeeen
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 5:03pm On Mar 10, 2012
@soamii55, apology accepted. You remind me so much of volla when he first came to this forum looking for brotherly companion! cheesy cheesy
(@volla, no offence please wink ). We remain one big family. Cheers smiley
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 4:57pm On Mar 10, 2012
soamsii55:
Add me On fb:olaosebikan, moses Abiola
soamsii55:
God Has answered our prayers. Thank him a lot! This Sunday, i suggest should be our prayer and thanksgiving moment with God, please still bear it in mind that God has answered our prayer request(s). Reach me:07065157846
angry@soamsii55, please let's be focused in this forum, why expose your name and contact? we are here for a united purpose and God's willing
we are there already. Cheers
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 9:41am On Feb 23, 2012
Home | Business | Minister to open NSITF Lagos office
Minister to open NSITF Lagos office
The full story,

By Dupe Olaoye-Osinkolu 6 hours 11 minutes ago


The Nigeria Social Insurance Trust Fund (NSITF), Lagos office will be inaugurated tomorrow by the Minister of Labour and Productivity, Chief Emeka Wogu, at its Maryland, Ikeja premises.

“It is in line with bringing these benefits to deserving employees that informed the choice of a befitting corporate office with state of the art facilities and full complement of staff at Lagos to enable NSITF to bring its services nearer to employers and employees for ease of accessing.

“This is just one of the many corporate offices the Board plans to open nationwide.

“The goal at the end of the day is to have a central database that will allow for 24/7 claims service in all NSITF branch offices. Providing convenient employee-friendly services is our focus,” the fund said in statement.
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 9:34am On Feb 23, 2012
irom:
nsitf innaugrates its maryland office today by emeka nworgu, minister of labour and productivity.culled from the nation newspaper.By Grace we will start recieving our offer letters before the week runs out as they have put everthing inplace waiting 4 our arrival. lets not relent in praying and also 4 catholic faithful lets take this lenten period serious for God wil see us tro.its well
cheesy cheesy cheesy cheesy. I know we will rejoice soon.

“It is in line with bringing these benefits to deserving employees that informed the choice of a befitting corporate office with state of the art facilities and full complement of staff at Lagos to enable NSITF to bring its services nearer to employers and employees for ease of accessing." culled from thenationonline.net
FamilyRe: Denying Husbands Brothers/cousins Their Said "conjugal Rights" by timbs001(m): 11:30am On Feb 21, 2012
BigBenoski:
Which kain thread b dis?? She had d power 2 secure her properties, lands,houses . . .(big big things) but when its time 2 simply keep her thighs closed,somebody rushed 2 open up a thread here. Infact, d story lie. Next
undecided undecided undecided
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 2:43pm On Feb 15, 2012
[quote author=dotman_a link=topic=718488.msg10201576#msg10201576 date=1329313123]NL,he just ringed me now and told me there was nothing there today.May be the poster need to confirm where the office is.
He told me he even saw the MD driving out and he went as far as speaking with the Secretary.Nothing happened there today.Thanks.
Pls we need to be guided with our information.[/quote]@dotman_a, Thanks for the prompt response. We will surely get there!
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 12:03pm On Feb 15, 2012
austushi1:
Could be those that applied for GM, DGM, AGM, PM and SM. Remember that, in one of the old posts, a forumite said they've started sending txt messages to them. Those with reliable source(s) should confirm for us. We shall never be shortchanged IJN-Amen. I kw d God I'm serving!
I think i toe your line of thought, although GM has already been called as confirmed by Irom. @Broncop and others in this category, please help confirm, also those living in Abuja,. We will be victorious.
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 11:51am On Feb 13, 2012
almithy:
pls any one wit latest update on nsitf
volla:
ppl in the house, updates pls, updates.
The latest update is on this same page nah huh shocked
Jobs/VacanciesRe: NSITF Interview In August by timbs001(m): 11:08am On Feb 13, 2012
onasharon:
Plastic card printer authorized reseller in Nigeria. Dual to single side card printing. Sales call Bayo on 08135586674.08185830580. Email. onadiran@gmail.com
angry angry angry  huh  Why pee on this thread. We are here for serious business.

1 2 3 4 5 6 7 8 ... 13 14 15 16 17 18 19 (of 19 pages)