Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,368 members, 7,819,319 topics. Date: Monday, 06 May 2024 at 02:23 PM

Red2C's Posts

Nairaland Forum / Red2C's Profile / Red2C's Posts

(1) (2) (of 2 pages)

Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 8:59am On Jan 15, 2020
PrinceCEE:



It doesn't make it faster
The current time complexity is O(n), by taking the square root the time complexity becomes O(n^0.5) which is faster.

1 Like

Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 8:56am On Jan 15, 2020
PrinceCEE:



What efficiency does it bring by doing it your way?


Did you run the code and it produced a wrong answer?

I never ran it anyway, I typed with my phone, but that code doesn't have a bug!
grin grin. Sorry o, since external review of code is considered an attack to the author. I'll keep my mouth shut from now. Sorry once again. lipsrsealed
Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 6:10pm On Jan 03, 2020
yusman14:
Hmm...ok
python is still the best for me currently :PHmm...ok
python is still the best for me currently
Lol, good choice
Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 5:23pm On Jan 02, 2020
Though you shouldn't learn fortran in 2020 grin
Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 5:22pm On Jan 02, 2020
yusman14:
lol...This old language..
It has no application currently
If they were taught the right concepts then the language doesn't matter. Programming is like painting, a programming language like a paint brush. Give a bad painter the best paint brush and he'll still produce a bad painting, but a good painter can work with anything.

2 Likes

Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 2:30pm On Dec 27, 2019
Also, the initial value of i cannot be 1, as any number % 1 = 0. This means no number will pass the test. Therefore, i should be initialized to 2 at the start of the loop.
Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 2:25pm On Dec 27, 2019
A faster way is to use Math.floor(Math.sqrt(x))
Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 2:24pm On Dec 27, 2019
PrinceCEE:



Lol...

Truth is, not everybody needs mathematics to be better programmers, but when you want to take programming to a whole new level, then you'd be needing mathematics and algorithms.

For prime numbers, you'll have to iterate through the numbers less than or equal to half the number, and check if they divide the number.

So, Using javascript

let isPrime = false;
let num = x; //choose the number yourself
for(let i = 1; i < Math.floor(x/2); i++) { //you can still use parseInt(x/2), it casts it to an integer
if(x % i == 0) {
isPrime = true;
break;
}
}


You can try and run this code. I didn't run it, 'cause I just typed with my phone.
You're supposed to assume the number to be prime initially, with isPrime = true.
Then inside the if statement, if a factor is found, you set isPrime to false.
Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 2:23pm On Dec 01, 2019
Maskyy:


grin don't mind me. I don't know when I added it to the list. The book is not friendly user for beginners.
Oh, ok. I fear grin

1 Like

Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 3:48pm On Nov 30, 2019
Maskyy:
Wow lots of aspirer programmers and experience ones... I "hello world" you all.

Following the trend from the start till now, have been reading some comments on *YouTube* video as a form of learning for beginners. Nope, this is not right. Don't learn from YouTube, you will hardly see the mistake, which is part of the code learning, sometimes called BUGS.

As a beginner in programming, learn by theory. I repeat it, learn by theory. Read that book until you fall and rise from that mistake, and later you'll understand the "why's" and "how's" of the code.

To all my boss here, Am a software developer, front end precisely. ******No details*****

You love web right, start from here......

1. https://developer.mozilla.org/en-US/docs/Learn/ (start from HTML, CSS , JavaScript...... At this point you can choose your part yourself)

2. **Google search w3school site( cool for everyone and there explanations are superb)

3. Open a github account and Try to understand how github work for a start. Not hard at all but leave it aside if you don't get it easily. That will be later.

4. Get yourself a codepen account. (If you don't know what to do with, leave it aside, later on you will).

5. Get yourself a LinkedIn account if you can. Start building your portfolio from the start. Don't leave it aside. Get use to the network. It's not a social network like fb, instag, its a professional platform.

6. After few training, register with codewar.... Learn by coding. You must code. Yes you must for a better understanding.

7. Freecodecamp is nice. Check it. It may work for you.

Yap... I will recommend these books...
1. Jon duckett HTML and CSS
2. Jon duckett JavaScript and jquery.
3. Eloquent JavaScript (new edition)

Pls afford a premium lesson, either online or offline. There's a greater merit in having a strong tutor.

Also join platform and community that talk about what you do. Either on fb or elsewhere. Try to get to those better than you.

You can find some free books on pdfdrive site (I wish to have such an online library too)

What else friends... Pls feel free to work with templates. Download lots of free templates and check there codes. With that you will learn more.

This should be the first, I don't why I place it here... Algorithm, data structure (some said it's a compt. Science school package. Whatever for non compt. Scie., get books online and understand the little you can at least for a start).

To end the whole talk... Once you embark on this journey, you won't stop learning ooooo. Maybe until you have something to rest on (not deaths but rich enjoyment i.e money$$$). Don't worry, there's too much money in the industry....

If you can trust your ability apply for Andela code competition or internship.

Also apply for site like codewar monthly competition.

Again, I greet all my Seniors here.

I totally agree, but I don't think Eloquent JS is a beginner's book

2 Likes

