Author Topic: Programming Megathread  (Read 143059 times)

I am not good at learning programming language online because I get bored really easily , I am only good when a human being actually telling how to do it like a teacher at school, that's why I've asking my dad to sign me up for programming classes instead of sports because I do not like sports, but he hasn't really gotten to it.
« Last Edit: December 20, 2016, 03:46:58 PM by cooolguy32 »

I do not sports

it's okay

i don't sports either



damn, i wanted a programming class but my school is so small i have no programming classes. total luck

I am not good at learning programming language online because I get bored really easily , I am only good when a human being actually telling how to do it like a teacher at school, that's why I've asking my dad to sign me up for programming classes instead of sports because I do not like sports, but he hasn't really gotten to it.

That's sooo opposite of me. If a teacher tells me to write some stupid program I'm not going to remember it, I will remember it when I have to seek out how to do something by knowing what I want to write and needing to figure out how to get there.

That's sooo opposite of me. If a teacher tells me to write some stupid program I'm not going to remember it, I will remember it when I have to seek out how to do something by knowing what I want to write and needing to figure out how to get there.
holy stuff same

It's a mix for me
Sometimes it's nice to have some direction from a person, but sometimes it's just like "wtf are you saying" and I have to look it up and work it out myself.

Anyone here ever worked with Google's APIs?
I'm using them for a project at work and the endpoints are just all over the place.
All I've got down is authentication (including revocation and renewal), and retrieving the user's email address, and I'm hitting endpoints across three different domains (google.com, googleapis.com, and accounts.google.com)
« Last Edit: December 22, 2016, 07:28:38 PM by Headcrab Zombie »

That's sooo opposite of me. If a teacher tells me to write some stupid program I'm not going to remember it, I will remember it when I have to seek out how to do something by knowing what I want to write and needing to figure out how to get there.

OMG exactly me. This applies to anything I've tried (or been forced) to learn. I struggled lots in school and it never helped that the way my teachers explained things was suuuuuuper duper monotone. I would always leave school early to go home and learn about stuff that interested me. Hell, it wasn't until I started programming that I was able to do maths beyond arithmetic >_<

Anyway, I've been working on a tool to pack/unpack files in a custom archive file format. It's always amusing to see algorithms like this used to "encrypt" things. I was hoping for something a little more challenging :P They even put an error string near it that gave away it's purpose ^^



I suppose it was implemented to meet legal requirements for any royalty free assets they might be using. This kind of "encryption" is commonplace for whatever reason. It is obviously very weak and in many cases can be broken by simply looking for patterns in a hex editor. I've read that Microsoft have at one point used it in their .doc files as a serious means of encryption >_>
« Last Edit: December 29, 2016, 05:14:19 AM by SUSHI »

op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

this {
..
}

or that
{
..
}

op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

this {
..
}

or that
{
..
}
I would have to make a new topic since apparently here on the fourms I cant add a poll to a topic that was already made

op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

this {
..
}

or that
{
..
}
this is like asking ass or tits but answering either way makes you a friend
I would have to make a new topic since apparently here on the fourms I cant add a poll to a topic that was already made
next to the reply button there should be an add poll button

b-u-m-p
anybody who places their semicolons on the next line should BE GASSED AND KILLED, EFFECTIVE IMMEDIATELY
SAME GOES FOR ANYBODY WHO PLACES THEIR BRACES ON THE
SAME.
loving.
LINE.
REEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEEEE
I can get the semicolons thing but what the forget is wrong with braces on the same line?  You can't tell me that this
Code: [Select]
int main() {
    do_stuff();
    self_destruct();
    if (1 < 0) {
        cry();
    } else {
        be_happy();
    }
}
doesn't look better and saves lines as opposed to this disgusting waste of lines
Code: [Select]
int main()
{
    do_stuff();
    self_destruct();
    if (1 < 0)
    {
        cry();
    }
    else
    {
        be_happy();
    }
}
Absolutely disgusting.  I can understand if a company wants their code to look like that as a standard and people get used to it over time but I'm overly suspicious of people who do it off the bat.



op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs
I consider tabs a lot easier just because it gets rid of the potential for spaces to get in the way of indentation.  Even when using shortcuts to increase/decrease indentation sometimes extra spaces get in the way and forget it all up.  At least that's happened more often than not in my experience as opposed to using tabs.  Even though they all turn into spaces it's just not worth it to deal with space characters as opposed to tabs or vice versa, I think the spaces/tabs debate is blown up to be much more than it is.



I am not good at learning programming language online because I get bored really easily , I am only good when a human being actually telling how to do it like a teacher at school, that's why I've asking my dad to sign me up for programming classes instead of sports because I do not like sports, but he hasn't really gotten to it.
I was more or less the same way, kind of still am.  I think to get into it and get your feet wet in programming it's very helpful to learn it in a classroom environment, I feel that to teach yourself things like programming (beyond just punching out lines of Python/Ruby/whatever elementary language and not learning the fundamentals under the hood) and any advanced computer science topic on your own is incredibly difficult.

I'm ordering some books on C++ and Unreal 4, so I think once you get into programming and at least have a core understanding of it, it makes for a much easier time to teach yourself new things.
« Last Edit: December 29, 2016, 02:44:45 PM by Nickelob Ultra »

this {
..
}

or that
{
..
}

i use both

do people make a big deal about this? it's basically the same thing just different format

do people make a big deal about this? it's basically the same thing just different format

Yes. It's pretty ridiculous, huh?

I can get the semicolons thing but what the forget is wrong with braces on the same line?  You can't tell me that this
Code: [Select]
int main() {
    do_stuff();
    self_destruct();
    if (1 < 0) {
        cry();
    } else {
        be_happy();
    }
}
doesn't look better and saves lines as opposed to this disgusting waste of lines

Code: [Select]
main()
{
    (1 < 0) ? cry() : be_happy();
}
 
:panda:

Code: [Select]
main()
{
    (1 < 0) ? cry() : be_happy();
}
 
wooaaahh whats that

wooaaahh whats that
The ternary operator.

Code: [Select]
condition ? true expression : false expression;
If you only need to do one thing in either case, it's much cleaner than having multiple lines for an if/else.

And in the debate on braces; braces deserve their own lines. SO much easier to read and manage code when the braces denote code blocks.

When I first started programming i did braces on their own line simply because that's what the example code used. Now I continue doing it because it's a habit and I haven't cared enough to change.

These days I just use the automatic formatting that visual studio applies, it would be a pain to try to fight it. I'm sure it can be disabled, but I don't really care enough to bother.