Technology Market › Re: Used 64GB Iphone6 For Sale #90k by sharrp: 1:35pm On Oct 11, 2017 |
Still Available? |
Health › Re: 6-Year-old Boko Haram Victim Shocked Dubai Doctors Begins To Walk (Photos) by sharrp: 4:48pm On Sep 25, 2017 |
iykemoney90: This is to show us that miracle can happen anywhere and to anybody Its the boy's faith that healed him and that is the important force in life. Gods name be praised. So the doctors did not heal him?, how Come his faith never did the surgery |
Foreign Affairs › Re: Irma Aftermath On U.S. Virgin Islands by sharrp: 7:23pm On Sep 19, 2017 |
daclemx: AMERICA...YOU BROUGHT THIS UPON YOURSELF. NOW SOMEONE WOULD SAY THERE IS NO GOD. I PITY THEM. CALL IT HURRICANE HARVEY, HURRICANE TRUMP....NA UNA SABI....REMEMBER WHAT HAPPENED TO SODOM AND GOMORRAH You Sound ignorant as hell. Tah! |
Politics › Re: IPOB Members Storm UN Office To Protest Against Buhari. Photos/video by sharrp: 7:18pm On Sep 19, 2017 |
ZombieTAMER: buhari came to kill and terrorise the 5% Seeing is believing
Buhari deserves a Hague invite That second image of a little girl being shot has been on nairaland before and on facebook some years back. Python dance did Not do that. |
Politics › Re: Army To Withdraw From Streets Of Abia State Tomorrow. Ikpeazu by sharrp: 10:46pm On Sep 14, 2017 |
omenka: They are running away from ipob warriors. 
Chukwu Okereke Alibaba has given ipob victory over the zoo army and biafra has been actualised!
All hail courageous ipob!  how come on the internet so many people choose to be stupid |
Programming › Re: The Greatest Programmer On Nairaland by sharrp: 9:40am On Sep 11, 2017 |
Since both of you can't challenge each other. Write a function that calculates the sum of a number in a range. The runtime should be 0(1). The function takes two arguement (lowerRange,upperRange) |
Programming › Re: The Greatest Programmer On Nairaland by sharrp: 9:31am On Sep 11, 2017 |
airsaylongcon: I laff out loud at your bragging o. I been coding from BASIC to QBASIC to Pascal to C/C++ to Java to PHP. Coded on the Commodore64, BBC Micro, Down to IBM. Coded when programs were saved on radio cassette tapes. But I'm not gonna get in programming jujitsu with you. There's more to computing than programming. These days I'm too lazy to start programming. I focus my efforts on coming up with innovative ways to use existing solutions that are beneficial locally. If however you enjoy programming to have bragging rights be my guest. I'm in it for the love of the profession and the numerous benefits it can bring.
Remember that programming enables us do a lot of things more efficiently, but most of those things we strive to do efficiently don't need to be done in the first place. I am a functional guy not a technical guy. Kudos to you False |
Technology Market › Re: Sold by sharrp: 6:00pm On Sep 09, 2017 |
25k!? |
Programming › Re: Official thread for C programming by sharrp: 11:34pm On Aug 16, 2017 |
nurain150: Java evolved from C But C is used in embedded system and OS which you cannot use java Both C and java are turing complete, you can use them for anything. Its all about the best tool for the job |
Programming › Re: Official thread for C programming by sharrp: 11:32pm On Aug 16, 2017 |
nurain150: C is hilarious .i mean you can give ur own datatype A name
typedef int lag;
Then lag is ur datatype representing int.
lag count=5; This is wrong on many level. You did not declare ur own datatype, u simply replaced int for lag. If your name is chinedu and I decided to call u emeka, does that mean I created a new human beign |
Programming › Re: Official thread for C programming by sharrp: 11:30pm On Aug 16, 2017 |
nurain150: C has various data type like int,char,double,float..The greatest thing in C is you can declare your data type Declaring your own data type in C is hell unlike OOp language where you use classes to do it |
Programming › Re: Official thread for C programming by sharrp: 11:29pm On Aug 16, 2017 |
nurain150: From my point of view.In nigeria we do not have many C programmers.Because : 1. Every thing in C is done manually 2. C is easier to learn than java though C has some complex data structure 3.In java it is easy for a novice programmer to wright application,rather in C it is not that easy. But C is the father of all modern OOP language like java,swift javascript,php, they all evolved from C. However C is useful in following areas: 1. Write your operating system and become bill gate
2. Program and modify a robot
3.write large graphical program
Even GTA we play was coded in C.C is very powerful This is mostly force. C does not have any complex data structures as u claim. Arrays , structs,enum,union are not complex like hashamap,set,vector.etc . 2. C is not the father of all Oop language or any one of them at all. Smalltalk is the father of OOP language. Sure most prpgramming language was written in C and then compiled with their own compiler. GTA was not programmed in C. The rockstar game engine that powers c++ was written in 90% c++. |
Properties › Re: Flood Takes Over People's Properties In Rivers State (Photos) by sharrp: 11:33am On Aug 13, 2017 |
NwaAmaikpe:

