So you want to learn to program?

flame1234

Well-Known Member
Member
Joined
May 17, 2009
Messages
734
Trophies
0
XP
957
Country
United States
That is probably off topic and we have other threads on hacking.
That is fine, but there are no stickied threads about this topic. Could you point me in the right direction? In the first 20 topics, there's one topic on modding (Freddy's) only.

I never heard about radare2 before. Thanks for the tip!
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
There is not a lot in this section, and indeed not a lot for PC hacking in general. Still
http://gbatemp.net/threads/gbatemp-rom-hacking-documentation-project-new-2014-edition-out.73394/
https://gbatemp.net/threads/some-hacking-concepts-and-links.287721/

Neither of those go into some of the more in depth PC stuff, like the videos linked in a second, but if you can follow those previous things linked then it should leave you most of the way there. Obviously I would wind in some X86 assembly knowledge ( http://www.plantation-productions.com/Webster/ and http://stuff.pypt.lt/ggt80x86a/asm1.htm being my chosen two things for PC based assembly) to this but if you can fiddle with one type of assembly language you can usually grasp the main parts of another in fairly short order.


 
  • Like
Reactions: Margen67

cracker

Nyah!
Member
Joined
Aug 24, 2005
Messages
3,619
Trophies
1
XP
2,213
Country
United States
The best place to learn is over at romhacking.net. Just be prepared for a steep learning curve since many games will use compression and non-standard formats of some sort to save space. It is really necessary that you learn to use a debugger and assembly language for the CPU of the system the game is on. Good luck!
 

pwsincd

Garage Flower
Developer
Joined
Dec 4, 2011
Messages
3,686
Trophies
2
Location
Manchester UK
XP
4,465
For web noobies , a place i guarantee every web designer / coder has been too at some point in their learning curve... and is very useful. Has simple tutorials for all web based coding... there are more complex sites for more advanced programmers , especially with javascript with the masses and masses or libraries , its much more fun to learn yourself but there are libraries ready coded for most tasks you can think of.. but i digress.. my link is of course http://www.w3schools.com/
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
Not now, i've got more important things to be doing.
Properly learning to code is something i'll pursue later.

Like you do not need to be accurately able to explain the concept of past participles to be able to speak a language enough to do you well you need not "properly" learn computers to have some kind of useful coding skill. Looking to the future I imagine not getting people able to fumble with a bit of code is going to be considered one of the great oversights of education from 1990 to today.

If you mean you are not going to learn enough to get by now in the hopes of not having to unlearn things later when you go full bore into it then is a certain logic there. I am not so sure it is as applicable in computing as it is in other things, at least as long as you pick a good source to begin with.
 

cracker

Nyah!
Member
Joined
Aug 24, 2005
Messages
3,619
Trophies
1
XP
2,213
Country
United States
You kind of just have to take the plunge. If you have interest in it enough then you will learn. If not, then it isn't for you. Editing other people's source (especially with well commented code) is the easiest way to start for most along with looking at a book/site to help decipher functions, parameters. You have to start somewhere or you never will. Good luck!
 

Nyap

HTML Noob
Banned
Joined
Jan 13, 2016
Messages
971
Trophies
0
Age
55
Location
That Chaos Site
XP
483
Country
my C++ tutorial says you need to #include the cstdint header to use fixed-width integers, but aren't fixed-width integers part of the core language? I can use them without the cstdint header on my setup (g++-4.9 w/ -std=c++14 flag)
 

cracker

Nyah!
Member
Joined
Aug 24, 2005
Messages
3,619
Trophies
1
XP
2,213
Country
United States
It depends on the platform. An int could be 16-, 32-, 64-bit, etc. So it is a safeguard against problems (especially when doing ports to other platforms).
 

Nyap

HTML Noob
Banned
Joined
Jan 13, 2016
Messages
971
Trophies
0
Age
55
Location
That Chaos Site
XP
483
Country
just finished the quiz for chapter 4 @ www.learncpp.com, pretty proud of myself
Code:
#include <iostream>
#include <string>

enum class Types
{
    OGRE,
    DRAGON,
    ORC,
    GIANT_SPIDER,
    SLIME
};

structMonster
{
    Types type;
    std::string name;
    int16_t health;
};

void printMonster(Monster monster)
{
    std::cout << "This ogre is named " << monster.name
              << " and has " << monster.health << " health\n";
}

int main()
{
    Monster ogre{Types::OGRE,"Shrkek",200};
    Monsterslime{Types::SLIME,"Bloop",150};
    printMonster(ogre);
    printMonster(slime);
    return 0;
 
Last edited by Nyap,

Vishnoo

Failure is success if we learn from it.
Member
Joined
Jun 1, 2016
Messages
261
Trophies
0
XP
146
Country
India
I think i should learn typewriting before programming.I hope it boosts my typing speed.
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
I think i should learn typewriting before programming.I hope it boosts my typing speed.
I don't think typing speed and programming have all that much to do with each other. Equally if you are programming faster than you can type you are probably valuable enough to have a typist handle it for you, or take a week to learn how to do it.

Being able to type quickly and relatively accurately is a useful skill. Equally for the time being I don't imagine much useful programming will happen in the visual space (scratch is nice for teaching kids but anything practical is some time off) so it is necessary for programming. It is not terribly related beyond that though.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Did you share joysticks also
  • BigOnYa @ BigOnYa:
    Nuh we had the 4 controller add on thingy for n64. Duh I just got your joke, lol
  • K3Nv2 @ K3Nv2:
    So you touched ends
  • BigOnYa @ BigOnYa:
    Yea, but being in the boy scouts, they forced us to
  • K3Nv2 @ K3Nv2:
    Chopped down some wood for the scout master
  • BigOnYa @ BigOnYa:
    Big Gay Al was our Scout leader.
  • BigOnYa @ BigOnYa:
    I was actually in the scouts for 1 week, til they assigned me homework, n I was like f this, and quit, I was like 10 yrs old. And no I didn't join the girl Scouts.
  • K3Nv2 @ K3Nv2:
    Was the homework about getting to know the scout leaders
  • BigOnYa @ BigOnYa:
    I had to memorize how to tell 15 different trees species, I think, been awhile. But yea it was about knowing Wood.
  • K3Nv2 @ K3Nv2:
    Could've just wrote down firewood
  • BigOnYa @ BigOnYa:
    It was lame. Like the goal was to earn badges/patches to wear on your uniform. Stupid.
  • K3Nv2 @ K3Nv2:
    Scooby doo was the only thing that made the scouts seem cool back then
  • Psionic Roshambo @ Psionic Roshambo:
    Hmmm for me it was Golden Eye or Tribes on PC can't remember which was first.
  • Psionic Roshambo @ Psionic Roshambo:
    Next on MXC Choir Boys VS Boy Scouts!
    +1
  • BigOnYa @ BigOnYa:
    That would be funny
  • K3Nv2 @ K3Nv2:
    Think I'd prefer to be a boy scout you go in a alter boy you leave with demons
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Ken someone needs to make Scooby Doo and Zoo School lol
  • K3Nv2 @ K3Nv2:
    Scooby doo and the alter scout
  • K3Nv2 @ K3Nv2:
    Who did this to you it was a priest zoinks!
  • Psionic Roshambo @ Psionic Roshambo:
    Scooby Doo and Micheal Jackson save Christmas, they team up to help Santa. Micheal Jackson makes sure all the boys are asleep for Santa
  • BigOnYa @ BigOnYa:
    I can picture the unmasking, "Lets see who molested you scooby..."
  • K3Nv2 @ K3Nv2:
    Scooby fights off the allegations of fox and cnn
  • K3Nv2 @ K3Nv2:
    You mean it wasn't the scout master it was the priest?
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    R Kelly use you super soaker powers to put the kids out that are on fire!!! Bill Cosby you drug them to make sure they are not in pain!!! OJ you kill the parents!!!
    Psionic Roshambo @ Psionic Roshambo: R Kelly use you super soaker powers to put the kids out that are on fire!!! Bill Cosby you drug...