Programming
#1
Posted 08 January 2007 - 08:17 PM
I've been reading the book Hackers [Steve Levy] and with the inspiring people there, I've finally decided to start learning to program.
The problem I've yet to find out is, what is the best type of programming for me.
Firstly I'm looking at editing programs [e.g:programs that contain 'malware' or other useless junk] Maybe remove that and use it for my personal use.
Things like that, such as Cracking programs activation, would that come under programming as such?
I know this may be such a broad topic here but can ya'll give a few examples of which language/programming does what?
-Panda
#2
Posted 08 January 2007 - 08:29 PM
Get started with some java.
Public class HelloWorld
{
Public static void main (String[] args)
{
System.out.println ("Hello World!\n");
}
}
Edited by BigBrother, 08 January 2007 - 08:30 PM.
#3
Posted 08 January 2007 - 08:49 PM
int main(){
cout << "Hello World\n";
system("pause");
}
Edited by BoBo, 08 January 2007 - 08:49 PM.
#4
Posted 08 January 2007 - 09:12 PM
System("pause")? You sure that's the best choice here?gogo c++
int main(){
cout << "Hello World\n";
system("pause");
}
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World\n";
cin.get();
}
#5
Posted 08 January 2007 - 09:18 PM
#6
Posted 08 January 2007 - 09:41 PM
#7
Posted 08 January 2007 - 09:44 PM
Yes it is the way to go and it is better than java. However you are missing two points.C++ is the way to go
1) Dont limit your self. EVER
2) C++ is more complex than java for a newb to programming. Start with Java it's simple and when you get used to the way it's structured C++ is very close.
#8
Posted 09 January 2007 - 09:42 AM
Yes it is the way to go and it is better than java. However you are missing two points.
C++ is the way to go
1) Dont limit your self. EVER
2) C++ is more complex than java for a newb to programming. Start with Java it's simple and when you get used to the way it's structured C++ is very close.
I'd say it really depends on the environment you're using. If you're planning on doing this in a windows environment, C++/Java might be the way to go. If you're looking at tackling programming in a *nix environment, then straight C is definitely your best bet. Especially since you mentioned modifying source. A good 90% of the time the source I deal with is in pure C. Either way, figure out what you're looking to do, and just use the best tool for the job. Usually many different goals require many different languages. My point is, you should worry less about which language you're going to write in, and spend more time figuring out what exactly it is you want to do. From there choosing the right tool for the job is easy.
#9
Posted 09 January 2007 - 03:57 PM
If you wanna go with C++, you can try my own tutorial: www.planetcpp.info
Otherwise, get the latest version of the K&R and start learning C.
#include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
}
I'd say you don't need what C++ has to offer most of the time. I prefer C++ for large applications like games, or some GUI apps. Otherwise, C will meet your needs.
#10
Posted 11 January 2007 - 06:37 PM
#11
Posted 11 January 2007 - 06:39 PM
i'ld say Python would be a good start for a complete beginner. It runs on Win and 'nix boxes and has an easy to understand Basic type structure.
C works on Win and *nix boxes too...
#12
Posted 11 January 2007 - 09:15 PM
Start with Lisp (common lisp is a good start).
I know it may sound like either a stupid or harsh thing to say but it will really teach you a lot of things you need to learn to get yourself into the correct frame of mind. You will also learn about recursion and hopefully grow bored with it so that in later years you only use it when its required.
Then go to Perl.
Your experience with lisp will allow you to appreciate Perl more, and Perls sometimes C like syntax will prep you for the next step while giving you a rich experience with regular expressions.
Then go to C (Use gcc and use the pedantic flag for all code).
You already know a lot of C syntax from Perl and you will find a lot of the conditional syntax to be the same. Now you just have to live without reg-ex and do things the hard way; Don't forget to learn the golden rule of memory management.. Leave it emptier then you found it. While your doing so, you will learn about architecture specific problems (sizeof(int) alone will be educational) and expand your mind to the null void and function pointer
Then go to C++ (Same as C++, using g++)
After C and Perl C++ will feel easy, and allow you to make reusable objects you can reuse as needed.
If your looking for something more 'liberal arts' or 'general studies' go with php.
Edited by feverdream, 11 January 2007 - 11:30 PM.
#13
Posted 11 January 2007 - 09:51 PM
So;
I've been reading the book Hackers [Steve Levy] and with the inspiring people there, I've finally decided to start learning to program.
The problem I've yet to find out is, what is the best type of programming for me.
Firstly I'm looking at editing programs [e.g:programs that contain 'malware' or other useless junk] Maybe remove that and use it for my personal use.
Things like that, such as Cracking programs activation, would that come under programming as such?
I know this may be such a broad topic here but can ya'll give a few examples of which language/programming does what?
-Panda
In hacking, I've always seen Perl and C to be the most useful -- Perl for quick hacks and C for honest-to-god tools that are to be perfected. That, at least, is the old wisdom from the Linux world. Nowadays, I'm seeing Ruby picking up some steam to augment/replace Perl, but C has always been around, and will be for the foreseeable future.
Java, also, has very compelling perks -- when you crash a C program, you get the helpful message "Segmentation fault". However, in Java, the JVM gives you a stack trace all the way to the line of code where the error occurred -- very helpful. Java was made to look like C and C++, so it is basically equivalent in syntax. I moved from C++ to Java, but a move the other way would be fairly easy too.
#14
Posted 11 January 2007 - 10:17 PM
What if you wanted to cast thousands of votes on a web page which has a voting question running like 'which do you prefer? A, B or C' Could you do this with a 'quick Perl script'?
What about if you wanted to keep on reloading a page to increase page views, is this easily done with a quick Perl script?
If you guys could give some examples of what can fairly easily be done with a 'quick Perl script' I would be very interested.
Is Perl best for these type things would you say?
#15
Posted 11 January 2007 - 10:20 PM
I only know a little perl but from what I know it's like an executable psudocode.
#16
Posted 11 January 2007 - 10:28 PM
Don't you need to chmod the script first?Well for the voting I would use PHP
I only know a little perl but from what I know it's like an executable psudocode.
#17
Posted 13 January 2007 - 09:50 AM
So;
I've been reading the book Hackers [Steve Levy] and with the inspiring people there, I've finally decided to start learning to program.
The problem I've yet to find out is, what is the best type of programming for me.
Firstly I'm looking at editing programs [e.g:programs that contain 'malware' or other useless junk] Maybe remove that and use it for my personal use.
Things like that, such as Cracking programs activation, would that come under programming as such?
I know this may be such a broad topic here but can ya'll give a few examples of which language/programming does what?
-Panda
well hello panda, this all depends on what you really want to do further 'down the road', i started with python and still using it, but currently i'm reading on asm to help with reverse engineering 'Cracking programs activation' if that's what you want to do i suggest you find a book on asm and take a trip to this forum to get started...http://forums.accessroot.com/ reverse engineering isn't for the faint of heart
#18
Posted 13 January 2007 - 01:16 PM
http://www.amazon.co...d/dp/0131103628
Some people might suggest you some scripting languages or some modern languages, but I think you really should start with C. It is a much more "cleaner" language and will give you less tools integrated into the language.
#19
Posted 13 January 2007 - 04:15 PM
#20
Posted 03 February 2007 - 11:41 AM
Any programming language can be dis heartening ig you dont keep to it and put up with your mistakes because everyone makes mistakes and thats how we all learn lets look at micorsoft they have plenty of them in there os when they release the os's
BinRev is hosted by the great people at Lunarpages!












