4,046 reputation
1923
bio website code.google.com/p/…
location San Diego, CA
age 29
visits member for 3 years, 10 months
seen Jul 5 at 23:47

I'm passionate about coding and researching the history of technology as well as exploring where technology is leading.

I used to work in flight simulation doing both hardware implementation (electrical design, wiring), web development (design, development, webmaster), as well as software development (desktop development in C#).

I'm a big fan of both using and contributing to Open source projects.

I am the creator of the pypreprocessor library that can be found on PYPI as well as Google code.


Jan
11
comment Recursion or while loops
I have also noticed a pattern in a sync programming where loops are avoided in favor of recursive calls on an iterator that contains a .next() method. I assume it keeps long running code from becoming too CPU greedy.
Jan
11
comment Establishing an API to provide end-user apps/scripts access to multiple types of databases
@hulkmeister Sorry about the delayed response, I answered your question and added a bunch more useful info. I would post examples of controllers but implementations can be wildly different across the wide variety of languages/platforms/frameworks used on the server-side. So far the GoogleAppEngine (python) webapp2 has the cleanest implementation I have seen yet unfortunately it's hard to find good examples online.
Jan
11
revised Establishing an API to provide end-user apps/scripts access to multiple types of databases
added 3219 characters in body
Jan
9
answered Establishing an API to provide end-user apps/scripts access to multiple types of databases
Jan
9
answered Shipping my first class library. Any gotchas I need to be aware of?
Jan
9
comment Is the carriage-return char considered obsolete
@RossPatterson Whatever you say Shakespeare. But there's an easy way to ignore CR chars and still support Windows. I've updated the question to outline how it's handled.
Jan
9
revised Is the carriage-return char considered obsolete
added 587 characters in body
Jan
8
comment Is the carriage-return char considered obsolete
Finally, a good counter-point. If I could select two answers I'd pick this one too.
Jan
8
comment Should your best programmers have to check everyone else's code into source control?
+1 Best answer. Especially pointing out that one dev committing a build-breaking bug negatively impacts everybody.
Jan
8
comment Constructing a Finite State Automaton
OK, read more. The way I described it is based on a PCRE (Perl Compatible Regular Expression) implementation. What you're referring to is something more like a Thompson NFA implementation where matches are checked in parallel and the best first match wins. I found this link (swtch.com/~rsc/regexp/regexp1.html) and mind == blown.
Jan
7
revised Represent actions(verbs) in REST URI
added 850 characters in body
Jan
7
comment Represent actions(verbs) in REST URI
(cont) I would argue that URI-hacks are an anti-pattern introduced primarily by the ROR community but that doesn't mean they aren't useful. With the arrival of better low-level HTTPd servers it's just becoming easier to implement REST in a manner that fully leverages its potential. Things have come a long way since the days where Apache and routing everything through index.html was the only option.
Jan
7
comment Represent actions(verbs) in REST URI
@Shauna Technically, the best approach would be to employ a MIME-type specific to printing with the URI '/customer/{id}+print' and a response MIME-Type of text/html+print. The advantage of such an approach being, you can create transforms for many MIME-types (ex text/html, text/x-markdown, application/json, etc) for the same URI. The disadvantage of the solution you present is, you'd need to create an additional URI (and define another route) for every different MIME-Type. It kinda defeats the purpose of using REST.
Jan
7
comment Represent actions(verbs) in REST URI
@Shauna Yep but that gets left to the client-side. This is referring to REST operations, which may only take place on the server-side. The question could use some clarification but I think it's safe to make that assumption.
Jan
4
revised Should a database table(s) structure match its intended data structure(s) in the logic?
added 1213 characters in body
Jan
4
answered Represent actions(verbs) in REST URI
Jan
4
comment Represent actions(verbs) in REST URI
@Shauna Not necessarily, the URI may be a request to the server for a print-friendly version of the resource (ie a different view).
Jan
4
comment Represent actions(verbs) in REST URI
POST usually means create/insert, whereas put usually means update save/update. That's how it's defined in REST even if it isn't how it's usually used in HTML.
Jan
4
revised Git-friendly spreadsheet format?
deleted 9 characters in body
Jan
4
revised What are the advantages of expressing information in the simplest possible format?
added 1 characters in body