₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,539 members, 8,445,951 topics. Date: Wednesday, 15 July 2026 at 07:44 PM

Toggle theme

Seunthomas's Posts

Nairaland ForumSeunthomas's ProfileSeunthomas's Posts

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 36 pages)

ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 5:11pm On Feb 26, 2016
FincoApps:
Except your earlier posts were joke, you have claimed severally you are the best. That was why I was expecting perfect codes from you, but it turns out, you make mistakes like everyone else.

And Yes, for once you are right about me. I do not like criticisms at all probably because I was surrounded only by people like you for a long time. (People that don't correct errors).

It's obvious you didn't go through the link I sent earlier. Please go through it, you are a good programmer, but you would be better if you knew how to correct errors without discouraging
Kindly post where i claim to be best programmer ohhhh.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:54pm On Feb 26, 2016
airsaylongcon:
Really?! shocked shocked shocked I will get proof in your words to disprove this assertion.

Meanwhile is guru01 still game or does he concede defeat? Larisoft your man also failed my question. So I'm beginning to draw a conclusion about you and your homies
please so ohhhhh....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:46pm On Feb 26, 2016
FincoApps:
Now that's how an algorithm looks like, not the code you wrote


seunthomas, please don't take this the wrong way but you behave like an old man. (Expects everything to be perfect but makes the same mistakes)
People like you dont like criticism. Ok Mr YES guy, you are good and the BEST.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:44pm On Feb 26, 2016
FincoApps:
Now that's how an algorithm looks like, not the code you wrote


seunthomas, please don't take this the wrong way but you behave like an old man. (Expects everything to be perfect but makes the same mistakes)
So what exactly is your contribution to us now abi you have come to start a agbero fight. Anyway, i am also open to criticism and am not claiming to be the best. If you know me well i dont try to prove anything. I think you are just plain bitter.....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:30pm On Feb 26, 2016
dhtml18:
Be like me, no chest beating
You wey beat chest so tey you beat another man chest as your own(zebra database)
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:29pm On Feb 26, 2016
nnamdiosu:
please gurus. i initally read the first three pages of this thread (so forgive me if i'm wrong). me i have a challenge. and its a challenge that i bet you isn't on google (believe it or not). who can create a count down thread that counts down to 6.pm every monday to friday, outputs a message when it gets to 6pm on the given date then restarts counting again till the following day 6pm. also on friday, it should re count till monday the next week 6.pm.
i heard my bros said give me any task within one hour in any language. bros over to you.
def run():
while True:
arraydays=[monday to friday]
if time!="6pm" and day not in arraydays:
sleep(till 6pm)
else:
print "Something"


Something like this. Its algorithm not working code sha
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:25pm On Feb 26, 2016
DanielTheGeek:
Wow, 18 pages. This thread has gotten more attention than it deserves.

Someone will look at the thread with high expectations but will be disappointed to find chest beating immature programmers.
Na me say make you no get chest to beat??
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:22pm On Feb 26, 2016
airsaylongcon:
Consider this factorial function.

int factorial(int n)
{
if(n!=1)
return n*factorial(n-1);
}

This function is
1)recursive for some values (all values apart from 1)
2) is not recursive for some values ọ́in this case the integer 1)
3) is guaranteed to terminate.

Now can you explain your choice of answer using the above recursive function?
From your question, we are not limited to a specific function but any function except from the onset you question was not complete making it a trick question or wrong.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:17pm On Feb 26, 2016
But make he no be say i dey support @guru01 I think is answer is the most likely.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:16pm On Feb 26, 2016
FincoApps:
If dhtml was the one who wrote this, you would be the first to write BAD CODE smh
Its not code MR JUMPER, its an algorithm. Make i shut my mouth as una no wan gree learn na.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:10pm On Feb 26, 2016
airsaylongcon:
The question was originally thrown at you. So feel free
Well i have my reasons for not answering it na. Anyway down to my analysis.

