rooshvforum.network is a fully functional forum: you can search, register, post new threads etc...
Old accounts are inaccessible: register a new one, or recover it when possible. x


Computer programming lounge
#55

Computer programming lounge

Quote: (01-23-2016 08:34 AM)AntiTrace Wrote:  

Also: for those thinking programming , just get out there and do it. Think of your own projects and go from there.

Most college graduates can't program there way out of a paper bag. They know how to apply the basics of many programming languages to simple sricpts or quick jobs, but if they were told go solo on a new project they would fail miserably. The simple fact that the fizz buzz tests exists shows you this. And yes, I know many college seniors that would struggle with fizzbuzz, when it should take a marginally competent programmer less than 5 minutes to complete.

Focus on a language or stack, put some effort into your own project, and you will be on par or better than your average college graduate in about a year.

haha I had to try it, I think it took me around 5 minutes to complete it, here it is in JS:
I haven't learned programming in college, just on my own
for (i = 1; i < 101; i++) {
if (i % 3 === 0) {
console.log("Fizz")
}
if (i % 5 === 0) {
console.log("Buzz")
}
if (i % 3 === 0 && i % 5 === 0) {
console.log("FizzBuzz")
}
console.log(i)
}

Edit: now the prefect version took me like 15 minutes:

for (i = 1; i < 101; i++) {
if (i % 3 === 0) {
if ( i % 5 === 0) {
console.log("FizzBuzz " + i)
}
else console.log("Fizz " + i)
}
else if (i % 5 === 0) {
console.log("Buzz " + i)
}
else console.log(i)
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)