/dev/null

Elite is stupid. Back to the roots.

August 24, 2010

Cassandra

Tags: , — 03:36

Just one short note, before I go to bed.

At FrOSCon I saw the talk about the NoSQL database Cassandra. The guy was pretty convincing. He also said, SQL joins are slow and cumbersome for some use cases (his example was Twitter). Then his slides showed how nicely Cassandra can provide the same data as some kind of materialized view that is constantly updated after data changes. And how secure the storage is with multiple backups and smart fail-safe mechanisms.

I was impressed.

On the other hand, I am skeptical towards the promisses of the NoSQL advocates. And I normally don’t like any software that runs on Java (see Eclipse), but that’s another story. That kind of stuff sounds nice on the paper, but fails randomly in the real world. Probably because it is too smart and advanced.

Directly after I came back home from FrOSCon, I noticed that certain feeds (like replies to me) show very recent tweets only. Nothing older than about 4 days. The search results page says: “Older tweets are temporarily unavailable.” Oh, really?

Imagine you would use this kind of technology to run a bank: “Sorry, we lost your account transactions. We are sure you had at least 10 dollars on your account, so that is all you can get today. Maybe we find the rest later.”

Hopefully they can restore their fail-safe materialized views. Somebody should convince police and government to use NoSQL databases: “Sorry, we lost your criminal record of the last 20 years. You are free to go.”

I know, most NoSQL databases are not made for banking or even business applications. Friends – for example – are not that important/critical and that’s probably why Facebook, the other big Cassandra showcase project, does not really know how many I have. The number changes frequently by ± 1.

August 20, 2010

The Perfect Development Environment

Tags: — 08:49

This is a reply to http://thinkvitamin.com/dev/the-perfect-development-environment/

Work Setting

I prefer to be alone, with no one walking around, having conversations on the phone or asking questions. And yes, barking dogs are bad while you try to focus on source code^^

If people can not keep their mouth shut, loud music helps a lot. Use the headphones, whenever other people are around.

If you do an on-site consulting job, better not keep the client from asking questions though: This is what he (or she) pays for! Same is true, if you happen to be in the role of a lead developer. There is no way to hide behind your screen(s). Not matter how many you have.

Desk & Chair

I prefer a simple chair. All the fancy furniture didn’t work for me:

And a desk made of real wood, not that crappy and cheap IKEA stuff made of plastic and particle board. No dinning room table, those are usually too high (76cm). Remember that the keyboard/notebook has a certain height too. The perfect desk is 73cm high. I agree it should be simple, without “cubby holes, drawers and cord hiders”.

Monitor Setup

As a freelance developer, I need a lot of space on my desk to draw diagrams and sign my invoices. Or just to put the Amazon Kindle. It’s a good replacement for the obligatory PDF readers or word processors that are open in the background and hold the customer requirements.

There are some scientific results that suggest that any screen larger than 17 inch will decrease productivity. Not sure about that. But certainly I don’t want to move my head all the time to collect information from different screens. I was able to work on a JavaScript project with more than 50k lines of code on a 10 inch netbook without problems.

Mouse & Keyboard

I normally have to use the keyboard built into my ThinkPad, which does it’s job quite well. The best keyboard I ever had was a Cherry G80-3000 with MX gold crosspoint technology and without Windows keys. Those times are gone forever. Everything has to be flat in this century and you can get used to it.

As a PHP/JS/C/Perl developer, you will be happy with a US layout. As a consultant not living in the States, you might want to use a local layout, so that you can easily access non-ascii chars while writing your important business documents.

The best mouse I found so far is the Logitech Basic mouse and it is very cheap at the same time. It is available in gray and black. Perfect.

Minimizing Distractions

I usually outperform other developers, even those with 3 screens, not because I am cool, but because I don’t use Windows when not working on some Office document. This reduces the times when I have to explain my customer or co-worker that “it does not work and I don’t know why”. Also it’s easy to get rid of 3D effects, playful window borders and desktop widgets that distract you. Skype looks less like a computer game too, but works equally well. The UMTS modem works every time, not not just every second time (if it fails, you will see a meaningful error message). There is no need to think a lot about which applications to use and there is a standard way for pretty much everything. Last but not least most servers run Unix too, so you don’t experience those strange “file not found” problems after the code was deployed to the production environment. Windows isn’t case sensitive.

System Shortcuts & Project Management

You normally have 3 or 4 windows open that matter:

  1. the console (to run the unit tests and do svn/git commits)
  2. the text editor (gedit)
  3. the Web browser (2 tabs, one with the app and one with google open to search for documentation)
  4. and maybe GIMP (if you work on graphics too) or Skype for talking with other people about the project

Remember that we outsourced requirements documents to the Kindle or real paper where you can scratch around.

Those windows fit into any task bar, even on small screens. You don’t want to see your desktop wallpaper, while you’re working. Maximize your windows and use the full space available (Mac users will complain now, as far as I remember).