A procedure "CallBack" is recursive for *some* inputs. If this procedure is guaranteed to terminate, then which of the following is not true.
a) CallBack has a local variable
b) CallBack has an path of execution where it is not recursive (doesn't call itself)
C) CallBack refers to a global variable or has one or more parameters
The name of the procedure (or function if you like) is CALLBACK.
This procedure is recursive if it gets certain values (eg 3 or 7 or 199 etc)
For other values it is not recursive.
Irrespective of whether it gets a value that makes it recursive or not recursive it WILL terminate.
Which of the options in A-C is not true given the above qualities of the procedure

Well this procedure is guaranteed to never enter an infinity loop
Assumption A
Can the fact the callback has a local variable stop it from exiting. Yes if the local variable is used in a conditional statement that will always happen
function a(){
x=1;
if(x==1){
a();

}
}
This function will run till enternity because the condition will always be true and the function will always be called again and again
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 4:00pm On Feb 26, 2016
airsaylongcon:
It's NOT a trick question.
Can i do my analysis??
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:59pm On Feb 26, 2016
x=3;
function amADude(){
x=3;
amADude();


}
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:59pm On Feb 26, 2016
@airsaylongcon
Shey u know go vex if i comment for your question(I dey suspect say na trick question).
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:53pm On Feb 26, 2016
At this point(by some miracle) this thread is actually heading in the direction i want it too. Constructive criticism and brain wracking. Legends on the way......
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:50pm On Feb 26, 2016
FincoApps:
You criticize people's codes toooo much, it's becoming annoying. The painful thing is you don't bother to correct the code you criticized. See an example of correcting people's code without making them feel bad or inferior https://www.nairaland.com/2529139/tic-tac-toe-online-game. People make mistakes

Consider that you have written 2 codes or so on this thread and every single one had a mistake or 2 so please correct people's code instead of just bullshiting it
I try to but when i do people like you say am trying to pull other people down. So whats the point? I can only make my observations so people can look at it more deeply, i have explained the possible problems let them google it na.
Let me just explain that c language is a very dangerous language, their are things you can do in Java,C# or even C++ and get away with it but not in C
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:48pm On Feb 26, 2016
dhtml18:
@seunthomas, i put it to you that not declaring the variable will not cause all those rubbish errors you are talking about. Stop trying to confuse people on this thread with your ignorance.
That was how you said earlier that the javaScript that I (a whole dhtml/master of javaScript) wrote with eyes closed, was not supposed to run - that it was a fluke? You ought to be punished severely for that.
Now show me evidence that the code will actually cause memory corruption or whatever jargons you are saying, because i have never seen or heard it - and yes, I have been coding since 1998 (but i may not be a professor like you sha).


Better dont take that joker seriously, he just likes running his mouth recursively.
Of course boss it wont. You know it all na.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:24pm On Feb 26, 2016
sapientia:
Can you at least write the one that may not get segmentation or memory corruption?
Its not my fight(I wont). Contact me directly if you want the approximate solution.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:23pm On Feb 26, 2016
airsaylongcon:
Semantics. I have abundance of memory I don't care about segmentation fault or memory corruption. The koko is that the almighty problem he gave me was solved. Is this true or not? Wasn't he the same person that you alleged will kill me with an unanswerable question?
Its not about memory, but about someone writing code that would exploit your system because of that code you just wrote. That is why we have hackers exploiting systems because we write bad code na. We are all guilty.....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:18pm On Feb 26, 2016
airsaylongcon:
Hear what you master said when I asked him if my code was correct.



So please critique my code
Oya make i explain myself na before you crucify me. In programming especially in statically typed languages it is always recommended to declare every type before using it. Although code works fine but you did not define the type of i in your loop. Na wahala be dat ohhhh. It will work ohh but you may get segmentation fault or memory corruption.
What am i saying self. Looking at your code its very wrong........... You wont understand. IT WORKS ohhhh but ITS WRONG.....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:08pm On Feb 26, 2016
airsaylongcon:
Seunthomas you should learn to read before talking.

Here it is again

Off the top of my head

