₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,699 members, 8,446,692 topics. Date: Friday, 17 July 2026 at 01:26 AM

Toggle theme

Ektbear's Posts

Nairaland ForumEktbear's ProfileEktbear's Posts

1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 151 (of 485 pages)

PoliticsRe: Orji Is Transforming Abia’ by ektbear: 11:00pm On May 23, 2012
lmao

See propaganda back and forth
PoliticsRe: Lawmakers Reject Jonathan’s Cassava Bread by ektbear: 10:59pm On May 23, 2012
Freedom of choice, though.

People should be able to eat what they like..
ProgrammingRe: Is Python Really Worth The Buzz And Hype It's Getting ? by ektbear: 10:54pm On May 23, 2012
Lol. I said "feel." I.e., it is my opinion. There is nothing that Ruby can do which Python can't, actually. In fact, the opposite is probably true...hence my attempts to transition from Ruby to Python as my main language.

However, Ruby is a more beautiful language, imo.
PoliticsRe: Lawmakers Reject Jonathan’s Cassava Bread by ektbear: 10:51pm On May 23, 2012
alj harem: I found this (among other things): http://www.livestrong.com/article/314844-cassava-as-diet-alternative-for-diabetics/

It actually appears that that rep might be mistaken. Seems to be beneficial rather than detrimental.

Still, what about freedom of choice? Why can't people choose what they want to eat?
ProgrammingRe: Unit Testing by ektbear: 10:47pm On May 23, 2012
logica: If your application is well designed, you will find that the Unit Tests are no more than calls to the actual business logic (the engine so to say). Since you are a Java person, I know you can understand when I say the Unit Test component simply replaces the Web-layer calls (say in your Struts2 Actions) but with extra code for assertions.

With this in mind, you should see the value of Unit Tests which already provide a use-case check versus requirements even before the Web-layer is complete. It's like having a test framework for your Jet engine in a lab before you've completed the airplane fuselage (which is actually how engineers test engines). You don't wait till the airplane is complete to test the engine; and as a matter of fact, the test of the engine comes first since it's the most important component after all.

Given any application, you have a finite set of use-cases/requirements. You should then be concerned about coverage and completeness. You don't just want to develop an application (non-trivial that is) without having exhaustively tested ALL the use-cases; as a stable application does not come about by simply keeping your fingers crossed. So how do you do this? TDD is just one of the ways you do this. You could also employ a team of human testers to exhaustively test; but with the associated drawback of human error and oversight.

TDD effectively tests your understanding of the requirements, and the completeness of your implementation.
+100
PoliticsRe: Lawmakers Reject Jonathan’s Cassava Bread by ektbear: 10:43pm On May 23, 2012
alj harem: what do you mean
“30 to 40 per cent of Nigerians are diabetic and it will be unfair to compel them to eat cassava products since mostdiabetic patients are barred from consuming foods such as cassava,” he said.


Are diabetics advised by their doctors not to eat cassava?

Is there a doctor in the house? Or someone who can google the relationship between cassava and diabetes?
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 10:42pm On May 23, 2012
[quote author=Negro_Ntns]Gbawe,

I read your response on page 9. Part of the recipe for forging ahead in progress is to wean the North of it's birthright mentality. They do not have a birthright to rulership or to bloodshed. If as you suggested West should compromise for peace by putting Fashola for VP to a Northerner on top of the ticket, then it is a position of yielding. The West must not yield, even in the face of terror and carnage.

In fact, I am in support of humbling the Northerners by denying them rulership for the next 20yrs. Let the Presidency rotate in the South and the Middle Belt and let the North learn to get along peacefully with everyone, instead of everyone else compromising to get along with the North.[/quote]cooooooosign!
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 10:41pm On May 23, 2012
Gbawe, I think this is just one of those things where we'll have to agree to disagree.

