Skip to primary content
Skip to secondary content

ferretfarmer

furor loquendi

ferretfarmer

Main menu

  • Home
  • Tutorials
  • About
  • thank me!

Tag Archives: programming

randomly selecting objects from an array in O(1)

Posted on August 14, 2014 by ferretfarmer
Reply

this python snippet was a fun read:

http://code.activestate.com/recipes/576564-walkers-alias-method-for-random-objects-with-diffe/

(also here in ruby)

Posted in programming | Tagged math, optimization, programming, python | Leave a reply

code quality

Image

Reply

code quality

the only accurate measurement of code quality: wtf’s per minute

January 19, 2014 by ferretfarmer
Posted in programming, rant Tagged design, programming, software architecture, software engineering, wtf Leave a reply

Tags

  • anagram
  • annecdote
  • book review
  • bug
  • code snippet
  • design
  • django
  • javascript
  • math
  • one-liner
  • optimization
  • prime numbers
  • project euler
  • python
  • riddle
  • tutorial
  • twisted
  • udacity challenge
  • websockets
  • wtf

Enter your email address to follow this blog and receive notifications of new posts by email.

Categories

Blog at WordPress.com.
  • Follow Following
    • ferretfarmer
    • Join 32 other followers
    • Already have a WordPress.com account? Log in now.
    • ferretfarmer
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar