Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,159,236 members, 7,839,257 topics. Date: Friday, 24 May 2024 at 03:46 PM

VictorAkujobi's Posts

Nairaland Forum / VictorAkujobi's Profile / VictorAkujobi's Posts

(1) (of 1 pages)

Programming / Re: I Haz Bugz In My Codez :( by VictorAkujobi: 12:32am On Oct 26, 2014
Hey Syntax3rror,

First, well done for learning C. Now on to your bug...

while (1==1) : This is an infinite loop. The only reason it's not working is because of the return statement. The code is run only once and it breaks out of the loop.

So if I were to fix this, I would

1. Put back the fgets statement back in the while loop. This says keep looping until the pointer I receive is a NULL one, hence no string exists anymore. (1)

2. Since you now have your break condition (1), you can remove the return(0).


If you really like to use a low level language like C, consider using https://golang.org/. It's quite low level and has performance similar to Java, is compiled and makes programming web services much easier. I'm currently using it for my startup https://stylestation.co.

Cheers

V
Programming / Re: Did You Register For Introduction To Mathematical Thinking? by VictorAkujobi: 8:49pm On Sep 18, 2012
It's been good. I'm a big fan of machine learning. I've been learning a tiny bit. But overall, it's kind of hard coupling my day job (Software Dev) with the two courses. How about yourself? DId y'all get your first lectures yet?
Programming / Re: Did You Register For Introduction To Mathematical Thinking? by VictorAkujobi: 8:48pm On Sep 17, 2012
Nah, I'm currently signed up to Machine Learning (Week 3) and Functional Programming, which reminds me, I've an assignment due this evening!!
Programming / Re: Is Something Wrong With This Code by VictorAkujobi: 8:07pm On Sep 16, 2012
Oh and escape the variables in your query or better yet, use mysqli with prepared statements or even better yet, PDO. You don't want someone stealing your data, or worse, dropping your DB tables
Programming / Re: Which Programming Language(s) Help Put Food On Your Table? by VictorAkujobi: 8:01pm On Sep 16, 2012
I use PHP at work, as well as HTML (4 and 5) Javascript, CSS (2 and 3) and SQL as well. I've been learning some iPhone development for my own personal project, so I see a bit of Objective C in my future. I will be doing some Android development in the future, so I'll doing some Java dev too. As a side note, I know python as well, but I would recommend anyone really worth their salt to learn as many programming languages as they can due to the different paradigms they favour e.g.(Functional, OOP, Mathematical, Imperative).
Programming / Re: Is Something Wrong With This Code by VictorAkujobi: 7:49pm On Sep 16, 2012
Do you have "on duplicate" in your query? If you make the fields unique, you need to add in "<initial query>on duplicate $this = $that, $thisOtherThing = $thatOtherThing";

(1) (of 1 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. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.