almost 10 years

I'm going to post here when I can't figure out certain aspects of Java. I don't know how many of you know the language well, but help will be appreciated as I go through this bootcamp.

Also an excuse for me to post a countdown until Doomsday.

If you code, what language do you prefer?
19
Python
13
C++
10
Java
5
Other
4
Ruby
4
Combo (the right answer)
3
C# (lol)
2
Javascript
almost 10 years
Just noticed this ends on april fools. Is togepi going to reveal that shes been fooling us all along??
deletedalmost 10 years
Yeah I wouldn't recommend trying to learn both fully at the same time, but an occasional comment here and there will probably give you a good enough idea of c++ to know what you're doing
deletedalmost 10 years
So what's the difference between the languages?
I know that C++ apparently allows you to do anything, so are other languages limited somehow?
almost 10 years
I'm hesitant to say that I'm good at Java, but I'm not bad. We have a lot of other things to learn, so throwing one more language on top of what I've got will make me jump out a window.
deletedalmost 10 years
In my experience you learn the exact same stuff conceptually, and the syntax isn't too far off. If you get good at one, you'll pick up the other reaaaally easily.
almost 10 years

Natan says


Togepi says


Natan says


mist says

im derailing tghis thread


no one give this attention

o
wait


Idk who you are Natan but you are feisty.


im just bored and found my way here

also c++ rocks and its very similar to java you could very easily do it


Yeah it seems pretty similar. Might be something I will throw some time into after I'm done with all of this.
deletedalmost 10 years
I'm loving C++
almost 10 years

joshua says


Togepi says


joshua says

*goes back to writing ruby code*


*throws variables at a blank wall* WHATEVER STICKS!!


That's my entire coding process, not like I write tests.


deletedalmost 10 years

Togepi says


Natan says


mist says

im derailing tghis thread


no one give this attention

o
wait


Idk who you are Natan but you are feisty.


im just bored and found my way here

also c++ rocks and its very similar to java you could very easily do it
deletedalmost 10 years

Togepi says


joshua says

*goes back to writing ruby code*


*throws variables at a blank wall* WHATEVER STICKS!!


That's my entire coding process, not like I write tests.
almost 10 years

Natan says


mist says

im derailing tghis thread


no one give this attention

o
wait


Idk who you are Natan but you are feisty.
deletedalmost 10 years

joshua says

*goes back to writing ruby code*


Teach me senpai.
deletedalmost 10 years

mist says

im derailing tghis thread


no one give this attention

o
wait
almost 10 years

joshua says

*goes back to writing ruby code*


*throws variables at a blank wall* WHATEVER STICKS!!
deletedalmost 10 years
*goes back to writing ruby code*
almost 10 years
I am in awe that you can throw a semi-colon in and that [redacted] will compile. Pls teach me C++
deletedalmost 10 years

joshua says

#include
using namespace std;

int main()
{
int x;
cin >> x;

for (; x > 20; x--)
{
cout << x;
}

return 0;
}

Something like this will work with values greater than 20, and will reduce them. What is it supposed to do I'm too lazy to read. Is this a homework problem of some sort?


THANK YOU !
I was forgetting the semicolon before doing the rest of for loop, ._.
deletedalmost 10 years

Natan says

1. what boo said
2. you could just use a while loop

while(x < 20) {
cout << x;
x++;
}


I know I can use while, but I want to use for.
deletedalmost 10 years
#include
using namespace std;

int main()
{
int x;
cin >> x;

for (; x > 20; x--)
{
cout << x;
}

return 0;
}

Something like this will work with values greater than 20, and will reduce them. What is it supposed to do I'm too lazy to read. Is this a homework problem of some sort?
almost 10 years
But your loop will not end the way you have it now.
deletedalmost 10 years
Yes i have to declare x before i can cin>> it
deletedalmost 10 years
im derailing tghis thread
deletedalmost 10 years
1. what boo said
2. you could just use a while loop

while(x < 20) {
cout << x;
x++;
}
deletedalmost 10 years
You're declaring x twice? why?

Your loop will never terminate, you're saying if x > 20 then continue, and you keep incrementing x.
almost 10 years

mist says


Togepi says

Idk who you are but hi!!


wtf im me


Hiiii