₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,347 members, 8,430,547 topics. Date: Saturday, 20 June 2026 at 04:54 PM

Toggle theme

The Greatest Programmer On Nairaland - Programming (24) - Nairaland

Nairaland ForumScience/TechnologyProgrammingThe Greatest Programmer On Nairaland (77056 Views)

1 2 3 ... 21 22 23 24 25 26 27 ... 39 Reply (Go Down)

Re: The Greatest Programmer On Nairaland by Nobody: 11:08pm On Feb 26, 2016
seunthomas:
Well, bros @dhtml the target is to test a web application to see if it can handle load. So create 100k users to visit a url in 1 second. You may not need to write the script cos it will take a good programmer a month to do from scratch. I just need to know the pitfalls of such a solution. What problems will likely happen, how your script would be designed etc. An algorithm.
FOA, I didn't expect dis thread t get to 22 pages mehn...u guys are tense.

Second, boss u will be needing some sort of parallel distribution to achieve that sort of feat...or you get a computer with atleast 20 cores (3rd generation cpu atleast).

Even though ur question was valid, it was incomplete. U shld av specified the means of distribution if its shared or independent and if shared, we wuld need knw the number of cpu available and so on.
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:14pm On Feb 26, 2016
mobolaji88:
FOA, I didn't expect dis thread t get to 22 pages mehn...u guys are tense.

Second, boss u will be needing some sort of parallel distribution to achieve that sort of feat...or you get a computer with atleast 20 cores (3rd generation cpu atleast).

Even though ur question was valid, it was incomplete. U shld av specified the means of distribution if its shared or independent and if shared, we wuld need knw the number of cpu available and so on.
It was complete, because a novice would not know that you cant achieve 100k requests on a single box. The guy no get experience na. Na experience be programming. You cant do it on a shared box or single box (its impossible na).
Re: The Greatest Programmer On Nairaland by Nobody: 11:16pm On Feb 26, 2016
seunthomas:
If i did not ask you then hold your peace na. You just like to jabo. Anyway the solution is simple but not everyone can do it. First of all you need to use a language that supports threads(e.g java,python,etc). Next you need to setup a cluster of machines because 1 machine can not generate that many requests in 1 sec. You will tune each machine to allow maximum file descriptors, When creating multiple threads you will always reach a critical point where the operating system wont allow any more threads, so you need to set the maximum allowed open files to a very high number. You start all your threads on all the machines and they will gradually build up till they get to 100k threads. So no jmeter cant solve this.
U got a point sir...very true. A 120 lines of optimized code can on very good setup; enslave over 7 servers and make them do the same thing which one may use to achieve the kinda feat u ar talking about. Ddos shells.

I picked interest in this question only cos I love distributed computing and multi-threaded coding. I'm not picking sides pls
Re: The Greatest Programmer On Nairaland by Nobody: 11:18pm On Feb 26, 2016
seunthomas:
It was complete, because a novice would not know that you cant achieve 100k requests on a single box. The guy no get experience na. Na experience be programming. You cant do it on a shared box or single box (its impossible na).
Hmmm...noted, I'll do some research to confirm this.

*modified: its truely currently impossible due to the limit on hardware capability in the amout of data they can handle per second.
Re: The Greatest Programmer On Nairaland by asalimpo(m): 11:19pm On Feb 26, 2016
22 pages of noise from a windbag who kept going off in tangents.
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:19pm On Feb 26, 2016
asalimpo:
22 pages of noise from a windbag who kept going off in tangents.
You want me to remind you of your origin?? grin
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:20pm On Feb 26, 2016
airsaylongcon:
A data structure is "built" using nodes. Each node has exactly two pointers that point to other nodes. None of the pointers is null. A C program is written to count how many nodes are accessible from any of the nodes in th data structure. The code uses an "indicator" field (initialized to zero for all nodes). Correct the following code so that it works properly as it will not work in its current state

struct t (int i,m; struct t *b, *d)
int count(struct t *a)
{
If (a->m) return 0;
return count(a->b) + count(a->d)+1;
}

