#code

31 bookmarks tagged with #code · RSS Feed · ← All Tags

Write Code That Works by Reid Burke

http://reidburke.com/2012/09/27/write-code-that-works/?awesm=reid.in_l6
If you’re writing tests for code that’s rapidly changing, you’re going to spend more of your time writing tests instead of shipping features. For code that’s brand new, I typically only test-first a small amount of code and wait a while before hitting that green bar on a code coverage report.

Write Code That Works by Reid Burke

http://reidburke.com/2012/09/27/write-code-that-works?awesm=reid.in_l6
If you’re writing tests for code that’s rapidly changing, you’re going to spend more of your time writing tests instead of shipping features. For code that’s brand new, I typically only test-first a small amount of code and wait a while before hitting that green bar on a code coverage report.

Quick QR Codes In Django

http://www.acedevs.com/blog/2011/07/25/quick-qr-codes-django/
Creating QR codes is a quick and easy process using a few model signals and the PyQRNative port. The hardest part of this implementation was finding a way to use the Django ContentFile object to save the generated QR code using our selected storage backend. This was important because you would not have to worry about changes to your system architecture effecting your QR generation code. An example would be moving from local filesystem storage to S3 using Django Storages (django-storages).

Quick QR Codes In Django

http://www.acedevs.com/blog/2011/07/25/quick-qr-codes-django
Creating QR codes is a quick and easy process using a few model signals and the PyQRNative port. The hardest part of this implementation was finding a way to use the Django ContentFile object to save the generated QR code using our selected storage backend. This was important because you would not have to worry about changes to your system architecture effecting your QR generation code. An example would be moving from local filesystem storage to S3 using Django Storages (django-storages).

Coding Horror: Learn to Read the Source, Luke

http://www.codinghorror.com/blog/2012/04/learn-to-read-the-source-luke.html
The transformative power of "source always included" in JavaScript is a major reason why I coined – and continue to believe in – Atwood's Law. Even if "view source" isn't built in (but it totally should be), you should demand access to the underlying source code for your stack. No matter what the documentation says, the source code is the ultimate truth, the best and most definitive and up-to-date documentation you're likely to find. This will be true forever, so the sooner you come to terms with this, the better off you'll be as a software developer.

Of parser-fetishists and semi-colons | Christian Heilmann

http://christianheilmann.com/2012/04/16/of-parser-fetishists-and-semi-colons/
I think it is a sign that as developers we are either terribly bored or we are out of ideas when we start to go down to bickering about violating accepted ways of development. We should concentrate on building amazing tools and experiences for users out there rather than smugly trying to undo conventions we’ve been following for years now. The web standards movement was not about enforcing arbitrary code syntax on poor developers who now have to type a few keys more. It is about making code predictable, extensible and easy to explain to newcomers. Confusing these matters doesn’t help the cause of making a new generation of developers embrace the web as a platform. Don’t be that guy.

Of parser-fetishists and semi-colons | Christian Heilmann

http://christianheilmann.com/2012/04/16/of-parser-fetishists-and-semi-colons
I think it is a sign that as developers we are either terribly bored or we are out of ideas when we start to go down to bickering about violating accepted ways of development. We should concentrate on building amazing tools and experiences for users out there rather than smugly trying to undo conventions we’ve been following for years now. The web standards movement was not about enforcing arbitrary code syntax on poor developers who now have to type a few keys more. It is about making code predictable, extensible and easy to explain to newcomers. Confusing these matters doesn’t help the cause of making a new generation of developers embrace the web as a platform. Don’t be that guy.

#reviewth.is @github

http://reviewth.is/
GitHub gives us almost everything we need to do code reviews. Commit, file and line level comments, comment notifications, plus everything else that makes the GitHub experience great. The only thing missing is an easy way to initiate a review. If I want my code to be reviewed, I’ve got to go to GitHub, get the URL (and any other info), then compose an email to everyone I want to review it.

#reviewth.is @github

http://reviewth.is
GitHub gives us almost everything we need to do code reviews. Commit, file and line level comments, comment notifications, plus everything else that makes the GitHub experience great. The only thing missing is an easy way to initiate a review. If I want my code to be reviewed, I’ve got to go to GitHub, get the URL (and any other info), then compose an email to everyone I want to review it.

Dynamically including Github code | PeterBraden.co.uk

http://peterbraden.co.uk/article/github-include
"pasted code is dead code - real living code changes, and short of going back and repasting, the code on the web quickly becomes out of date. So this is a little snippet I whipped up to dynamically (by the wonders of cross-site ajax) load code from a github branch. This means, when you update the git branch and repush, the code will update."

Source Code of Several Atari 7800 Games Released! | ProgrammerFish - Everything that's programmed!

http://www.programmerfish.com/source-code-of-several-7800-games-released
"Remember the Dig Dug or Centipede or Robotron? They used to be favorites wheimagen Atari’s 7800 series was still around. Now since the era of those consoles is over and a different world of interactive reality gaming has taken over, Atari Museum, a site run by Atari enthusiast, has got hold of has unofficially source code of over 15 games for the coders and enthusiasts to admire the state-of-the-art (because this is what it was back then) of game development."

Read-optimize Your Source Code - Brendel Consulting

http://www.brendel.com/consulting/blog/2009/06/read-optimized-source-code.html
"In fact, I claim that if you don't take those rules to heart in your own source code then you are either unprofessional, lazy, not a team-player, or all of the above. If you as a software developer take pride in your professionalism and quality of your work then you have to consider that it is not only the achieved functionality for which you are being paid: The code you produce in almost all cases becomes property of your employer, and thus, the code itself also a product (and actually the most important product) you deliver. And how useful that code if for the team who has to work with it is what really determines its value."