Login Register






My Introduction filter_list
Author
Message
My Introduction #1
Hi there Smile
I would like to start out by just saying I want to be able to "understand" computers and the internet fully.

I am kind of oblivious at the moment as to exactly what I am trying to learn and study, but I have the end picture in my head basically. Hopefully along my journey I will start to discover and understand more of what it is that I am looking for and how to obtain it. As of now I have decided to start purchasing books one by one and reading them (obviously computer related books).

My first book should arrive tomorrow, it is "The Hacker Playbook: Practical Guide To Penetration Testing" by Peter Kim. After the fact of my purchase I kind of realized it was not the book I should have started out with, but I am going to read it and then move on to a book about a programming language, my thoughts were Python, but I tend to change my mind spontaneously.

Anyways, I decided to join this forum to try and network with people that are like myself.

Reply

RE: My Introduction #2
I am going to use my introduction Thread for my various questions as for now Smile I hope nobody minds.

Anyways, let me explain my problem.
Currently I am using Ubuntu 14.04 LTS. I want to learn either Python or C/C++.
I am not exactly stuck on how/where to learn it, but I am stuck on the part where I can use it.

I somewhat understand compilers and interpreters, but how do I know if I have the correct compiler on my OS, and if not how do I get it... Once I am done with that, I want to get an IDLE (I believe that is what it is called, basically a text editor for coding...?) I am not sure how to get this on my OS.

Now if I can get these done, I need help on understanding how to use my written programs... Thank you

Could someone kindly help me out Smile It would be much appreciated!

Also, can someone please let me know if this is how I should approach beginning programming?
(First get the resources to learn a language / Second have the things you need to actually be able to USE the coding language / Third be able to USE the programs that I have coded)

Reply

RE: My Introduction #3
well that's a good start to start learning a programming language...but obviously you should know html wich isn't a called a programming language it's just a psuedo language i gues but it puts you in the world...and i myself had a very hard time picking my first programming language..read many articles about many untill i settled on ruby..but infact i have knowledge in more than 6 or 7 languges so what i'm saying is try many tutorial and see which fits you best..and for what you said about C++ notepad, leafpad and so on and g++ should be enough for you for compiling c++ don't make things complicated for you...and for the part considering wich programs you should write...just make your own problems and program their solution a simple calculator is a good start in c++ just such useless programs just to get you in the world try www.securityoverride.org their they have some basic programming challenges for you to test your skills check it out it gets more challenging with each level..i think enough said and Good luck for you )

Reply

RE: My Introduction #4
First of all welcome to hackcommunity!

For knowing which compilers/interpreter to use your in luck as Linux distributions usually come pre installed with them for C/C++ you will be using gcc/g++ or simply the make command.

An IDE isn't all that important to be honest it's nice to have syntax highlighting but you can use just about any text editor you wish.

For starting out first pick a language I would probably say start with Python as I think you'd find it easier to understand but there's no real reason you can't start with C/C++ if you wish have a look around the programming section here for some threads about these and find some good books to learn from (which will cover the remainder of your questions). Mostly it's just practice
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N

Reply

RE: My Introduction #5
@1MrE1
I don't know if you did not understand my post or what but you did not answer any of my questions...

I know that I want to learn either Python or C/C++, I already know this, no need to try and point me towards other languages. Also, I am not concerned with "what programs" to write.

My problems are knowing how to get start with "USING" the language, like literally how to start writing it and making it run on my OS.

I just found out about g++ and got it installed by using "sudo apt-get install g++". Now I need to know "HOW TO GET" an editor to use for writing code on my OS, and then finally how to combine everything and actaully USE my programs that I will have written.

Thank you for your help though.

@chmod
How can I get an IDE for ubuntu?

Reply

RE: My Introduction #6
you can use the apt-get command to install one, maybe try Geany (there are others, but I can't remember what they are called off the top of my head. Maybe use the software centre to search for them) like I said they are not strictly necessary to be able to write code
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N

Reply

RE: My Introduction #7
@chmod
Thank you Smile And yes I understan they are not necessary but I would like to have one, I want to have the greatest experience when starting out coding Smile

And let me rundown how my understanding of the process of this will work:
1) I write some code and save it as "name.cpp"
2) I open terminal and run the command "g++" -c file1.cpp
3) I go to my files where "name.cpp" was and it will now be replaced by "name.o"
4) I open that file and it will be my program...

^^^^^ Is this correct? ^^^^^

Sorry if I sound stupid right now, it is just hard for me to grasp new concepts until I have actually done them...

Reply

RE: My Introduction #8
okay fair enough
just open your command prompt type in nano hello.c
write your hello world program then ctrl+x to save
then type in g++ -o hello hello.c
that should compile your program
then ./hello
if it doesn't work change permissions using chmod 755 hello
then again ./hello
and it should work i hope this helps )

and offcourse i don't deserve a thank you :p

Reply

RE: My Introduction #9
(06-04-2014, 08:13 PM)MRIDGAF Wrote: @chmod
Thank you Smile And yes I understan they are not necessary but I would like to have one, I want to have the greatest experience when starting out coding Smile

And let me rundown how my understanding of the process of this will work:
1) I write some code and save it as "name.cpp"
2) I open terminal and run the command "g++" -c file1.cpp
3) I go to my files where "name.cpp" was and it will now be replaced by "name.o"
4) I open that file and it will be my program...

^^^^^ Is this correct? ^^^^^

Sorry if I sound stupid right now, it is just hard for me to grasp new concepts until I have actually done them...

That's one way of doing it you could also navigate to where 'name.cpp' is (note that you will have to do this anyway) and type
Code:
make name
(you do not need the extension as make first searched for binaries and when one is not found it will find a file called name and check the extension and then if it knows what to do with it (in the case of C++ it will) it will run the compiler and build the binary, which on a Linux system usually has no extention anyway so the output file will simply be named 'name' and have all the relevant permissions.

As I said in my first reply all of this will be explained in much more detail from your learning material.
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N

Reply

RE: My Introduction #10
Ok thanks Smile Sorry @1MrE1 and @chmod if I came off as an asshole or anything, it is just I am getting really frustrated because before I start anything I want to have a deep understanding of all the little things and just the whole concept. Anyways, both of you were very helpful and I apprciate your input Smile

Reply