Ps: m is the "indicator" field
Seunthomas come chop
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:21pm On Feb 26, 2016
After 23 pages, people are getting information. @dhtml18 were you dey na....
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:23pm On Feb 26, 2016
airsaylongcon:
Seunthomas come chop
I no fit answer this one tonight ohhh as i don tire na. But i will ask some questions first before going into a solution.
Re: The Greatest Programmer On Nairaland by asalimpo(m): 11:23pm On Feb 26, 2016
mobolaji88:
Hmmm...noted, I'll do some research to confirm this.
If you believe this punks excuse ,you'll believe anything.
His question was poorly phrased,misleading and confusing.
Trying to cover up with this cheap excuse is donkey-pride at work.
Read thru the early pages and you'll see this tactics used time and time again by him.
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:25pm On Feb 26, 2016
asalimpo:
If you believe this punks excuse ,you'll believe anything.
His question was poorly phrased,misleading and confusing.
Trying to cover up with this cheap excuse is donkey-pride at work.
Read thru the early pages and you'll see this tactics used time and time again by him.
@asalimpo Why you make yourself an agent of confusion, if i start again you go say i dey curse your origin, make you behave ya self na.
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:25pm On Feb 26, 2016
seunthomas:
I no fit answer this one tonight ohhh as i don tire na. But i will ask some questions first before going into a solution.
You will ask questions?! shocked

I did not ask any one question when you fired your question. Abi u wan Google am? Be my guest. What time tomorrow should I expect your answer tomorrow?
Re: The Greatest Programmer On Nairaland by FincoApps(m): 11:29pm On Feb 26, 2016
airsaylongcon:
Why you dey run mouth? How many hours e take you to ask me your own?. I will modify this post with the question so look out

*modified*
A data structure is "built" using nodes. Each node has exactly two pointers that point to other nodes. None of the pointers is null. A C program is written to count how many nodes are accessible from any of the nodes in th data structure. The code use an "indicator" field (initialized to zero for all nodes). Correct the following code so that it works properly as it will not work in its current state

struct t (int i,m; struct t*b, *d)
int count(struct t*a)
{
If (a->m) return 0;
return count(a->b) + count(a->d)+1;
}
Are you getting these questions from past certification exams ?
Re: The Greatest Programmer On Nairaland by Nobody: 11:29pm On Feb 26, 2016
asalimpo:
If you believe this punks excuse ,you'll believe anything.
His question was poorly phrased,misleading and confusing.
Trying to cover up with this cheap excuse is donkey-pride at work.
Read thru the early pages and you'll see this tactics used time and time again by him.
Boss, I just dey watch o. Trying not to pick any side. Though still getting some useful extracts. Got from dhtml18 , airsaylongcon . U guys ar all good bt u wnt jst giv room to constructive arguments.
Re: The Greatest Programmer On Nairaland by asalimpo(m): 11:29pm On Feb 26, 2016
seunthomas:
You want me to remind you of your origin?? grin
I know your type: sold piraded cd's. Graduated to second hand 'puters.
Bought a used mini laptop.
Gate crashed into web dev (php,mysql).
Learnt python ...
Added all those years he was around anything related to computers , and claimed 18 years programming experience.
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:31pm On Feb 26, 2016
FincoApps:
Are you getting this questions from past certification exams ?
From a question bank used by a multinational software company in recruiting trainee developers
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:31pm On Feb 26, 2016
airsaylongcon:
You will ask questions?! shocked

I did not ask any one question when you fired your question. Abi u wan Google am? Be my guest. What time tomorrow should I expect your answer tomorrow?
First of all, do you know the answer to the question you asked me(Seriously and no fooling around).

The challenge was supposed to be generic with a choice to pick a any tool of choice.
I know c but i prefer to use python or java for this kind of task.

Lastly was this question sourced online because the idea was to test individual skills and not to throw me interview questions from online sources( i may still attempt it but require honesty on that).
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:32pm On Feb 26, 2016
airsaylongcon:
From a question bank used by a multinational software company in recruiting trainee developers
See your life can you solve it? Why ask me what you cant solve and how do i know your answer is correct cos it would seem unfair.
Re: The Greatest Programmer On Nairaland by FincoApps(m): 11:32pm On Feb 26, 2016
airsaylongcon:
From a question bank used by a multinational software company in recruiting trainee developers
They are really strong questions..... reminds me of Ms certification exams
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:33pm On Feb 26, 2016
asalimpo:
I know your type: sold piraded cd's. Graduated to second hand 'puters.
Bought a used mini laptop.
Gate crashed into web dev (php,mysql).
Learnt python ...
Added all those years he was around anything related to computers , and claimed 18 years programming experience.
Seriously how do you know your life's story so well. lol
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:34pm On Feb 26, 2016
I will spend sometime to attempt the question anyway now. But how do i know if the answer is correct??
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:34pm On Feb 26, 2016
seunthomas:
First of all, do you know the answer to the question you asked me(Seriously and no fooling around).

The challenge was supposed to be generic with a choice to pick a any tool of choice.
I know c but i prefer to use python or java for this kind of task.

Lastly was this question sourced online because the idea was to test individual skills and not to throw me interview questions from online sources( i may still attempt it but require honesty on that).
Do I know the answer? Yes
Why did I streamline to C? Because you picked my C code apart with security issues. I want you to identify the problem with this one