Chukwu Okike Abiama can not be mocked.
Shebi they named it Rivers State? Shebi they called it Port Harcourt.
Nature will make it Port-like by flooding it more than a river. Till they retrace their steps and accept their identity as Biafrans and rename that land; Igweocha! Most foolish post on nairaland |
Programming › Re: All Port Harcourt Based Programmers Lets Meet Here.... by sharrp: 3:22pm On Jul 15, 2017 |
Nice to meet u guys |
Programming › Re: Php Vs Python by sharrp: 3:20pm On Jul 15, 2017 |
Hibrahym: You know there is C++ and there is the Modern C++. Your statement might be true for a trivial code, but when TMPL magic starts, in conjunction with operator overloading, bit field manipulation, MACRO MAGICS, new and delete, scoping rules, most vexing parses, multiple inheritance prblms...
Do u really ever studied any sophisticated C++ code? I don't think so. Dude , opertor overloading is not specific to c++. You can make certain opertors behave in a particular way depending on arguement in python. Bit field manipulation is also language agonistic. Any language can do that. Variable scopes apply to all too. Macros in c++ is simple since c++ dont have real macros like lisp. Multiple inheritance applies to python too. It is fully OOp. So what r u saying. |
Programming › Re: Fix This C++ Code If You can by sharrp: 4:29am On Jul 08, 2017 |
Olyboy16: Hi guys, so i was just playing around with c++, trying to get back on track after a long long time away into Generic GC langs. As a polyglot programmer, its my duty to stay up to date with all my languages.
So , here's the dig. I was playing with algorithms...binary search to be exact. so, i encountered some issues along the way. which actually gave me some serious debug time! So i thought, why not share the fun....i'm throwing out this challenge to anyone who thinks he's as good a C++ programmer as he/she thinks, to fix this code snippet...don't write your implementation...we all can do that...just /fix?optimize/
#include <iostream> #include <algorithm> #include <vector>
using namespace std;
/** * Olyboy16; Implementation of a simpler binary search algo * this algo is limited to O(log n * 2) instead of O(log n) */
template<typename T> string binSearch(vector<int>* hay, const int pin){ int size = hay->size(); if(hay->at(size/2) > pin){ vector<int>* hay2; // if you can eliminate this object...you're good! copy(hay->begin(), hay->end(), hay->begin()); return binSearch<int>(hay2, pin); } //lets just search through the chop auto nd = find(hay->begin(), hay->end(), [=](int& x){ return x == pin; }); return "[val:"+nd+"]"; }
int main(){ vector<int>* arr {2,5,6,7,9,5,2,1,89,76,33,56,12,0,98,5,4,3,2,45,654,99}; sort(arr->begin(), arr->end(), [](int& i, int& j){ //current > later return i > j; }); cout << "Finding 86 using binary search! = " << binSearch<int>(arr, 86); }
Please note that i intentionally designed it to be a recursive solution...its just to pass time really.  What happens when the pin is lesser than than the lenght of the array/2 . And why did you resort to use an ordinary sort rather than implementing the binary search on the second half |
Programming › Re: Php Vs Python by sharrp: 4:17am On Jul 08, 2017 |
Raypawer: Java an interpreted language 
And you were fast to condemn another's post! Technically you can call java an interpreted language. Java does not directly compile to machine code. It.compiles to bytecode which based on the java virtual machine can either perform JIT(just intime compilation, i.e converting the byte code to cpu instruction) or interprete the byte code. Although its not like python and all the rest . But techinically sha |
Programming › Re: Php Vs Python by sharrp: 4:10am On Jul 08, 2017 |
Olyboy16: bros, please dont mislead this Op. OP, if you intend to develop websites, use php.
if you intend to do more than just serve web pages and create user portals, then go for python;( need long running processes, sockets, or APIs).
but if you intend to create a SaaS like online gaming, CRM, accounting or highly distributed computes then use C#(ASP .net).
i've got over 5 years exp with php, got my own framework. Also got 4 years exp with python nd C#...so i knw quite well what i'm saying! All programming languages are turing complete . You can do whatever with them. Javascript is a good language if he wants to Focus on web too. Nodejs and its enviroments means he uses same language for both front end and backend. |
Programming › Re: Php Vs Python by sharrp: 4:06am On Jul 08, 2017 |
Hibrahym: This line does NOT work for ASM, C++ believe me! This is also false. Learning python makes learning c++ a lot easier. Loops are loops, conditions are conditions , only synatic different and static typing. Import statements are like #include "headerfile". The oop concepts are the same. A python programmer will pick up c++ faster than a complete newbie |
Programming › Re: Php Vs Python by sharrp: 4:02am On Jul 08, 2017 |
abula112: php is the most widely used web language, its only used for web , but python is a general lang like java. For me i will go for php, because python is not widely used for web app in production, most host does not support python. But python has more application than php You sound ignorant |
Programming › Re: Best Programming Language by sharrp: 8:29am On Jun 24, 2017 |
stack1: There is no *Best*, just choose one of the popular ones, Perl, Pythn, Ruby, Node, PHP, GO. and get on with it Node is not a language |
Celebrities › Re: Kechi Okwuchi And Mel'B Pictured Together by sharrp: 9:39am On Jun 19, 2017 |
|
Technology Market › Re: Usa Used Mint Condition Iphone by sharrp: 10:28am On Jun 04, 2017 |
euwajeh: I have for sale iPhone 5s if you are interested contact me . Price |
|
Technology Market › Re: Usa Used Mint Condition Iphone by sharrp: 9:53pm On May 30, 2017 |
Any iphone5s? |
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 12:58am On May 29, 2017 |
|
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 12:58am On May 29, 2017 |
|
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 8:16pm On May 28, 2017 |
oga miky, what of the iphone 5s them |
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 4:32pm On May 26, 2017 |
please what vpn do you guys use for offerup and its likes. something free preferably |
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 10:38am On May 26, 2017 |
mikkyangel: More iPhone 5s and iPhone 5 billed to arrive next week Alert me when it comes |
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 6:21pm On May 25, 2017*. Modified: 6:41pm On May 25, 2017 |
toastedbread: no. he ships to england.
before you ask silly questions on any page, try and read from the page zero. it always have useful information.
can you read a novel without looking at the first five pages? People tend to ask silly question when testing their feets. And there is no where the front page explicitly says ,"ship to nigeria" Like 3 pages later. But cool tho |
Technology Market › Re: California(Los Angeles),pickup services..Online purchase..(Ebay/Amazon,walmart) by sharrp: 8:56am On May 25, 2017 |
Mikky do you ship to nigeria? |