NeoGAF

NeoGAF (http://www.neogaf.com/forum/index.php)
-   Off-Topic Community (http://www.neogaf.com/forum/forumdisplay.php?f=20)
-   -   Programming |OT| C is better than C++! No, C++ is better than C (http://www.neogaf.com/forum/showthread.php?t=475808)

Kikarian 05-28-2012 07:47 PM

Programming |OT| C is better than C++! No, C++ is better than C
 
Computer Programming is used for everything your doing on your computer. Whether it be programs, Apps, OS and your browser.

We know a lot of Gaffers are programmers whether it is a job or a hobby. This thread will allow you to express all your ideas.

[B][U]Definition[/U][/B]:
[QUOTE]Computer programming (often shortened to programming or coding) is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs. This source code is written in one or more programming languages. The purpose of programming is to create a set of instructions that computers use to perform specific operations or to exhibit desired behaviors. The process of writing source code often requires expertise in many different subjects, including knowledge of the application domain, specialized algorithms and formal logic.[/QUOTE] [URL="http://en.wikipedia.org/wiki/Computer_programming"]See More[/URL]

[B][U]History:[/U][/B]
[QUOTE]The Antikythera mechanism from ancient Greece was a calculator utilizing gears of various sizes and configuration to determine its operation,[3] which tracked the metonic cycle still used in lunar-to-solar calendars, and which is consistent for calculating the dates of the Olympiads.[4] Al-Jazari built programmable Automata in 1206. One system employed in these devices was the use of pegs and cams placed into a wooden drum at specific locations, which would sequentially trigger levers that in turn operated percussion instruments. The output of this device was a small drummer playing various rhythms and drum patterns.[5][6] The Jacquard Loom, which Joseph Marie Jacquard developed in 1801, uses a series of pasteboard cards with holes punched in them. The hole pattern represented the pattern that the loom had to follow in weaving cloth. The loom could produce entirely different weaves using different sets of cards. Charles Babbage adopted the use of punched cards around 1830 to control his Analytical Engine. The first computer program was written for the Analytical Engine by mathematician Ada Lovelace to calculate a sequence of Bernoulli Numbers.[7] The synthesis of numerical calculation, predetermined operation and output, along with a way to organize and input instructions in a manner relatively easy for humans to conceive and produce, led to the modern development of computer programming. Development of computer programming accelerated through the Industrial Revolution.[/QUOTE] [URL="http://en.wikipedia.org/wiki/Computer_programming"]See More[/URL]


Programming Languages: (Click for more info)
[URL="http://en.wikipedia.org/wiki/C++"]C++[/URL]

[URL="http://en.wikipedia.org/wiki/C_(programming_language)"]C[/URL]

[URL="http://en.wikipedia.org/wiki/C_Sharp_(programming_language)"]C# / C-Sharp[/URL]

[URL="http://en.wikipedia.org/wiki/Perl"]Perl[/URL]

[URL="http://en.wikipedia.org/wiki/Java_(programming_language)"]Java[/URL]

[URL="http://en.wikipedia.org/wiki/Ruby_(programming_language)"]Ruby[/URL]

[URL="http://en.wikipedia.org/wiki/Python_(programming_language)"]Python[/URL]

In this thread you can talk about what projects you are doing. What is your proffered language. Ask for help.

Programming is an ever-growing field and an ever-changing field. It's an exciting and challenging career path, but with good benefits.

[U][B]Resources[/B][/U]

[URL="http://programming-motherfucker.com/become.html"]http://programming-motherfucker.com/become.html[/URL]

[URL="http://www.cprogramming.com/"]http://www.cprogramming.com/[/URL]

[URL="http://dis.4chan.org/prog/"]4chan.org/prog/ - Can [B][U]SOMETIMES [/U][/B]be helpful [/URL]

[URL="http://phpacademy.org/"]http://phpacademy.org/[/URL]

[URL="http://www.youtube.com/user/thenewboston?ob=4&feature=results_main"]TheNewBoston (Youtube)[/URL]

[URL="http://learnyouahaskell.com/"]http://learnyouahaskell.com/[/URL]

[URL="www.codecademy.com"]www.codecademy.com[/URL]

[URL="www.udacity.com"]www.udacity.com[/URL]

[U][B]Text Editors & IDE's[/B][/U]:

T = Text Editor
I = IDE (Integrated Development Environment)

Notepad++ - (T)
Notepad+ - (T)
SublimeText 2 - (T)
Code::Blocks - (I)
Netbeans IDE - (I)
Eclipse - (I)
Microsoft Visual Studio *(Express) - (I)

[B]Game Design (made by 4chan's /vg/):[/B]

General resource lists
[URL="heartvine.tumblr.com/post/17243872646/indie-game-dev-faq"]heartvine.tumblr.com/post/17243872646/indie-game-dev-faq[/URL]

[URL="sites.google.com/site/vidyadevresources"]sites.google.com/site/vidyadevresources[/URL]

[url]http://www.pixelprospector.com/indie-resources[/url]

[URL="www-cs-students.stanford.edu/~amitp/gameprog.html"]www-cs-students.stanford.edu/~amitp/gameprog.html[/URL]

[URL="content.gpwiki.org/index.php"]content.gpwiki.org/index.php[/URL]

[B]More programming resources[/B]
[URL="forums.tigsource.com/index.php?board=4.0"]forums.tigsource.com/index.php?board=4.0[/URL]

[B]UPDATE:[/B]

Game Development: [url]http://heartvine.tumblr.com/post/17243872646/indie-game-dev-faq[/url]
[url]https://sites.google.com/site/vidyadevresources/tutorials[/url]
[url]http://vidyadev.com/wiki/Main_Page[/url]
[url]http://www.pixelprospector.com/list-of-programming-language-resources/[/url]

Good Job Bob 05-28-2012 07:49 PM

[url=http://programming-motherfucker.com/become.html]Become a Programmer, Motherfucker[/url] - Awesome resource for a ton of languages.

Legato.Reborn- 05-28-2012 07:51 PM

Right now I'm working in XNA (C#) and loving it.

Trying to get this very simple game done and sent out to the marketplace to see what happens!

DUFFMCWALIN 05-28-2012 07:51 PM

This thread is relevant to my interests. Good thing we finally have our own |OT|.

iamshadowlark 05-28-2012 07:52 PM

[url]http://www.cprogramming.com/[/url]

got me started back in the day. Now im almost a CS grad.

KorrZ 05-28-2012 07:52 PM

Great idea for a thread, was hoping someone would finally make one of these. I'm learning C++ right now, about 5-6 months into the process.

Kikarian 05-28-2012 07:54 PM

[QUOTE=Good Job Bob;38273764][url=http://programming-motherfucker.com/become.html]Become a Programmer, Motherfucker[/url] - Awesome resource for a ton of languages.[/QUOTE]

[QUOTE=iamshadowlark;38273853][url]http://www.cprogramming.com/[/url]

got me started back in the day. Now im almost a CS grad.[/QUOTE]

Will update OP, thanks...

Kikarian 05-28-2012 08:04 PM

[QUOTE=Legato.Reborn-;38273833]Right now I'm working in XNA (C#) and loving it.

Trying to get this very simple game done and sent out to the marketplace to see what happens![/QUOTE]I'm to start C#, Tried it a bit, but didn't really do much with it. I might use it for XNA.

ComputerMKII 05-28-2012 08:06 PM

deleted

survivor 05-28-2012 08:07 PM

I'm learning Ruby right now in the summer to get started on Rails. It was a bit hard to find a decent source to learn so if anyone knows good websites/books please share them

ComputerMKII 05-28-2012 08:08 PM

deleted

leroy hacker 05-28-2012 08:10 PM

[B][URL="http://learnyouahaskell.com/introduction#about-this-tutorial"]Learn You a Haskell for Great Good![/URL][/B]

Relix 05-28-2012 08:10 PM

Where the fuck is Visual Basic you goddamned haters!!!

Lasthope106 05-28-2012 08:11 PM

Awesome thread. I'm assuming this replaces the c++ one?

DopeyFish 05-28-2012 08:11 PM

[QUOTE=Relix;38274337]Where the fuck is Visual Basic you gotddamned haters!!![/QUOTE]

QuickBasic > Vbasic

Kikarian 05-28-2012 08:11 PM

[QUOTE=Computer;38274273]For people who understand French, this site will be your Bible: [url]http://www.siteduzero.com/[/url][/QUOTE]Chrome couldn't Translate it. :(

Tathanen 05-28-2012 08:13 PM

Haven't used anything but PHP for eight years. Everyone's like WOO PYTHON WOO RAILS but dang it, it works for me!

ghostofsparta 05-28-2012 08:14 PM

[QUOTE=Relix;38274337]Where the fuck is Visual Basic you goddamned haters!!![/QUOTE]

"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration."

I've never actually used Basic so I can't say if I agree :p

Nevasleep 05-28-2012 08:15 PM

[QUOTE=Relix;38274337]Where the fuck is Visual Basic you gotddamned haters!!![/QUOTE]
I can do QBasic, Visual Basic 6, VB.Net, Java, Python.......now learning PHP, which is fun.

For PHP check out [url=http://phpacademy.org/]http://phpacademy.org/[/url] and the NewBoston YouTube videos.
Actually have a look at thenewboston on YouTube whatever language you're learning, as it's probably there.

jeremy70583 05-28-2012 08:17 PM

So my first job out of college has been PeopleSoft. It has evolved quite a bit, but still pretty archaic. I was just wondering if anyone else has used it, and if it would hurt my career in any way if I use it exclusively for 5+ years?

Kikarian 05-28-2012 08:17 PM

[QUOTE=Nevasleep;38274480]I can do QBasic, Visual Basic 6, VB.Net, Java, Python.......now learning PHP, which is fun.

For PHP check out [url=http://phpacademy.org/]http://phpacademy.org/[/url] and the NewBoston YouTube videos.
Actually have a look at thenewboston on YouTube whatever language you're learning, as it's probably there.[/QUOTE]Forgot about NewBoston, he's pretty good.

mugurumakensei 05-28-2012 08:19 PM

[QUOTE=Relix;38274337]Where the fuck is Visual Basic you goddamned haters!!![/QUOTE]

I'd like to pretend we are in a world where Visual Basic never existed.

Being serious, a lot of the limitations and semantics of visual basic have led to an astounding amount of bad code.

injurai 05-28-2012 08:20 PM

Awesome OT, I needed a place to talk about this stuff.

Kikarian 05-28-2012 08:23 PM

[QUOTE=mugurumakensei;38274594]I'd like to pretend we are in a world where Visual Basic never existed.
[/QUOTE]

[img]http://i.imgur.com/3AQmK.gif[/img]

Reg 05-28-2012 08:24 PM

I'm really interested in learning C#, but don't know where to start. Does anybody know of any noob friendly books or websites for a guy who hasn't programmed before?

FunkyPajamas 05-28-2012 08:25 PM

Nice, count me in. Used to do some C back in College (and loved it) but became a Web developer (yes, I know, easy money). Did PHP for about 10 years and now I'm doing Ruby and thinking of picking up Python.

Anyway, hello world (; (<--- should have been second post)

upandaway 05-28-2012 08:26 PM

[IMG]http://i.imgur.com/BrJYb.jpg[/IMG]

I've learned Java in high school for 2 years, but my teacher was really bad so I decided to do a "reset" and start from scratch with a decent book. So I'm currently reading this.

It's such an awesome book, nearly done with it.

That said, working full time tedious/tiring job makes it so hard to learn on my own. I'm pretty much reduced a chapter per weekend, at best.

Does anyone know a good Java reference book? Or am I good with the online API?

Averon 05-28-2012 08:26 PM

I have never programmed a thing in my life. What are some good sites/books/programs to get someone who's completely ignorant in programming a start?

Tashi 05-28-2012 08:27 PM

Awesome thread idea. I know there's been one about C++ and I've been getting my XNA help from the Indie thread over on gaming side. Will check this thread often.

Nice shit!

Kikarian 05-28-2012 08:29 PM

[QUOTE=Reg;38274743]I'm really interested in learning C#, but don't know where to start. Does anybody know of any noob friendly books or websites for a guy who hasn't programmed before?[/QUOTE]TheNewBoston has a good C# playlist.

The Lamp 05-28-2012 08:31 PM

What a coincidence! I start my "Structured Programming in C" course tomorrow. What's C like? Is it hard? I'm a first-time programmer though I have a little experience with Python.

KorrZ 05-28-2012 08:32 PM

[img]http://ecx.images-amazon.com/images/I/51k8Ru-DDhL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU15_.jpg[/img]

This book is a godsend for anyone looking to start out learning C++. It's very easy to follow even for a complete noob to programming, but it's still very detailed and tries to cement not just how to program but also the "proper" way.

survivor 05-28-2012 08:33 PM

[QUOTE=upandaway;38274790][IMG]http://i.imgur.com/BrJYb.jpg[/IMG]

I've learned Java in high school for 2 years, but my teacher was really bad so I decided to do a "reset" and start from scratch with a decent book. So I'm currently reading this.

It's such an awesome book, nearly done with it.

That said, working full time tedious/tiring job makes it so hard to learn on my own. I'm pretty much reduced a chapter per weekend, at best.

Does anyone know a good Java reference book? Or am I good with the online API?[/QUOTE]

I have that book too

I can't give you expert opinion on the online Java API since I never really used it for anything complex outside of looking up some data structures but I found it useful enough.

mugurumakensei 05-28-2012 08:34 PM

[QUOTE=The Lamp;38274940]What a coincidence! I start my "Structured Programming in C" course tomorrow. What's C like? Is it hard? I'm a first-time programmer though I have a little experience with Python.[/QUOTE]

Depends on how in-depth the courses are... I find beginners get tripped up by the behavior of pointers along with related semantic items such as the dereference operator and the address-of operator. Otherwise, due to the limited number of features, the language itself is fairly simple.

Prophet Steve 05-28-2012 08:34 PM

[QUOTE=DodgeAnon;38274901]TheNewBoston has a good C# playlist.[/QUOTE]

I believe almost all of their tutorials are quite good right? Did their C++ one before.

Well, except the Photoshop tutorials I guess, if those are still outdated.

Currently I'm mainly having to work in Actionscript 3, and I absolutely loathe it. But should only be for a few weeks, until I most likely go back to C#.

Also, I don't have any experience with Java, but I see people joking about it with it in relation to Minecraft. Why is that? Is it a large difference from C#?

Zombie James 05-28-2012 08:44 PM

I fully support this OP.

Self-taught in C before moving on to other languages in college. Out of work right now (ugh) but I'm keeping busy doing random web development stuff and Python programming these days. Totally love Python and it's quickly becoming one of my favourite languages to work with, wish I had started working with it earlier.

I think some tools would be nice to have in the OP. I'm a huge fan of [URL="http://www.sublimetext.com/2"]Sublime Text 2[/URL] and I think anyone who codes outside on an IDE should check it out.

robox 05-28-2012 08:45 PM

i was trying to link to a thread on [URL="http://www.quora.com/Brogramming/How-does-a-programmer-become-a-Brogrammer"]Brogramming[/URL] but stupid quora is now requires registration to read. screw them.

The Technomancer 05-28-2012 08:48 PM

[QUOTE=mugurumakensei;38275023]Depends on how in-depth the courses are... I find beginners get tripped up by the behavior of pointers along with related semantic items such as the dereference operator and the address-of operator. Otherwise, due to the limited number of features, the language itself is fairly simple.[/QUOTE]

Everyone always says that pointers are tricky but I've never had any problem with them. I think part of the trick is understanding from the start the distinction between an address and what's contained at that address.

burn 05-28-2012 08:53 PM

[QUOTE=upandaway;38274790][IMG]http://i.imgur.com/BrJYb.jpg[/IMG]

I've learned Java in high school for 2 years, but my teacher was really bad so I decided to do a "reset" and start from scratch with a decent book. So I'm currently reading this.

It's such an awesome book, nearly done with it.

That said, working full time tedious/tiring job makes it so hard to learn on my own. I'm pretty much reduced a chapter per weekend, at best.

Does anyone know a good Java reference book? Or am I good with the online API?[/QUOTE]


Check out [URL="http://www.mindview.net/Books/TIJ/"]Thinking in Java[/URL]. You can download the third edition for free or buy the 4th, although I don't know if it's worth it.

The official [URL="http://docs.oracle.com/javase/tutorial/"]Java Tutorials[/URL] are also great. You can even download them as ebooks.

rodvik 05-28-2012 09:03 PM

[QUOTE=KorrZ;38274981][img]http://ecx.images-amazon.com/images/I/51k8Ru-DDhL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU15_.jpg[/img]

This book is a godsend for anyone looking to start out learning C++. It's very easy to follow even for a complete noob to programming, but it's still very detailed and tries to cement not just how to program but also the "proper" way.[/QUOTE]

Its a good book.

I would also reccomend:

[IMG]http://ecx.images-amazon.com/images/I/417vhYB-FfL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU01_.jpg[/IMG]

A superb go to short beginners book. Very useful as it doesnt bother with much theory just focuses on doing with an example on each page to reference. Very good for learning by doing.

[IMG]http://ecx.images-amazon.com/images/I/51JDHCjAu-L._SL500_AA300_.jpg[/IMG]

By the guy who wrote C++ a beginners book. Highly recommended. It is delightful when after the first four chapters or so he declares something like "There you have learnt everything important, the rest of this book is just add ons." So very refreshing.

For those wanting to go to C++ via Java playing aroundd with Processing is also a lot of fun.

The Technomancer 05-28-2012 09:05 PM

[QUOTE=KorrZ;38274981][img]http://ecx.images-amazon.com/images/I/51k8Ru-DDhL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU15_.jpg[/img]

This book is a godsend for anyone looking to start out learning C++. It's very easy to follow even for a complete noob to programming, but it's still very detailed and tries to cement not just how to program but also the "proper" way.[/QUOTE]

Oh yes. This is [i]the[/i] book. I basically taught myself programming from scratch using this book.

Relix 05-28-2012 09:06 PM

VB 4 LIFE

moojito 05-28-2012 09:13 PM

Subscribed! I'd like to get into programming again.

If I start learning java, will I naturally become able to write apps for android, or is android-java somehow different?

Liquid Helium 05-28-2012 09:16 PM

[QUOTE=survivor;38274245]I'm learning Ruby right now in the summer to get started on Rails. It was a bit hard to find a decent source to learn so if anyone knows good websites/books please share them[/QUOTE]

I have heard very good things about [url]http://railsforzombies.com/[/url]

Haly 05-28-2012 09:17 PM

I kind of wish I started out in C++ rather than Java or C#. It's where all the jobs are and I would probably be a better programmer today if I learned to think with pointers earlier on.

usea 05-28-2012 09:18 PM

Hi, programming gaf.

Hey, let's talk about tabs vs spaces! [spoiler]jk. mostly. tabs forever.[/spoiler]

But seriously, the more programming threads we have, the better. I'm all up ins these threads:
[URL="http://www.neogaf.com/forum/showthread.php?t=409754"]C++ thread[/URL]
[URL="http://www.neogaf.com/forum/showthread.php?t=445986"]Indy game development thread[/URL]
[URL="http://www.neogaf.com/forum/showthread.php?t=426075"]programming rants thread[/URL]

I've been reading through [URL="http://www.amazon.com/Game-Engine-Architecture-Jason-Gregory/dp/1568814135"]Game Engine Architecture[/URL] which is a good book. The chapters on physics, vectors and collision are especially great. However, a lot of it is really specific to AAA console game engines written in c++. Which for me is not very interesting since I love more modern languages and I totally drink the kool-aid with regards to OOD stuff that is in vogue these days. Still, great book.

I also recommend these books. Especially the second one. It's the best game AI book I've read.
[URL="http://www.amazon.com/Programming-Game-Example-Mat-Buckland/dp/1556220782"]Programming Game AI by Example[/URL]
[URL="http://www.amazon.com/Artificial-Intelligence-Games-Second-Edition/dp/0123747317"]Artificial Intelligence for Games.[/URL]

Also great books on other subjects:
[URL="http://www.amazon.com/Effective-Specific-Improve-Programs-Designs/dp/0321334876"]Effective C++[/URL]
[URL="http://www.amazon.com/Introduction-Algorithms-Third-Edition-ebook/dp/B007CNRCAO/"]Introduction to Algorithms (cormen, et al)[/URL]

[QUOTE=Haly;38276050]I kind of wish I started out in C++ rather than Java or C#. It's where all the jobs are and I would probably be a better programmer today if I learned to think with pointers earlier on.[/QUOTE]
What kind of jobs? There are tons of jobs in both C++ and java/c#, but they're going to be mostly in different industries with some crossover. Also they vary regionally. Around here, there are a million C# jobs, with little java and c++.

TheExodu5 05-28-2012 09:21 PM

Professional Java developer here. Sad part is I haven't really worked with any other languages outside of school, so my skillset is not that varied at this point. I'm still not fully comfortable with some things in C++, for example (pointers, structs).

I'd like to give myself some projects at some point to work on some things on my own time. I just need a good idea or set of goals to work towards. I used to take on the HackThisSite programming challenges...those were fun.

I think this year I might try to take up some hardware projects...get myself an FPGA board and work on my VHDL skills. You can come up with some really neat and useful designs if you know how to work an FPGA board. Completely different mindset though, since FPGA programs run in full parallel. You really need to be comfortable with state machines to get anywhere. There is such a large sense of accomplishment from creating working FPGA based designs though. I made my own simulated MIPS processor in school...still one of the biggest highlights of my degree.

Slavik81 05-28-2012 09:28 PM

[QUOTE=TheExodu5;38276135]I'd like to give myself some projects at some point to work on some things on my own time. I just need a good idea or set of goals to work towards. I used to take on the HackThisSite programming challenges...those were fun.[/QUOTE]
[url]www.projecteuler.net[/url]

usea 05-28-2012 09:29 PM

[QUOTE=TheExodu5;38276135]Professional Java developer here. Sad part is I haven't really worked with any other languages outside of school, so my skillset is not that varied at this point. I'm still not fully comfortable with some things in C++, for example (pointers, structs).

I'd like to give myself some projects at some point to work on some things on my own time. I just need a good idea or set of goals to work towards. I used to take on the HackThisSite programming challenges...those were fun.
[/QUOTE]
Maybe try out some other programming challenge sites in a new language? They can be pretty fun.
[URL="http://code.google.com/codejam/contests.html"]Google Code Jam[/URL]
[URL="http://www.topcoder.com/"]Top Coder[/URL]
[URL="http://programmers.stackexchange.com/questions/12599/alternatives-to-project-euler"]Others[/URL]
(project euler kind of sucks imo)

I graduated a year ago and I've done almost exclusively C# since then, so my skillset isn't very varied either. I feel you there. I've done some little things in javascript, tsql, msbuild scripts, etc. But nothing that I felt greatly broadened my skillset. I need to dive into ruby, python or lua or something.

Haly 05-28-2012 09:34 PM

In addition to usea's recommendations
 
[URL="http://www.amazon.com/Essential-Mathematics-Interactive-Applications-Edition/dp/0123742978/ref=sr_1_cc_1?s=aps&ie=UTF8&qid=1338233498&sr=1-1-catcorr"]Essential Mathematics for Games and Interactive Applications[/URL] is a good book if you intend to do any amount of heavy physics simulation in your game projects.

[URL="http://gafferongames.com/game-physics/"]gafferongames[/URL] also has a bunch of nice tutorials for stuff like forces, velocity and acceleration, updating using delta time and a very robust framework for an RK4 integrator.


All times are GMT +1. The time now is 01:15 AM.