It is my fervent hope that most Yoruba people think as I do on this matter.
PoliticsRe: Lawmakers Reject Jonathan’s Cassava Bread by ektbear: 10:36pm On May 23, 2012
Who wan die of diabetes just because GEJ wants to force you to eat cassava bread
PoliticsRe: Lawmakers Reject Jonathan’s Cassava Bread by ektbear: 10:36pm On May 23, 2012
Diabetes is not a good reason?

What of the reason they proposed that people should be free to eat what they want, w/o being forced?

I agree with the lawmakers..
PoliticsRe: Nairaland 2012 Ethnic Census by ektbear: 10:31pm On May 23, 2012
PhysicsQED: And you seem to be assuming that there isn't. Why?
Err. Can't that reasoning be used for any assumption one wants to make? You have to justify why your assumption is reasonable, not me justify why it isn't...

If I came in and my group wasn't listed I wouldn't bother to identify myself or post in hopes of starting some spontaneous running tally in this thread of members of my ethnic group. I would just leave. The assumption I'm making is that this is standard, normal human behavior and is what most people would do.
Look, for this to actually be a problem, there needs to be some large, unrepresented group on this site, which is actually a small fraction of Nigeria's population, but for whom all of the members of said group behave in the exact same way you do. I.e., they'd just leave the thread rather than posting, "Hey, you guys forgot Group X."

Does this really sound that plausible to you? Of the members of Ethnic Group X who visited this thread, 100% of them read and left immediately w/o posting?

If 250 members of this ethnic group visited this thread, you are telling me that absolutely none of them would make a comment? They'd all just leave? And that is standard human behavior? That doesn't sound correct at all.
PoliticsRe: Lawmakers Reject Jonathan’s Cassava Bread by ektbear: 10:20pm On May 23, 2012
Ganys: Peter Edeh (PDP, Edo) who led the opposition against the bill argued that compelling manufacturers of flour to include cassava would amount to compelling Nigerians to eat products thatmay be injurious to their health.
“30 to 40 per cent of Nigerians are diabetic and it will be unfair to compel them to eat cassava products since mostdiabetic patients are barred from consuming foods such as cassava,” he said.
“It will be impinging on people’s rights and endangering their lives to compulsorily include cassava in what theyeat.”
At the end of the debate, the Deputy Speaker, Emeka Ihedioha conducted a voice vote and the lawmakers unanimously voted ‘Nil’ to the bill.
Majority of lawmakers who kicked against the proposal advised the government to find alternative ways of enhancing the exportation of cassava instead of forcing people to consume it.
Lol
ProgrammingRe: Code Reading is as Important a Skill as Code Writing by ektbear: 9:18am On May 23, 2012
Man wtf was I writing when I made my post above.

