Off Topic > Off Topic
Programming Megathread
<< < (209/241) > >>
SUSHI:

--- Quote from: $trinick on December 22, 2016, 06:41:37 PM ---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.

--- End quote ---

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 >_>
Tudoreleu:
op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

this {
..
}

or that
{
..
}
Becquerel:

--- Quote from: Tudoreleu on December 29, 2016, 06:40:45 AM ---op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

this {
..
}

or that
{
..
}

--- End quote ---
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
Whackin:

--- Quote from: Tudoreleu on December 29, 2016, 06:40:45 AM ---op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

this {
..
}

or that
{
..
}

--- End quote ---
this is like asking ass or tits but answering either way makes you a friend

--- Quote from: Becquerel on December 29, 2016, 06:41:38 AM ---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

--- End quote ---
next to the reply button there should be an add poll button
Nickelob Ultra:

--- Quote from: Metario on December 18, 2016, 11:46:31 PM ---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

--- End quote ---
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: ---int main() {
    do_stuff();
    self_destruct();
    if (1 < 0) {
        cry();
    } else {
        be_happy();
    }
}
--- End code ---
doesn't look better and saves lines as opposed to this disgusting waste of lines

--- Code: ---int main()
{
    do_stuff();
    self_destruct();
    if (1 < 0)
    {
        cry();
    }
    else
    {
        be_happy();
    }
}
--- End code ---
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.



--- Quote from: Tudoreleu on December 29, 2016, 06:40:45 AM ---op should use the poll feature more

so we can finally determine which one blf likes best

spaces or tabs

--- End quote ---
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.



--- Quote from: cooolguy32 on December 20, 2016, 03:42:04 PM ---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.

--- End quote ---
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.
Navigation
Message Index
Next page
Previous page

Go to full version