Tortoise SVN is crap, but the best you can get on Windows, I guess. Better use the command line applications on Unix. If you do Open Source or want to be cool, you use git and tell all your friends that svn is bad.

IDE & Other Programs

Most editors fail when working on large projects. Eclipse (also known as Aptana, Zend Studio, PDT) used to have a CSS editor that was so slow, that it took several minutes to open large CSS files. The memory management did not work really well – eventually I found a garbage collection plugin, which added small trash button in the bottom right corner that I had to press every time, the memory usage went to high (WTF!?). Just today I enabled the option “insert spaces for tabs”, pressed the tab key and it inserted a… tab. Crap.

Besides those annoyances, the Eclipse file/folder tree does not update automatically and the SVN plugin (there are many with different bugs to chose from, right?) seems as waste of time compared to the straight forward usage of the default command line tools.

Therefore my recommendation is to use gedit, the default editor that comes with Gnome. It’s only downside is that it can not save files on SMB shares (VirtualBox shared folders) because of a bug, and that really is the only reason for me to use Aptana from time to time.

gedit’s major features:

  • It is stable
  • You see the character on the screen, directly after you pressed a key (no delay)
  • You write nice looking code that is readable, even without additional tools, filters and beautifiers
  • The file/folder tree updates automatically
  • Syntax highlighting for JavaScript, PHP and other languages
  • Automatic indentation
  • UTF-8 is default – you never accidentally break the encoding again and get hurt by your co-workers for this
  • Low memory usage
  • The save button works every time (not true for Eclipse, as I had to find out painfully)
  • It doesn’t occupy a lot of the valuable space on the screen

And yes, it can use plug-ins and you can write your own, if you feel something is missing. I am happy with how it is.

Conclusion

I don’t know.

January 29, 2010

The new Apple iPad

Tags: — 12:08

Bulky iPhone

February 18, 2009

Do not

Tags: — 15:50
    reverse_and_create : function(files){
        var sorted = [], instances =[];
        for(var id in files){
            sorted.push(files[id])
        }
        for(var i = 0; i < sorted.length; i++){
            if (sorted[i].id) {
                instances.push(this.create_as_existing(sorted[i]));
            }
        }
        return instances;
    },

    do_not_reverse_and_create : function(files){
        if(files != undefined){
            var instances =[];
            for(var i = 0; i < files.length; i++){
                if (files[i].id) {
                    instances.push(this.create_as_existing(files[i]));
                }
            }
            return instances;
        }
    } 

What a shame!

December 25, 2008

Merry Christmas!

Tags: — 15:45

September 4, 2008

Dolphin Submarine

Tags: , , — 14:48

How cool is that?

September 3, 2008

Google greift Microsoft an

Tags: , , , , — 19:14

Q: Wenn ich den Links zum der Browser-Crash Demo Folge, dann brauch ich
bei der letzten Seite nur noch mit der Maus über den “HERE” – Button
zu fahren und mein ( mit allen Updates versehenes ) Vista friert
sofort vollständig ein… Spricht das jetzt eher gegen Google oder Microsoft..? :-)

A: Der Tenor nach der Veröffentlichung des Browsers lautet doch: Google
greift Microsoft an. qed.

Aus dem heise forum

September 2, 2008

About Internet Explorer 8 Beta

Tags: , , , — 18:50

“Consuming twice as much RAM as Firefox and saturating the CPU with nearly six times as many execution threads, Microsoft’s latest beta release of Internet Explorer 8 is in fact more demanding on your PC than Windows XP itself, research firm Devil Mountain Software found in performance tests.”

“We finally found something that sucks more CPU power than Crysis.”

Found on Slashdot

September 1, 2008

Java Recruiting

Tags: , , , — 19:20

From http://ask.slashdot.org/askslashdot/08/09/01/1246201.shtml:

  • Recruiting for Java posts is a minefield – it’s full of people who should be stacking shelves in a supermarket.
  • If you want a Java job, just update your resume to say that you know Java. I have met lots of J2EE experts at work, who would not be able to code a “Hello World” program, if their jobs depended on it. Also learn lots of buzz words.

May 20, 2008

Google Health is there!

Tags: , — 13:59

Now, you can share your sensitive information about the following with Google (I got the list from the authorization agreement on google.com):

  • HIV or AIDS
  • Mental illness or any mental health condition
  • Alcohol or substance abuse
  • Sexually transmitted diseases
  • Pregnancy
  • Abortion or other family planning
  • Genetic tests or genetic diseases

Isn’t that exactly what we’re all after? I think I will add Alcohol, HIV and Pregnancy to my profile and see what happens *lol*

Maybe I can combine Google Health with Google Analytics and see if the visitors to my blog share the same “health condition”…

My Google Health Profile *lol*

See also:

http://www.nowpublic.com/tech-biz/google-wants-your-medical-records-and-more

Older Posts »

Powered by PHP, Memcached, Suhosin, MySQL and WordPress