₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,281 members, 8,430,168 topics. Date: Saturday, 20 June 2026 at 01:15 AM

Toggle theme

Seun's Posts

Nairaland ForumSeun's ProfileSeun's Posts

1 2 3 4 5 6 7 8 ... 545 546 547 548 549 550 551 552 553 (of 1138 pages)

ComputersRe: Naira Sign (₦) On A Keyboard? by Seun(mod): 5:00pm On Dec 14, 2008
osagab:
To use the NAIRA Sign and display it on browsers other than  Internet explorer.if you are using mozilla firefox or opera add this to your meta tag,  make such you use the tahoma , Lucindan Unicode on type.

<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
.naira{font-family:Tahoma,Arial Unicode MS,Lucida Sans Unicode}

</head>

<body>
<span class="naira">₦</span>

</body>

</html>
@osagab: that's a very clever solution. Thanks! I think you also need to enable UTF-8 encoding in your editor.
Nairaland GeneralRe: Seun Partiality Is A Disease by Seun(mod): 3:51pm On Dec 14, 2008
We will look into the "iice can I meet you thread", but mukina2 and other moderators are working very hard to make this forum habitable and we need to give them more respect and appreciation.
ProgrammingRe: Want To Know About Programmer Opportunities by Seun(mod): 3:38pm On Dec 14, 2008
The vast majority of software opportunities out there don't really require programming. 
They involve software installation, configuration, administration and customization. wink
Foreign AffairsRe: Ghana: The Real Pride Of Black Africa by Seun(mod): 3:35pm On Dec 14, 2008
Ghana cannot "colonize" Oshodi alone, not to talk of the whole of Nigeria! cheesy
Christianity EtcRe: Why Is It That Witches, Wizards And Demons Never Attack Atheist? by Seun(mod): 10:18pm On Dec 13, 2008
Take your "demon-possessed" child to a good mental institution, and he will be "healed" in 2 weeks. Grr.
European Football (EPL, UEFA, La Liga)Re: Liverpool (2) Versus Hull City (2) Saturday 13th December by Seun(mod): 4:37pm On Dec 13, 2008
So it's 3-1 now?
ProgrammingRe: Criticism Of Object Oriented Programming by Seun(mod): 11:57am On Dec 13, 2008
Let me put it this way: Python is object oriented.  It is also procedural.  And functional.  And module-oriented. The website emphasizes the OOP aspect to keep people like you interested, that's all.

I think we can all agree that the misuse of OOP constructs is a bad thing.  What we don't agree upon is what constitutes misuse and what constitutes acceptable use.  To discuss this we have to discuss various specific problems and explore the ways of solving them with each approach.
ProgrammingRe: Moving On To J2EE by Seun(mod): 11:48am On Dec 13, 2008
What is J2EE used for? huh
SportsRe: Forgotten Players In Nigerian Soccer by Seun(mod): 8:53pm On Dec 12, 2008
moderator, i want to know why i found this thread in the recycle bin.
European Football (EPL, UEFA, La Liga)Re: Barca versus Real Madrid by Seun(mod): 5:27pm On Dec 12, 2008
Barca! (Making this thread sticky because both teams are really well known)
ProgrammingRe: Criticism Of Object Oriented Programming by Seun(mod): 3:37pm On Dec 12, 2008
@seun
python is object oriented
python is very good for rapid prototyping because its object oriented
python uses higher level data structures like tuples, lists etc because its object oriented
do you do garbage collection in python ? no , because its , all objects tuples included descend form a single object hierarchy -- so you might not like oo but Guido does, and he built python on it
As someone who uses Python everyday, I can assure you that you don't know what you're saying.
Python is a multi-paradigm language. It supports OOP, procedural, functional, etc. Anyone you like.
(Unlike Java which forces OOP on you by forcing you to declare classes in every single program.)
Your post is quite insightful, even though I don't fully agree with you, but please leave Python alone. wink
SportsRe: PSV Eindhoven (1) Vs Liverpool (3) by Seun(mod): 3:26pm On Dec 12, 2008
bgees:
Arsenal will have no where to hide when they meet us.
Big talk!
European Football (EPL, UEFA, La Liga)Re: Liverpool (2) Versus Hull City (2) Saturday 13th December by Seun(mod): 3:24pm On Dec 12, 2008
Liverpool? League Leaders? How and when did this happen? Is this a train we need to jump on? wink
European Football (EPL, UEFA, La Liga)Re: Chelsea (1) Vs West Ham United (1) Sunday 14th December by Seun(mod): 3:23pm On Dec 12, 2008
Chelsea, the most boring team on the planet, is probably going to win yet again. Alas.
PoliticsRe: CNN Says Oil Is A Curse To Nigeria! by Seun(mod): 2:54pm On Dec 12, 2008
The report is nothing new. We all know these things already. Why are we making it such a big deal?
SportsRe: Brazillian Girls With New Throw In Skills - Pics by Seun(mod): 9:57pm On Dec 10, 2008
I don't support women doing tedious sports.
They don't look feminine and attractive to me again.
See that girl muscle, which man go want romance that kin muscle?
Does she even know you exist, not to talk of seeking to be romanced by you? The fact that you are not attracted to muscle does not imply that women should not play sports. Every woman need not please you, you only need one. Some like them feminine (wimpy and weak) and some like them strong.
European Football (EPL, UEFA, La Liga)Re: Manchester United (2) Vs Aab (2): Live by Seun(mod): 9:51pm On Dec 10, 2008
What. Man U is losing? I don't believe it. They had just equalized when I left. shocked
European Football (EPL, UEFA, La Liga)Re: FC Porto(2) Vs Arsenal (0): Live by Seun(mod): 9:50pm On Dec 10, 2008
These gunners; always breaking peoples' hearts.
CultureRe: Men Don't Think African Culture Is The Best. They Like It Because It Favors Them by Seun(mod): 9:48pm On Dec 10, 2008
Someone I know was being beaten by her husband like a dog. She went to the police to complain and the police man said and I quote

"Go back to your husband you useless woman. Wetin, you no fit cook soup"
Why couldn't she look for a police woman?  If you're waiting for wife-beaters to save you from other wife-beaters, you will wait forever.  Women need to take charge of their own concerns and stop expecting men to 'save' them.  Wise up, ladies. wink
PoliticsRe: Yar'adua Seeks End To Immunity For Leaders by Seun(mod): 6:36pm On Dec 10, 2008
http://news.bbc.co.uk/2/hi/africa/7775288.stm

Mandela or Maradona, which is he?
CultureRe: Men Don't Think African Culture Is The Best. They Like It Because It Favors Them by Seun(mod): 6:24pm On Dec 10, 2008
I honestly don't think anyone should question God's word "OKO NI OLORI AYA"
Question: was that statement not written by a man? You're just proving the original poster right!
SportsRe: The True Fact Of Nairaland Sports Section by Seun(mod): 6:20pm On Dec 10, 2008
Yeah, can we create a long-running thread for every single Nigerian player abroad and update each one regularly?
CultureRe: Men Don't Think African Culture Is The Best. They Like It Because It Favors Them by Seun(mod): 1:51pm On Dec 10, 2008
This is a discussion forum. It's a place for people to "bitch" about things. wink
ProgrammingRe: Criticism Of Object Oriented Programming by Seun(mod): 11:51am On Dec 10, 2008
OOP sure does help in ActionScript,   with inheritance and creating classes
u'd want 2 reuse l8r on etc,  sure makes things a lot easier for us graphic developers
This reminds me of something i wanted to point out.  GUI development is one of those areas where OOP seems to work really well.  Another area is gama development, or any program that involves virtual simulations.  I would absolutely use OOP if I was creating anything like that, because OOP is a natural fit for those problems.

But it's a mistake to force OOP into every 'complicated' problem.  The Linux kernel and GNU linux are not OOP.   Apache is not OOP.  PHP became successful without supporting OOP.  Yahoo used PHP exclusively before it supported objects.  Is Yahoo not a complex website?  It's a myth that OOP is better for every complex problem.  OOP is just one possible approach and it fits certain problems better than others: games, simulations, graphics.

You can still do all this in a procedural language if you structure your app into modules and you have functions here and there but my point is that you can do it more easily in OOP
You think it's easier in OOP is probably because that's what you're used to.  But it's not the only way, and it's not always the best or most user-friendly way.  Let's use the right tool for every job.

Very valid points
OOP concepts can be validly replicated in procedural
Methods ==> Functions
Objects ==> Modules
Thanks. smiley  But: those concepts originally came from procedural programming and OOP simply stole them. wink

Tuples and list are just Lists in java but i have a problem with the fact that you can have mixed data type in them.  It will be very hard to find bugs that are based on you putting a wrong type in a tuple. i.e ur app expects a String but you have somehow added a number into the tuple
Python is strongly typed.  If you try to perform numeric operations on a string, you'll get a TypeError.  So that's not a problem.  (but you have to run your program to catch the error).

The advantage is that I can group any arbitrary objects together without defining a class or struct.  Instead of being forced to define a User class, I can create a tuple (iduser, username, emailaddress).  And I can take 50 such tuples and add them to a list, and send the list to a PromoteThemAll() function.  Unlike a class, I can include only the fields needed by the PromoteThemAll() function.

@Seun: good point but u can not extend the hello, standard library without the source code if need be or can u ?.
Yes, you can.  You can create new functions that depend on the functions in the standard library.  That is equivalent to overriding a class method with a new method that calls the parent method.  You can create new data structures that contain data structures in the standard library.  This is equivalent to adding new variables in a child class.

@Seun: Guess u still have a lot to learn about OOP in the real sense. Inheritance solves that problem neatly and it works fine for me sha.
No, it does not.  Unless your database supports inheritance, you have to rewrite the database queries, which is the same as what you'll need to do in a procedural program.  Inheritance is a fancy name for "writing new functions that depend on provided functions".  The amount of code you have to write is the same, the only difference is the way you write it.

@Seun: I am hearing that for the first time in my life ?. What holds a Student's table in your programme logic ?
The database holds my students table.  My program logic retrieves rows based on SQL queries and stores them in tuples, which contain just the fields that are needed in the current function.

"redundant and wrong" what authority are you quoting.  Huh
The [url=http://en.wikipedia.org/wiki/Don%27t_repeat_yourself]don't repeat yourself[/url] principle (DRY)

All you need to do is to write an app that builds your classes straight from your database.
What happens to your classes when your database changes?  That's why the DRY principle exists. wink  

read up  "OBJECT ORIENTED DATABASE DESIGN".
I have and it's mostly hype too.  It's meant to appeal to people who are afraid of SQL.  
Don't be: SQL is just another programming language that you can master very easily.

I think anything you can do with a procedural language you can do with an OOP language but the converse is not the case.
There is no modern procedural language that doesn't support OOP, and there is no OOP language that doesn't support procedural programming.  The point is to use the right tools for the right job.  When you use OOP for appropriate problems like GUI work, simulations, and graphics, it helps a lot.  When you use it inappropriately in text/html processing programs, data access libraries, etc, it just makes your program harder to read.   Anything you put in a program that doesn't need to be there makes the program harder to read and maintain (except comments, of course).

OOP makes sense because reality (as in things we see around us) is most easily modeled using this paradigm
Programming is not about modelling reality.  It's about solving problems.  Sometimes, the problem involves modeling virtual objects e.g. game characters and GUI widgets, and that is where OOP is really useful.  But when you're executing complex mathematical calculations, doing complex text/html processing, or manipulating a complex corporate database, OOP can be more of an obstacle.

What I'm proposing is a multi-paradigm approach: let us understand the best practices in OOP and procedural programming, and use the most appropriate mix for each project.  Don't define classes or use inheritance unless that is the clearest way to solve the problem.  In fact, there are many useful programming paradigms beyond OOP and Procedural.  E.g. functional. Let's learn them all, and use them all, where appropriate. wink
LiteratureRe: Pulitzer Prizes To Allow Online-only Publications by Seun(mod): 2:31pm On Dec 09, 2008
Nice!

1 2 3 4 5 6 7 8 ... 545 546 547 548 549 550 551 552 553 (of 1138 pages)