- FAQ for programming.reddit
- What programming blogs or websites do you read?
- What programming books should I read?
- I want to learn language X, what book should I read?
- What open source projects should I study to learn from?
- How do I beat procrastination?
- What's an open source project I can contribute to?
- What are some good programming puzzles?
- Why is Haskell so popular on reddit? Or Erlang? Or…
- What music do you listen to while coding?
- What web framework should I use for my next web app?
- What is the best way to learn language X or framework Y?
- What is the consensus on pair programming in the work place?
- I'm not a programmer. How do I start?
- Is a computer science degree necessary?
- I'm going for a job interview, how should I prepare?
- I'm going for a job interview, what questions should I ask?
- How do I become a freelancer? / Advice for freelancer developers
- What programming language should I use for my new game?
- Why do you hate <insert language that's unpopular on proggit>?
- Why are the majority of games, PC and Console written in C++?
- Which programming language should I learn?
- What shared/dedicated web host is best?
- What VCS should I use?
- What was the first language you learned?
- Should I teach language X to new programming students?
- What language reddits are there?
- I want a REAL programming reddit!
FAQ for programming.reddit
Please read this FAQ before you submit a self.programming post. A lot of stuff has been asked and answered before. Go ahead and edit this page to keep it accurate and interesting. Most of this was sourced from comments on the original FAQ thread.
What programming blogs or websites do you read?
What are your favorite programming related blogs? 90+ comments
What programming blogs do you read regularly? 100+ comments
What programming-related blogs do you read regularly? 20+ comments
Programming Related websites and blogs of your prefererence is ... ? 30+ comments
What Programming-Related Blogs Do You Read? 70+ comments
The following blogs are well-read, but you're not really allowed to admit on prog.reddit that you read them:
Joel on Software by Joel Spolsky
Coding Horror by Jeff Atwood
Other blogs are slightly less popular, but you are allowed to admit you read these:
Lambda the Ultimate, the programming languages weblog
A List Apart, on the design, development, and meaning of web content
A Neighborhood of Infinity (and any other blogs related to Haskell)
Planet Factor, a good aggregation of Factor-related posts
What programming books should I read?
What programming book has been your favorite? 330+ comments
What programming books do you recommend? 30+ comments
Must-read programming books? 220+ comments (best comment: "Yes, you must.")
I want to become a better (desktop) programmer... what books do you suggest I read? 80+ comments
A Reading List For the Self-Taught Computer Scientist 500+ comments. From /r/books, not just about programming.
Also take a look at these questions on Stack Overflow:
What is the single most influential book every programmer should read?
The top five almost always seem to be:
Godel, Escher, Bach by Douglas Hofstadter
The C Programming Language (K&R) by Kernighan and Ritchie
The Pragmatic Programmer by Andrew Hunt and David Thomas
Code Complete by Steve Mcconnell
Sometimes people mention The Art Of Computer Programming (TAOCP) by Donald Knuth, but nobody's actually ever read that, except of course Steve Jobs. See also Books Programmers Don't Really Read by Bill the Lizard.
I want to learn language X, what book should I read?
I've tried to collect the canonical books for popular programming languages. These are aimed at experienced developers. New programmers may be able to follow them, but they will find it easier to start with a book targeting beginners.
C: The C Programming Language (K&R) by Kernighan and Ritchie
C++: C++ Primer by Stanley B. Lippman, or Effective C++ by Scott Meyers
C#: C# in Depth by Jon Skeet
D: The D Programming Language by Andrei Alexandrescu
Java: Thinking in Java by Bruce Eckel
Perl: Programming Perl by Larry Wall, Tom Christiansen, and Jon Orwant
Python: Python Tutorial by The Python Software Foundation
Ruby: Programming Ruby The Pragmatic Programmer's Guide by Dave Thomas, with Chad Fowler and Andy Hunt or Why's (poignant) Guide to Ruby by why the lucky stiff.
Rust: The Rust Programming Language by Steve Klabnik and Carol Nichols, with contributions from the Rust Community
Haskell: Real World Haskell by Bryan O'Sullivan, Don Stewart, and John Goerzen
Lisp: Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp by Peter Norvig or Practical Common Lisp by Peter Seibel
Scheme: Structure and Interpretation of Computer Programs (SICP) by Abelson, Sussman, and Sussman
What open source projects should I study to learn from?
Some "elegantly coded" C and C++ projects 300+ comments
Python projects for learning best practices 50+ comments
What's the most beautiful piece of publically available source code you saw? 90+ comments
Some common-consensus answers seem to be:
SQLite is exemplary for testing and in-code documentation
Quake, the game by id Software
Qt, especially its API
Django, a Python web framework
How do I beat procrastination?
In short, by not reading reddit. Or you could read the Procrastinationreddit ( ref). But a little more seriously:
How djork beat procrastination 300+ comments
What keeps you from coding? 40+ comments
Good and Bad Procrastination by Paul Graham
The Pomodoro Technique (work on the task for 25 minutes, have 5 minutes break)
What's an open source project I can contribute to?
"Contributing for the sake of contributing never works out. Look through the software you use every day and think about how it could be improved, then do it." ( comment by querulous)
Please share your first contact stories about contributing to an open source project. 80+ comments
What open source project(s) do you actively contribute to? 130+ comments
I'm in college, and I want to contribute to an OSS project. Any suggestions? 40+ comments
What are some good programming puzzles?
Hey Proggit, what are your toughest programming problems? I'm looking for a challenge. 210+ comments
Why is Haskell so popular on reddit? Or Erlang? Or…
Because the Haskell community hangs out on Reddit. The Haskell Reddit is one of the largest programming reddits.
What does Haskell offer, for instance, that Python doesn't? 550+ comments
I am seeing 1-2 articles about Haskell every day. Why? I've never met this language outside reddit 630+ comments
How many of you are actually building stuff with Erlang? 70+ comments
- Why your favorite language is unpopular by Ken Shirriff
What music do you listen to while coding?
What's reddit's favourite programming music? Bonus if it's streamable online 370+ comments
Best background music for programming? 1040+ comments
What is your favorite programming music? 270+ comments
Some of the top answers are:
cat /dev/urandom > /dev/dsp
What web framework should I use for my next web app?
What do you think of the different web frameworks for Python? 50+ comments
Which web framework do you prefer? 110+ comments
That's it, I'm dropping PHP. Which web framework should I start learning? 80+ comments
It really depends on what you like, what language you're using, and what you're web app's going to do. But some of the popular ones are:
Django, a high-level web framework for Python
Pylons, the Python framework used by reddit, doesn't force you to use their template system or DB interface
PHP, which everyone hates but uses anyway
Cobol on Cogs, making legacy integration easy and fun
What is the best way to learn language X or framework Y?
Python: official tutorial, the Django source
Lisp: Practical Common Lisp
Haskell: Learn You a Haskell
Cocoa: Cocoa Design Patterns
ADD MORE HERE
What is the consensus on pair programming in the work place?
"There is no concensus on it yet. My guess is that the ultimate consensus will be that it's good for some people and projects and poor for others." ( comment by munificent)
I'm not a programmer. How do I start?
Like learning maths or english, you need to start with basic building blocks of programming. As you have addition and subtraction, verbs and nouns, you will have if-else and basic loops to use. These "blocks" combined together control the behaviour (the flow) of a program. You should consider mastering these basics in any language as the idea is exactly the same no matter which language you use.
It is debatable which language you should use to learn these concepts, and at the end of the day it will boil down to your own preference. Programming languages are like the tools in a toolbox - different ones serve a better purpose than others, after all you wouldn't use a hammer to screw a nail in. Using C# or Java would be the best idea as the community content regarding these subjects is wide and varied and the code you write is not difficult to understand, however as your ability grows you can decide on which language is the best to use for your own projects.
This gets asked a lot in Programming Reddit. Some of the past discussions:
I'm a 17-year-old boy who's very interested in programming and knows nothing about it...where should I start?
Any tips on how to start to learn programming from the very start?
if someone were to ask you "I want to program, how should I start? Assume this person has no experience..What would you tell them?
I want to start to learn to Program. What programming language should I learn first and where can I find guides on how to start?
How to teach web development to n00bs: 10 things I learned training 50 people to be software engineers
Is a computer science degree necessary?
A CS degree is for working in software development. Certification programs are for working in IT. If you want to be a sysadmin, pursue certifications. If you want to be a software developer, pursue a CS degree, preferably in a good institution.
A CS degree is a plus for working in IT, but not necessary. The rest of the answers regarding employment refer to jobs in software development.
Is a CS degree necessary to being a programmer? No.
Is a CS degree worthwhile to being a programmer? Yes, very much.
Is a CS degree necessary to get a job as a programmer? No, but you'll be pushing your luck, even if you're very talented.
Is a CS degree worthwhile in order to get a good job as a programmer? Yes, especially if you're young and inexperienced.
Are advanced degrees worthwhile? Yes for MSc. No for PhD, unless you're looking for an academic career or an industry career in chip design.
Are advanced degrees necessary to get a job or advance your career? Yes for academic careers. No for everything else. Financially, they're not worth it. A starting programmer with a bachelors degree may have an average starting salary of somewhere between $50k and $80k a year. On the other hand, most graduate student stipends are between $15k and $25k a year.
On the other hand, do consider graduate study if you like studying CS. Note that if you do like CS, getting a funded PhD offer means getting paid for several years to study what you enjoy (i.e. free education).
Other degrees: Software Engineering, but it is basically the same thing as most CS programs. Other Information Science, MIS, certification programs and similar degrees that are not proper CS or Software Engineering are looked down upon and for good reasons. Don't go near those.
Bottom line: If you want to program, get a good bachelor CS degree.
I'm going for a job interview, how should I prepare?
You can find a wide variety of typical interview questions here: http://www.reddit.com/r/programming/comments/95nux/ask_proggit_what_are_your_favorite_programming/
It is normal for interviewers to test your general coding skills by giving you a small problem to solve (usually on paper). Questions focus on core computer science techniques, so the solutions will involve things like linked-lists, binary search, sorting, hashtables, etc, any topics that would be covered in a Datastructures and Algorithms class. This is a useful refresher: Hacking a Google Interview.
Obviously, the questions will depend on the position you are applying for and the technologies you'll be using. Some companies love to quiz applicants on details of the programming language or platform, so it is good to brush on the more obscure corners of your target language. A typical example is: What does the volatile keyword mean in C?
Some firms go in the opposite direction and ask candidates to solve riddles. This was popularized by Microsoft in the 90s, but it is less common these days. The canonical riddle is: Why are manhole covers round? You can find some general strategies for solving these in the book How Would You Move Mount Fuji?.
I'm going for a job interview, what questions should I ask?
The Joel Test is a good starting point. You might also find the Reverse Phone Screen useful.
How do I become a freelancer? / Advice for freelancer developers
So you want to be a consultant...?
What programming language should I use for my new game?
Speaking as someone who's been mentoring a class on experimental game design for the last three years, so please take this advice over the kneejerk "C++/C/not Java":
Almost every game needs graphics, audio, and input libraries. There are libraries specifically designed for games that wrap all of these functions, and as a beginner it's probably best if you start with one of these. The most commonly recommended ones are SDL, Ogre, Pygame, Slick, JMonkey, and XNA. Ogre and Pygame suck: don't use these. XNA is great, and I hate C# so trust that I say so begrudgingly. Slick and JMonkey are also great, and, being Java libraries, you can access them through Python (Jython), Lisp (Clojure), or Java (duh). If you're dead set on using a language that isn't one of the ones easily supported by these libraries, you can use SDL because there are SDL bindings for everything.
Now, a note on speed, because somebody is going to bring it up. Don't use Ruby. Excluding Ruby, the harshest performance difference you'll ever see is Python versus C++: Python is roughly 100x slower than C++. 100x sounds like a lot: however, say you have a O(n2) algorithm. Once n>100, the difference caused by a 100x performance boost is too small to allow you to afford increasing n by one. Why is this important? Object interaction is by nature an O(n2)algorithm. If you can handle over 100 objects on-screen in C++ without a dip in framerate, then any language switch (except Ruby) will have almost no performance impact.
Finally, what do professionals use? Traditionally, C++. Now, increasing amounts of Flash, Objective C, and Java. Sky-rocketing amounts of C#. C++ is still the single most common, especially for AAA titles. However, most big-budget titles are made by buying a bunch of professional-grade middleware libraries (which are in C++), gluing it together with a small amount of C++ code, then writing the rest in a scripting language. The most common scripting language here is Lua, but by a tiny margin.
 Yes, you can trim the hell out of this using a region grid or a quad tree. Both of these blow up in the asymptote due to finite memory. Segregation can drop you to O(n) with no memory overhead, but that imposes restrictions on your game design.