Was it sourced online? You be the judge of that. Google is your friend
Re: The Greatest Programmer On Nairaland by asalimpo(m): 11:34pm On Feb 26, 2016
seunthomas:
@asalimpo Why you make yourself an agent of confusion, if i start again you go say i dey curse your origin, make you behave ya self na.
Did i mention your father here?
I restricted my comments to you.
Keep urs to me and others. Nobody's parent is here observing ur clowning.
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:36pm On Feb 26, 2016
asalimpo:
Did i mention your father here?
I restricted my comments to you.
Keep urs to me and others. Nobody's parent is here observing ur clowning.
Then behave yourself na. Its not compulsory you have to talk. Just observe. ok....
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:36pm On Feb 26, 2016
seunthomas:
See your life can you solve it? Why ask me what you cant solve and how do i know your answer is correct cos it would seem unfair.
We will work through it together. The clue to the solution is right before you
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:38pm On Feb 26, 2016
FincoApps:
They are really strong questions..... reminds me of Ms certification exams
There are some more brutal ones on programming language grammars. Static and dynamic variable scoping. Flip flops and several other really bloody ones
Re: The Greatest Programmer On Nairaland by asalimpo(m): 11:39pm On Feb 26, 2016
seunthomas:
First of all, do you know the answer to the question you asked me(Seriously and no fooling around).

The challenge was supposed to be generic with a choice to pick a any tool of choice.
I know c but i prefer to use python or java for this kind of task.

Lastly was this question sourced online because the idea was to test individual skills and not to throw me interview questions from online sources( i may still attempt it but require honesty on that).
ok. Pick your tool and go to work.
We are waiting.
Here's a chance to prove yourself.
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:40pm On Feb 26, 2016
airsaylongcon:
Do I know the answer? Yes
Why did I streamline to C? Because you picked my C code apart with security issues. I want you to identify the problem with this one

Was it sourced online? You be the judge of that. Google is your friend
First of all the question does not look like its properly presented. I can make assumptions sha...
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:44pm On Feb 26, 2016
asalimpo:
ok. Pick your tool and go to work.
We are waiting.
Here's a chance to prove yourself.
I will do it in c but

Correct the following code so that it works properly as it will not work in its current state? Means its broken
A C program is written to count how many nodes are accessible from any of the nodes in th data structure

I assume you want this to be corrected
int count(struct t*a)
{
If (a->m) return 0;
return count(a->b) + count(a->d)+1;
}

and not the struct itself.
Re: The Greatest Programmer On Nairaland by FincoApps(m): 11:44pm On Feb 26, 2016
seunthomas:
First of all, do you know the answer to the question you asked me(Seriously and no fooling around).

The challenge was supposed to be generic with a choice to pick a any tool of choice.
I know c but i prefer to use python or java for this kind of task.

Lastly was this question sourced online because the idea was to test individual skills and not to throw me interview questions from online sources( i may still attempt it but require honesty on that).
I guess now you know what we meant when we said you must have a language or 2 that you are better at. Apparently, you don't know C as well as you know Java or Python.

I know a few languages too but I find it easier to solve problems in Java and Javascript compared to others. I hope you understand now...it's all about PREFERENCE
Re: The Greatest Programmer On Nairaland by airsaylongcon: 11:44pm On Feb 26, 2016
seunthomas:
First of all the question does not look like its properly presented. I can make assumptions sha...
What issues have you got with it? Unlike you, I am willing to explain. You insulted me that we aren't on the same level of understanding when I asked u to further explain your question. But I am willing to explain mine
Re: The Greatest Programmer On Nairaland by seunthomas(op): 11:46pm On Feb 26, 2016
FincoApps:
I guess now you know what we meant when we said you must have a language or 2 that you are better at. Apparently, you don't know C as well as you know Java or Python.

I know a few languages too but I find it easier to solve problems in Java and Javascript compared to others. I hope you understand now...it's all about PREFERENCE
I disagree with you. Its just that some languages are harder to do things in. This could be done in python in minutes-1 hour but may take sometime in c for me. It does not mean i dont know or mastered c.
1 2 3 ... 21 22 23 24 25 26 27 ... 39 Reply

The Most Popular Programmer On Nairaland 2016 Edition (verification Round)Seunthomas - The Greatest Programmer On NairalandThe most popular programmer on Nairaland 2016 Edition234

10 Reasons Why .NET Is Better Than JavaHow To Hack Your Girlfriend's Whatsapp And Fb AccountMeet Tanmay Bakshi, Boy Who Works For Google And Earns Over N450m Annually