-
Recent Posts
Recent Comments
Archives
- June 2011
- February 2011
- January 2011
- December 2010
- April 2010
- March 2010
- February 2010
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- February 2007
Categories
- Algorithms
- Assembly
- C
- Challenges
- Compilation
- computer science
- Cryptography
- CSS
- Databases
- decompilation
- Design
- Fractals
- Game Development
- Geometry
- gotchas
- Graphics
- Group Theory
- Humour
- Javascript
- Linux
- Math
- Miscellaneous
- Optimization
- Optimization
- Optimization
- Optimization
- Origami
- Personal
- Programming
- Programming Philosophy
- Projects
- Protocols
- Python
- rants
- Research
- Security
- Sound
- startup
- Statistics
- Teaching Programming
- Testing
- Uncategorized
- Utility Functions
- web-design
Category Archives: Design
10 Python Optimization Tips and Issues
Following my previous post on Optimizing Javascript, I thought I’d write a similar post regarding Python optimization.
Posted in computer science, Design, Optimization, Programming, Python
Tagged memory, memory usage, optimization, Programming, Python
7 Comments
A Simple Race-Condition
Lately, I’ve mostly been working on my startup. It’s a web-application, and one of the first things I’ve written was a cache mechanism for some lengthy operations. Yesterday, I found a classic race-condition in that module. I won’t present the … Continue reading
Posted in Databases, Design, Programming
Tagged Bug, Caching, Databases, Multi-Threading, Race-Condition, web applications
14 Comments
Actual Data Always Needs To Be Explicit
This might seem obvious, but it wasn’t to me it first. Now I consider it a database design rule of thumb, or even a patten. I’ll explain using an example. Consider an application where you also need automatic tagging of … Continue reading
Posted in Databases, Design, Programming, startup
Tagged Databases, Design, design patterns
Leave a comment
Database Design Problem
A few weeks ago, I had to work out a database design for my startup. I had a bit of a hard time deciding on a design direction, but after thinking about it, I settled on a design I was … Continue reading
Posted in Databases, Design, startup
Tagged Anti patterns, Databases, Design, design patterns, Entity-Attribute-Value model, Harvesting, Inner platform effect
5 Comments
Open Question No. 1: Persistent Predicates?
Lately I’ve been developing a website. One issue that I’ll probably need to address in the near future is “persistent predicates”. By “persistent predicates” I mean the problem of treating predicates as data. Consider the following situation: you are developing … Continue reading
Posted in Design, Programming
Tagged Expression Trees, open question, persistent predicates, Programming
6 Comments
Issues in writing a VM – Part 3 – State and Memory
When implementing the VM, I had to keep track of state. The state of the VM includes the registers, virtual variables and memory. Fortunately, keeping track of state information is pretty easy. Basically, it amounts to having a dict, where … Continue reading
Posted in Design, Programming, Python
Tagged Distorm, memory, Python, sparse list, VM
Leave a comment
LRU cache solution: a case for linked lists in Python
The reason I put up the LRU cache challenge up, was that I couldn’t think of a good solution to the problem without using linked lists. This has been pointed to by Adam and Erez as well. Adam commented on … Continue reading
Browser visibility-security and invisibility-insecurity
Formal languages have a knack of giving some output, and then later doing something completely different. For example, take the “Halting Problem“, but this is probably too theoretical to be of any relevance… so read on for something a bit … Continue reading
Posted in computer science, Design, Programming, Programming Philosophy, Security
Tagged Security
Leave a comment
Exception handling policy – use module exception hierarchies
While programming some bigger projects, and not some home-brew script, I used to wonder what to do with exceptions coming from lower level and library modules. The ‘home script’ approach to exceptions is “let it rise” – usually because it … Continue reading