Popular Posts

Tuesday, March 22, 2011

"i'm used to writing async code already and this is all neatly tied to the posix layer, which makes non-blocking network stuff ridiculously easy. there's also the package system (npm), async test suites, no worries about messing up the global namespace, etc. you gotta OOP tho if you just throw literals around you can't have or protect a local scope"

Javascript (node.js) http://nodejs.org/ review:

http://www.w3schools.com/js/js_howto.asp
http://www.w3schools.com/xml/xml_whatis.asp
http://www.w3schools.com/dom/dom_intro.asp

NODE
  • downside, requires libssl-dev (fixed with -no-ssl)
  • install with “git clone https://github.com/joyent/node” (ryan is now joyent)

Use Prototype Programming, Delegation.
prototype based programming -http://coweb.cc.gatech.edu/cs2340/4288
// Example of true prototypal inheritance style in JavaScript.
// "ex nihilo" object creation employing the literal object notation {}.
var foo = {one: 1, two: 2};
// Another "ex nihilo" object.
var bar = {three: 3};
// Gecko and Webkit JavaScript engines can directly
// manipulate the internal prototype link.
// For the sake of simplicity, let's just pretend
// that the following line works regardless of the
// engine used:
bar.__proto__ = foo; // foo is now the parent of bar.
// If we try to access foo's properties from bar
// from now on, we'll succeed.
bar.one // Resolves to 1.
// The child object's properties are also accessible.
bar.three // Resolves to 3.
Don’t bother with Normal OOP. tho you can :
  • http://msdn.microsoft.com/en-us/magazine/cc163419.aspx
  • http://en.wikipedia.org/wiki/Prototype_based_programming
  • delegation http://en.wikipedia.org/wiki/Delegation_%28programming%29
Docs:
  • http://www.w3schools.com/JS/js_intro.asp (javascript)
  • http://nodejs.org/docs/v0.4.1/api/all.html#__filename (node api)
operator overloading (not supported, this spec is fake)
http://www.mozilla.org/js/language/js20-2000-07/libraries/operator-overloading.html

https://developer.mozilla.org/en/Introduction_to_Object-Oriented_JavaScript
node examples:
http://blog.osbutler.com/categories/node-by-example/?page=3
https://github.com/nodejitsu/nexpect/blob/master/demo.js (uses spawned procs)

“DOn’t bother with OOP, just learn the DOM”
http://en.wikipedia.org/wiki/Document_Object_Model

look at the GOOG custom search API, it’s in JSON:
http://code.google.com/apis/customsearch/v1/overview.html
http://www.w3schools.com/ajax/default.asp

Monday, March 21, 2011

Programming Languages as of March 2011

Tiobe's chart which force me to take stock of my favorite programming languages. Erlang is #39. It's pretty obvious it's nothing more than a POC language to take ideas from. Scala is even worse, down at #44. Go is at #14 and falling, and pretty much a one trick pony (Go routines).

Sunday, March 20, 2011

Mathematics

The “ESR 3”

additional:

Strain’s Map:

Thursday, March 10, 2011

Header

http://farm1.static.flickr.com/113/263512030_5d2e69d657_z.jpg?zz=1

ふい (coming to nothing, ending without result, total waste)

Saturday, March 5, 2011

How to Avoid Stupid Startup Recruiters

"So. What do you do?"

This is a question i hear more and more in the dot com cafe section of District Five - the cafe where all the hipsters fight over power plugs so that they can run their latest "XML and Java to put Stupid Stuff on the Web"(tm) startup from when the cafe opens at 6am to when it closes at midnight.

It is a question that makes my skin crawl.

I usually reply, "I am a programmer." If they still look happy to hear that, I continue with, "A programmer is a professional coder, which just means that you have grown the hell up and you have a freaking job and and you don't care about stupid stuff on the web cos you're making money and are acting as an ADULT.

When they try to tell me about all the wonderful web 2.0 bullcrap, I point out that I program things for medical barcode readers, and other medical software. "The stuff that keeps people alive."

Most piss off about then.

If they bother me more, I tell them that when I'm not at work, I try to stop talking about work.

Wednesday, March 2, 2011

Why I don't Use Facebook

People keep asking me when I will use Facebook.

Here's the long version of why I do not. Every time we choose to use a product we are choosing to support a design decision. Actually several design decisions, as engineers out there will know, since every project is a conglomeration of tradeoffs. The one major thing I cannot support in good conscience, is PHP.

Let me just give you a few quotes from the man who designed, maintains, and gave us PHP:

There are people who actually like programming. I don't understand why they like programming. -Rasmus Lerdorf

So as you can see, clearly, programmer happiness isn't something that Mr. Lerdorf cares about. So you can expect that since this isn't a priority, that coding in his language will be full of Pain and Suffering.

I don't know how to stop it, there was never any intent to write a programming language [...] I have absolutely no idea how to write a programming language, I just kept adding the next logical step on the way

I know how to stop it, Mr. Lerdorf. And it is called the Free Market. If everyone stops using a product written in PHP, then there will be no more engineers demanded who write PHP. Then there will be no more PHP.

And so that is why I will not use Facebook.

Monday, February 28, 2011

Molly Millions

Lets just clear this up:

"Molly is based on the way Chrissie Hynde looked on the first Pretenders Album." -- William Gibson, Cody's Books, Berkeley 1999.