Why do you hate <insert language that's unpopular on proggit>?
C++: Hating it is trendy. Actually just hate the fanboys who just learned it as their second language and think it's the best thing ever. Ugly syntax. Badly bolted onto C. Horribly convoluted enterprise libraries that cling to every popular OO language. Segmentation Fault. Template error messages are useless and massive.
C: Function pointer syntax is cumbersome. Segmentation faults. Some of the library functions were designed by idiots.
Objective-C: Mac people like it. It's still C.
Lisp: Not pure enough. Confusing naming conventions. Parenthesis. Not all library functions behave well with eachother.
Java: Syntax too big. Too slow. Everything has to be in a class. Swing sucks. Spring. Associated with horrible enterprise bloat, a la Kingdom of Nouns. No function pointers. Collection framework can't handle conversion to collection of a supertype. Sometimes awt is hardware accelerated and sometimes it's not. Float type is not compatible with anything.
Python: Whitespace is dumb. Slow. Line wrap syntax is dumb. Object orientation syntax is dumb. Scope syntax is dumb.
Haskell: Nobody understands it. Ugly syntax. Fanboys.
Ruby: Monkey patching. Traditionally slow VM. Broken version of Python with inconsistent semantics. Slow version of perl.
Perl: Ugly. Unreadable.
PHP: See r/lolphp.
Why are the majority of games, PC and Console written in C++?
- See the article Why C++
Because C and C++ (and a lot of other languages which don't use a virtual machine or interpreter) are compiled to native code (assembler) which runs directly on the computer hardware. This means that there's no virtual machine on top of the hardware which runs the intermediate code ('assembler' for the virtual machine. This is the bytecode in java and IL in .NET).
Platforms with a virtual machine (e.g. Java and .NET) use a JIT compiler which compiles the byte code / IL at runtime into assembler for running it on the hardware. This process takes some processor cycles away but at the same time it can make clever decisions at runtime how to optimize the code. In theory, this process could be as fast or faster than the assembler resulting from compiling C/C++ code.
In practice it's not (yet) the case.
This thus means that practically, one could better use a language which a) gives an abstraction above assembler (thus C, C++ ) and b) compiles directly to assembler. Another big issue is memory management. C and C++ force you to do your own memory management, which is preferable if you have limited memory on for example a console. With languages which compile to IL / Bytecode for example you leave the memory management to the virtual machine, which means you don't have control over that directly.
Which programming language should I learn?
- C: You like low level stuff and you want to be pretty close to the metal. Some people call it portable, but it isn't really that portable.
- C++: Like C, but easier and klunkier, with object orientedness thrown in.
- C#: Runs perfect on Windows. Runs great on Linux/Mac, but gets lots of hate because "Micro$oft's" fingers are in it. Like Java, but not shitty.
- Assembly: You will learn everything there is to know about your computer if you learn assembly.
- HTML/CSS/JS: You don't really want to be a programmer, you just want a website.
- PHP: Please, for the love of God, don't even bother.
- Python: Nice standard library, lightweight, easy to start new project. Whitespace is syntactically important.
- Java: Runs on a lot of stuff, but has lots of boilerplate and forces you to arrange your source tree by namespace (I think).
- brainfuck: Not practical for anything, but it's fun to try for a while and forces you to think in new ways.
What shared/dedicated web host is best?
A few high quality threads:
Ask Proggit: Recomendations for free or cheap, reliable Linux shell providers (must support ssh and screen, Ubuntu preferred)?
Alternative to godaddy? Damn Bastards donated $4 mill to McCain who opposes Net Neutrality and I need a webhost soon but not them!!
What VCS should I use?
The big question here is centralized (SVN, TFS, CVS) versus distributed (git, hg). Centralized version control keeps the history on the server and you only keep the tip locally. Distributed gives everyone a copy of the repository and allows you to work offline with the whole repo. Most people prefer distributed these days.
- SVN (Subversion): Slow branching. Fast everything else. Well adopted. Open source hosts: Sourceforge
- TFS (Team Foundation Server): Integrates with Visual Studio. Slow. Open source hosts: Codeplex
- CVS: (I have never used this)
- Git: Made by the Linux guys. Cheap branches, fast. Best suited to Linux, but works on everything. Currently considered to be some hot shit. Open source hosts: GitHub
- Hg (Mercurial): Git, but with a smoother learning curve, and best suited to Windows (but works on everything). Less powerful, easier to use. Open source hosts: BitBucket
What was the first language you learned?
This has been asked several times (please add if you found more):
What was the first language you learned? (100+ comments)
What language did you first start, and how old were you? (200+ comments)
Should I teach language X to new programming students?
Scheme for first year CS classes, good or bad? (100 comments)
We're learning Scheme in our "Introduction to Program Design" course. Am I wrong in being disappointed that we aren't learning something a little more... useful? Or are there actual practical advantages to Scheme? (30 comments)
What programming language would you teach your children? (250+ comments)
I'm in the process of develping a highschool level Introduction to Programming course. What language would you teach, and why? (150+ comments)
What programming languages should I teach CS students? (60 comments)
My friends want me to teach them how to program. What language should I start with and are there any free online textbooks that you recomend I follow? (10 comments)
So I'm finally getting around to teach myself some programming. What languages should I start with? (7 comments)
What language reddits are there?
- /r/java 287k users
- /r/cpp 240k users
- /r/rust 224k users
- /r/csharp 219k users
- /r/golang 201k users
- /r/php 156k users
- /r/sql 143k users
- /r/c_programming 136k users
- /r/typescript 101k users
- /r/swift 100k users
- /r/ruby 78.9k users
- /r/haskell 73.8k users
- /r/rstats 70.8k users
- /r/kotlin 67.4k users
- /r/matlab 49.2k users
- /r/scala 49.2k users
- /r/latex 43.5k users
- /r/dartlang 38.0k users
- /r/lisp 36.6k users
- /r/clojure 30.7k users
- /r/elixir 25.0k users
- /r/julia 22.3k users
- /r/lua 17.3k users
- /r/perl 15.9k users
- /r/asm 15.3k users
- /r/elm 10.8k users
- /r/fsharp 10.4k users
- /r/ocaml 9.9k users
- /r/erlang 9.3k users
- /r/visualbasic 8.3k users
- /r/ada 8.3k users
- /r/mathematica 8.0k users
- /r/prolog 8.0k users
- /r/scheme 7.6k users
- /r/racket 7.4k users
- /r/Zig 7.2k users
- /r/objectivec 6.9k users
- /r/fortran 6.6k users
- /r/nim 6.2k users
- /r/d_language/ 5.0k users
- /r/shell 4.6k users
- /r/delphi 3.6k users
- /r/gpgpu 3.2k users
- /r/idris 3.1k users
- /r/cobol 3.1k users
- /r/forth 3.0k users
- /r/groovy 2.9k users
- /r/verilog 2.8k users
- /r/vhdl 2.6k users
- /r/smalltalk 2.3k users
- /r/coffeescript 2.3k users
- /r/coq 2.1k users
- /r/awk 2.1k users
- /r/haxe 1.9k users
- /r/pascal 1.9k users
- /r/APLJK 1.7k users
- /r/tcl 1.5k users
- /r/coldfusion 1.5k users
- /r/brainfuck 1.5k users
- /r/octave 1.4k users
- /r/rakulang 1.2k users
- /r/sml 1.0k users
And the union of all the language reddits as the multi language reddit
I want a REAL programming reddit!
Lately a lot of users expressed opinions on the current state of r/Programming.
We moderators try our best to keep non-programming related posts away, but if you happen to find any, don't just point it out in the discussion thread, REPORT them.
Chances are, if you desire an unofficial alternative to r/Programming, you might actually try one of these: