over 8 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
over 8 years
Just noticed this ends on april fools. Is togepi going to reveal that shes been fooling us all along??
deletedover 8 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
deletedover 8 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?
over 8 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.
deletedover 8 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.
over 8 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.
deletedover 8 years
I'm loving C++
over 8 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.


deletedover 8 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
deletedover 8 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.
over 8 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.
deletedover 8 years

joshua says

*goes back to writing ruby code*


Teach me senpai.
deletedover 8 years

mist says

im derailing tghis thread


no one give this attention

o
wait
over 8 years

joshua says

*goes back to writing ruby code*


*throws variables at a blank wall* WHATEVER STICKS!!
deletedover 8 years
*goes back to writing ruby code*
over 8 years
I am in awe that you can throw a semi-colon in and that [redacted] will compile. Pls teach me C++
deletedover 8 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, ._.
deletedover 8 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.
deletedover 8 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?
over 8 years
But your loop will not end the way you have it now.
deletedover 8 years
Yes i have to declare x before i can cin>> it
deletedover 8 years
im derailing tghis thread
deletedover 8 years
1. what boo said
2. you could just use a while loop

while(x < 20) {
cout << x;
x++;
}
deletedover 8 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.
over 8 years

mist says


Togepi says

Idk who you are but hi!!


wtf im me


Hiiii