#include <stdio.h>
int main()
{
char str[100],i;
printf("Enter a string: \n"wink ;
scanf("%s",str);

for(i=0; str[i]!='\0'; ++i);
printf("\nLength of input string: %d",i);

return 0;
}

I have assumed that the maximum length of any string entered is 100. This can be modified upwards or downwards.

I have used '\0' to indicate end of the thread
Na which kind code you write? You go crash ya system ohhh. See memory corruption in the making.....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:07pm On Feb 26, 2016
CodeHouse:
Mscheeeew..maybe you are Osewa Seun hiding behind the monicker seunthomas, that one is your business, and you mentioned ban as if it determines my speed on the keyboard... Uffffff

I guess I should be shaking now.. Huh ?
na am not dat dude. He is just my name sake. Nice guy i hear but me am just here for the fun. But i have connection all over the world both dark and light web. So if i make you my case, na CIA go carry u ohhhh. Guantanamo things.....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:01pm On Feb 26, 2016
airsaylongcon:
I've written mine in C. Let him come and scrutinise it. I even thought he was going to hit me with a very hard question. Anyway you only get one shot and he has had his shot. I am still gonna ask him the same question I asked seunthomas
Na with mouth you write am? Show us the code na.... Oga warehouse manager
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:00pm On Feb 26, 2016
CodeHouse:
Dhtml please stop posting more codes.. this humiliation is too much and stop being NL convict grin
You, dem don dey prepare your cell block, na 10 years ban you go get..
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:58pm On Feb 26, 2016
CodeHouse:
You deserve a ban. Check Rule 15, youve done that countless times
Na which one be the censored word wey i post na??
Anyway na Night school you really go, those one na warning na the one wey dey red na him dey cause direct ban.......
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:51pm On Feb 26, 2016
mobolaji88:
Boss, pls leave personal insults out, direct all that energy to constructing ur arguments










**i'm out of kunu, starts to sip fura and watching silently**
babe no be my fault, na dem start am
See the way dhtml18 and him league of extraordinary area boys turn my thread to bottle throwing ground.......
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:50pm On Feb 26, 2016
CodeHouse:
... And you are supposed to be an adult? Anyone that would employ you should think twice, really you just messed up yourself big time, insulting people, isnt that breaking the so-called nairaland commandments ?
Na who i insult?? Abi you self no dey insult?? Anyway its all for the fun of it. But try to stay in line and not just put your mouth in other peoples business, its rude and disrespectful.
ProgrammingRe: Solving Real Problems by seunthomas(op): 2:48pm On Feb 26, 2016
donjayzi:
Node.JS has this http://socket.io that takes care of the socket server thing.

And i have also created a socket server that is the equivalent of socket.io using PHP and Basic javaScript. I have used this solution to develop.

Here is a simple chat implementing NODE Socket.IO - dhtmlchat.heroku.com

I once made a group chat somewhere that allows nairalanders to login with their valid nairaland account details and chat with each other. Seun blocked the website link from ever showing on nairaland. I dont know if the script still works, took it offline sometime back.
It wont scale. Trust me. Nodejs is not something that can easily do c1000k, maybe c10k or c100k(sparingly). If you are doing too much concurrency with nodejs, you would need to buy more hardware.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:46pm On Feb 26, 2016
airsaylongcon:
I beat you once already. You alter ego will be no match. You ran your mouth asking me for a battle now you want your friend to battle me? I will give him the same question I gave you.
dat one na question? abi you wan make i expose you like your broda. See na me and larry page write google ohhh. I sabi all where your secret dey na.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:44pm On Feb 26, 2016
CodeHouse:
I thought you were actually sane, but now I understand there is a bot behind your monicker, you talk non stop like a woman
I talk am. you be class captain for night school.......
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:41pm On Feb 26, 2016
airsaylongcon:
I am a programmer. Let's battle
You own don finish be dat na. Abeg @guru01 take am easy no kill am ohh. na only am him mama born.....
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 2:40pm On Feb 26, 2016
airsaylongcon:
Oh so guru01 is your boss. Cos you failed to beat me you think he can? Someone hiding under "I am Web programmer" wants to beat me? Guru01 please let's battle na
No drag me inside ohhh. I no be anybody boss. Dem go soon beat you...

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 36 pages)