Ektbear's Posts
Nairaland Forum › Ektbear's Profile › Ektbear's Posts
1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 151 (of 485 pages)
lmao See propaganda back and forth |
Freedom of choice, though. People should be able to eat what they like.. |
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. |
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? |
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.+100 |
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? |
[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! |
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. |
Who wan die of diabetes just because GEJ wants to force you to eat cassava bread |
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.. |
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. |
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.Lol |
Man wtf was I writing when I made my post above. Lol, I thought it was in the other thread. My bad |
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. |
lmao |
Not a religion, but a way of life. |
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. |
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. |
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. |
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%.. |
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. |
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. |
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. |
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. |
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. |
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? |
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? |
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? |
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 elseMy 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 ![]() 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 ![]() 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. |
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. |
I knew that my Yoruba people would not disappoint me in this one |
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)
. . .
. . .