Programming / Re: What Made You Pick Interest In Programming by Red2C(m): 6:14pm On Nov 23, 2019
My elder brother wrote a batch script that could add to numbers, men!! When he showed it to me it was like I was staring at Jesus. grin. I was 11 then, five years now and I programming still fascinates me.
Career / Re: Godwin Maduka Wins 2019 'Man Of The Year' Award by Red2C(m): 9:56pm On Nov 06, 2019
bokunrawo:
Guys help
Monday
Education / Re: Ahmadu Bello University (ABU) Admission Guide 2019/2020 by Red2C(m): 2:47pm On Aug 25, 2019
Who knows when the PUTME results will be released
Education / Re: 2 Little Semi Circle,can U Find.the AB^2, test your power of reasoning(mr Shape) by Red2C(m): 6:17pm On Aug 14, 2019
Martinez39:
My work, using coordinate geometry.

1) Fix the diagram on a rectangular coordinate system such that point O is at the origin and CD lies on the x-axis. Doing this gives the following coordinates:
O(0, 0), F(4, 0), D(6, 0), E(-3, 0), C(-6, 0)

2) The equation of the circle that yields the bigger semicircle is

and the equation of the circle that yields the smaller semicircle is


3) the smaller semicircle contains the points F(4, 0) and E(-3, 0) therefore the coordinates of both points satisfies eq. (2)

Solving (3) & (4) simultaneously, we will discover that h = ½ and substitution into either (3) or (4) yields k² + (49/4) = r²

4) Observe that point (h, k), O(0, 0) and point B are vertices of a right triangle of sides a, b, and c such that


5) r² = |AB|²/4
|AB|² = 4r² = 96 unit²

|AB|² = 96 unit²
Sweeet
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 9:46pm On Jul 07, 2019
ARCHEMEDESME:

what kinda textbook did you use
Normal sec. school textbooks, and some a level for physics. Lamlad textbooks too are good because of their plenty questions.
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 8:56pm On Jul 07, 2019
Starkid3010:
Y317
Drop your whatsapp number
I need your help
07051395718. Help?
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 8:30pm On Jul 07, 2019
Starkid3010:
mad man!! shocked shocked
Abeg can you please give me your break down
Are you on whatsapp
Gimme your what number
grin grin. Gimme yours.
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 7:58pm On Jul 07, 2019
Starkid3010:
wow Abu
That's cool
Which course...
Your jamb score??
Electrical Engineering, 341
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 7:40pm On Jul 07, 2019
Starkid3010:
ui boss what about you


Am even having problem now
Cnt login
And I was able to login some days back...
I just don't understand
ABU. I haven't logged in since JAMB result wahala.
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 7:34pm On Jul 07, 2019
Starkid3010:
grin grin
You be boss though
More questions coming
Abeg o. Where you apply?
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 7:24pm On Jul 07, 2019
Starkid3010:
I think that A should be B
Oh sh*t! You're right, my bad. Ammonium chloride is formed from a string acid and weak base.
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 7:05pm On Jul 07, 2019
What was your JAMB score?
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 7:04pm On Jul 07, 2019
Starkid3010:
bastard grin grin 4/4
Check thesw ones also
Which of the following is not a chemical
change?
A. burning of magnesium
B. rusting of iron
C. action of water on potassium
D. dissolving powdered sulfur in carbon
disulfide
Which of the following salt has a pH less
than 7?
A. NaHCO3
B. NH4Cl
C. Na2SO4
D. NaCl
D
A
Education / Re: Nairaland Thread For Admission processes 2019/2020 (All Universities) by Red2C(m): 5:58pm On Jul 07, 2019
Starkid3010:
A is not correct


Pollution of underground water by metal
ions is very likely in a soil that has high
A. acidity
B. alkalinity
C. chloride content
D. nitrate content


mixture of CaCl2 and CaCO3 in water can
be separated by
A. evaporation
B. sublimation
C. distillation
D. decantatio


mixture of iron and sulphur can be
separated. by dissolving the mixture in
A. Steam
B. Dilute hydrochloric acid
C. Dilute sodium hydroxide
D. Benze


5. The pH range of a neutralization product of
CH3COOH and KOH is
A. 1 - 3
B. 7 - 8
C. 6 - 7
D. 12 – 14
A
D
B
D
Education / Re: My University Choice: Advice Needed. by Red2C(m): 2:23pm On Sep 13, 2018
amaniro:
Hello BTW am in Abuja and I heard their school fees is crazy
2.4m for engineering courses
Education / My University Choice: Advice Needed. by Red2C(m): 7:26pm On Sep 11, 2018
Hi. I'm a science student currently in SS3 with dreams of going to NUN(Nile University Nigeria). I wouldn't have been able to afford it if not for their scholarship scheme. My question is this: is NUN a really good school? The truth is I had never heard of it until a friend told me of the scholarships they award.

Please help a brother make the right choice. Thanks.

cc lalasticlala
Programming / Re: New To Python, Gurus Please Help Solve These Challenges. Thanks. by Red2C(m): 4:34pm On Aug 12, 2018
Try using regex
Events / Re: Pick Your Date Of Birth And Connect With Your Birth Mate by Red2C(m): 10:07am On Aug 09, 2018
ojialo:
Feb 16
Finally! Me too

1 Like

Education / Re: Thank God For My Jamb Result by Red2C(m): 4:38pm On Mar 21, 2018
Wrote from SS2 scored 275 without lessons.
Literature / Re: Beauty And The Mechanic by Red2C(m): 6:16pm On Jan 14, 2018
Update plzz she writes.

(1) (2) (of 2 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 41
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.