Non-language/platform-specific topics (Programming)

Non-language/platform-specific topics (Programming)

Table of contents

Child pages

Books

Articles

 

Bots

Twitter bots

Python Twitter bots

How to create a Twitter bot

  1. Create a new Twitter account.

    1. Go to twitter.com

    2. Click 'Sign up'. 

    3. Fill out the sign-up information and click 'Next'. 

      1. If you already have a Twitter account registered under your primary email address, you may need to create a new email address to register a new account.

    4. If it prompts you for your phone number, be sure to fill it out, as creating a bot requires that you register your phone number.

Clean coding

Cleaning up other people's code

  • Committed code shouldn't have extraneous stuff in it.

    • If a variable is never used and there's no explanation for why, it's probably an oversight. Feel free to delete it.

Books:
The Elements of Style by Strunk and White - rec'd by at least one of the guys in Coders At Work
Clean Code by Robert Martin - rec'd in comments here
Code Complete by Steve McConnell - rec'd by Allston, also rec'd in comments here
Refactoring by Martin Fowler et al. - rec'd by Allston

Websites:
http://twitter.github.com/bootstrap/
Google's Style Guides for Various Programming Languages - !!
7 Ways to Write Beautiful Code
Code Conventions for the Java Programming Language by Oracle

Articles:
Kotaku - The Exceptional Beauty of Doom 3's Source Code

Quote:

I was really excited to write this article, because it gave me an excuse to really think about what beautiful code is. I still don’t think I know, and maybe it’s entirely subjective. I do think the two biggest things, for me at least, are stylistic indenting and maximum const-ness.

Books

Clean Code

  • I read this book cover-to-cover twice and it really helped me to improve the quality of my code, I've gotten compliments from people since then about how easy my code is to understand.

  • The basic idea is that your code should read like plain English as much as possible.

  • Summary: https://gist.github.com/cedrickchee/55ecfbaac643bf0c24da6874bf4feb08

Compilers / Language Design

Background

  • Compilers are basically the way you build new programming languages on top of the old ones.

  • So, for example, Python was built with C.

  • My understanding is that you could theoretically use these principles to design a programming language that would take everyday English and turn it into a computer program. Obviously you would have a lot of issues with the ambiguity of everyday English.

Articles / Videos

Books