Lol, I thought it was in the other thread. My bad
ProgrammingRe: Unit Testing by ektbear: 8:06am On May 23, 2012
farouqzaib: Learnt a lot from this thread. I use unittest for my Python code. And if u have to test code which are dependent, u can always mock the object. Seeing as this is about tests, anybody ever used Selenuim to automate browser tests? IMHO, I think it is more work than is actually needed.
I wrote my tests using something called Webrat (https://github.com/brynary/webrat) that simulates a browser.

Those tests tend be to pretty slow, though.

But I like how they map directly to what a user of your application will experience.
PoliticsRe: APGA Man Reagan Ufomba Advised By His Kinsmen To Leave Abia And Come Back Home by ektbear: 7:42am On May 23, 2012
lmao
Christianity EtcRe: Tell The Whole World Now Christianity Is Not A Religion!!! by ektbear: 5:38am On May 23, 2012
Not a religion, but a way of life.
PoliticsRe: Nairaland 2012 Ethnic Census by ektbear: 5:36am On May 23, 2012
Well, you are assuming that there is some significant, unrepresented population that also refuses to identify themselves.

We have to make assumptions one way or another.
PoliticsRe: Nairaland 2012 Ethnic Census by ektbear: 5:20am On May 23, 2012
At the end of the day, we must make assumptions.

For all we know, in reality Ethnic Group X represent 20% of Nairaland, despite only being 0.1% of Nigeria's population.

Yes, in situations like this, this poll would be quite flawed.

But it is reasonable to assume that in most cases (emphasis on most) that there is some sort of relationship between % of Nigeria's population and representation on NL. At least, enough of a relationship wiehre 20%/0.1% type of stuff won't happen.

Yes, without a perfect poll, then one won't know if this assumption is justified or not. But that doesn't render the poll entirely useless.

And again, you are assuming that there is this large, uncaptured population who also refuses to self-identify on this forum. That seems pretty implausible to me.
ProgrammingRe: Code Reading is as Important a Skill as Code Writing by ektbear: 5:02am On May 23, 2012
Python is easy to read. So is Ruby. PHP can be easy to read also.

But then when you start to take small, each easy to read functions, then start building classes with them, then from those classes build more complicated systems, it sure is nice to be able to catch bugs quickly.

In fact, the easier a language is to write big, complicated systems with, then the more important it is to use testing.
PoliticsRe: Nairaland 2012 Ethnic Census by ektbear: 4:33am On May 23, 2012
Think about it mathematically.

If I have a coin that comes up head P percent of the time, then on average I expect I'll need to flip the coin 1/P times before I get a head.

Given that P in this case for Ogonis is probably on the order of 0.01%..
PoliticsRe: Nairaland 2012 Ethnic Census by ektbear: 4:29am On May 23, 2012
PhysicsQED: I don't see how the fact that 90% of Nigeria's population is represented by those groups listed up there changes the fact that the poll is not necessarily a good indicator of the ethnic composition of the users on the site.
If I've successfully estimated the composition of 90% of the population of a site through an internet poll like this, then I am doing about as well as one can expect. Clearly it won't estimate the distribution with perfect accuracy. And if you are setting your bar at "perfect accuracy", obviously you are expecting too much.

For all we know there could be 3 or 4 times as many Ogoni users of the site that are willing to vote as Jukun users, but an Ogoni might not see their group listed and just exit the thread.
So? Again, both groups represent tiny fractions of Nigeria's population in general, and likely a tiny fraction of the population of this forum. Yes, it is possible that you are not measuring exactly a group that represents 0.1% of Nigeria and Nairaland's population.

But complaining about that makes as much sense about complaining that some national poll doesn't measure the independent candidacy of ekt_bear for President of the US in 2012 very well, and underestimates it.

Maybe my hypothetical presidential campaign should be angered that Gallup reported my support at 0.01% when in fact a better estimate is 0.1% of the US population who wants me as president. But.. telling small numbers apart from zero is in general not that easy.

And Ogonis have the option of posting here on this forum. There is no reason to assume they'd just exit the thread if they don't see their group listed.
ProgrammingRe: Unit Testing by ektbear: 4:15am On May 23, 2012
Finally, in your case, there are excellent testing tools for Python. One in particular (Doctest) is really fast and easy to use. At a minimum, you should be doing that for your functions.
ProgrammingRe: Unit Testing by ektbear: 4:13am On May 23, 2012
The guy I hired to help me. There were several candidates available. One of them knew absolutely nothing about writing tests.

It scared me, and I ended up not hiring him. Why?

Because if he can't write tests for his code, then how will I know that it works as it should? How do I know it won't break later?

Or that there are some subtle differences between the code he wrote for his system that cause them not to work for mine?

Testing helps you catch all of that.

I would never hire a programmer who doesn't understand the value of tests for his code.
ProgrammingRe: Unit Testing by ektbear: 4:10am On May 23, 2012
Seun, I think you should give it a shot.

Here is the deal. So I've been working part time on this little web app over the past few years. Just a little fun personal project.

And sometimes I have to take 3 or 6 months at a time in which I make no progress on the code, don't get to touch it at all.

And me, I forget a lot of stuff. So how can I confidently modify the code 3 or 6 months later? How do I know that a change I make won't break things and introduce a lot of bugs?

Am I going to waste 1 hour every time I make a change, clicking through every part of the application and manually verifying that my change didn't introduce a bug? My application is way too complicated for that.

Rather than wasting my time manually checking that I didn't break something, I can instead just run my tests again, verify that nothing broke.

Then when I add a new feature, write a test for it.

I would have been totally screwed without tests.
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 12:37am On May 23, 2012
One other point. I did not dismiss Sule Lamido for being gay. Personally I don't care about that...it is none of my business. All I care about is if you have done well at your previous job, and are likely to do well at your future one.

However, I am just speculating that they won't put him forward as their candidate. We shall see; I certainly don't live in their heads and know who they want to pick.
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 12:25am On May 23, 2012
This is the same way they plucked a zombie-like Yar'Adua and installed him as president.

No tangible accomplishments during his 8 years as governor. And did pretty much nothing as president.

Why are you all so attracted to failures?
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 12:21am On May 23, 2012
Or are my standards too high?

Am I insane for thinking it a bad idea for a guy who has failed as governor to then be promoted to president?

How many of you would be happy with him as the governor of your state?
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 12:20am On May 23, 2012
He has been governor since 2007. He is adjacent to Abuja, one of the fastest growing cities in Africa, a city in which billions of dollars in oil money is spent per year.

Defend your candidate, jmaine. What has he done in the 5+ years he has governed Niger State?
PoliticsRe: 2015: North Banks On S’west To Stop Jonathan ! by ektbear: 12:18am On May 23, 2012
jmaine: Your always try to find faults in people especially names known to be quite competent and very loaded upstairs . .You confidently feel it is Fashola or no one else huh . . .

You dismissed Sule Lamido for being gay . . . and also questioning why i chose to mention Babangida Aliyu . . . .Forget about sentiments . . .Only a few Governors both past and present in Nigeria can match his intellect . . . . Niger state might not be as buzzy as Lagos in development index due to obvious factors . .But he is trying his best . . .What makes you feel a certain Babatunde Fashola doesn't have a weak spot to attract ferocious political attacks . .the mere branding him a Tinubu puppet,lackey and conduit pipe for siphoning money from Lagos State coffers is enough to dent him seriously when the mud slinging begins . .You think he is immune to political attacks ? . .Think again bruv . . .

p.s Quit being dogmatic about your choice . .Fashola is good . .but there are other choices as well and Aliyu is one even though he belongs to the Notorious PDP clan cool . . .
My brother, I would not be happy to have Babangida Aliyu as my LG chairman. Let alone my governor. Let alone my president. Why on earth would you suggest him as president of Nigeria huh huh

You say he has high "intellect", because he has bamboozled you with pro-GEJ words in the media?

Where is this intellect manifesting itself on the ground?

This is why at times I wonder about you PDP Yoruba. In your heart of hearts, you would be disappointed if he was your LGA chairman. And now you want him as president undecided

I don't understand the way you guys reason.

You want to take guys who have failed at the task they were given, and give them even larger responsibilities.

That is a recipe for disaster.
ProgrammingRe: Code Reading is as Important a Skill as Code Writing by ektbear: 11:46pm On May 22, 2012
You are 100% right. But...it is time consuming. I think for someone who wants to really call themselves a software developer, it is something they should definitely do.

But for dabblers like myself, I only read the bare minimum necessary in order to accomplish whatever task I want to do.
PoliticsRe: Nairaland 2012 Ethnic Census by ektbear: 11:43pm On May 22, 2012
I knew that my Yoruba people would not disappoint me in this one
ProgrammingRe: Unit Testing by ektbear: 11:41pm On May 22, 2012
Of course, it is an iterative process.

You don't simply write the tests blindly and expect that they won't change at all.

You write some tests, write some code, perhaps revise your tests, write some more code, etc.

1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 151 (of 485 pages)