Archivi per Ottobre 2008
Did you know?
1
- x 3 = 1
3
1
- = 0.333...
3
0.333... x 3 = 0.999...
...then...
0.999... = 1
Are you searching for the [...]
Just put in my queue:
Getting Real
Today I had an overview of Clean Code, by Uncle Bob. From what I saw today, I perfectly agree on everything, but going in details it will be for sure an enjoyable learn experience. The book is well groomed, with plenty of code samples and amusing comic strips. A pleasure [...]
Shall configuration be bound to the underlying of your application?
0 Commenti Pubblicato da Luigi il 26 Ottobre 2008 in Horror CodeWelcome to anti-refactoring lesson number 4.
Previously I posted about trivial programming errors, stuff for amateur programmers as in last case. Here we go for a more conceptual mistake.
Answer this question: from 1 to 10, how do you think it's smart to bind the name of a configuration property to the internals of your application?
In [...]
Welcome to anti-refactoring lesson number 3.
The "Repetita Juvant Principle" is the counterpart of the DRY principle:
1 @Override
2 public SomeObject getSomeObject() {
3 return super.getSomeObject();
4 }
5
6 @Override
7 public void setSomeObject(SomeObject arg0) {
8 [...]
Welcome to anti-refactoring lesson 2.
There are painters that paint with pencils or brushes and painter that paints with a bucket. A bucket is very effective if you just want a canvas filled. An example:
1 private String prefix;
2 public String getPrefix(){
3 return [...]
It is quite fun when you see an extremely verbose code that can be replaced by two or three lines, just removing useless stuff, or using the correct API. But it is much less fun, when an expert makes a huge refactoring on your codebase covering it of useless crap. It happened to me today [...]
"skilled developers may be able to develop the same functionality with far less code"
--Wikipedia "Source Lines Of Code"
A very simple way to count Physical LOC (Lines Of Code) using Unix tools:
$ cd ${your project dir}
$ find -name "*.java" | xargs wc --lines
A general rule (not always true): the lower LOC is, the better the software [...]
Locking is a technique used for concurrent manipulation of shared data. Locking is not only related to databases: for instance you use locking in Java to synchronize multithreaded access to shared objects residing in memory.
Here I am not going to talk specifically about Java locking or database locking, but only how conceptually locking works on [...]
The secret features of the vi
0 Commenti Pubblicato da Luigi il 16 Ottobre 2008 in Life, universe and everythingColleague: I just got an email
... Title: "The blue wonder - and you can also f**k the girl next to the door"
... Content: some comments about the offer in subject ....
... The best thing about Vi is the safety of flying with autopilot, relaxing and without the necessity of worrying of [...]
How to save 70 euro booking your flight with Lufthansa
0 Commenti Pubblicato da Luigi il 14 Ottobre 2008 in Life, universe and everythingToday I booked a flight to Italy for this weekend with Lufthansa. At the beginning I checked without logging in, and I got a nice price (€251.00). Then I logged in with my miles & more account and I got an higher price (€327.00).
I made some checks, and what I've understood is that the [...]
Cerca
Info
Stai navigando negli archivi del sito NewInstance per il mese di Ottobre 2008.
Gli articoli lunghi sono troncati. Clicca sul titolo dell'articolo per leggerlo interamente.Calendario
| L | M | M | G | V | S | D |
|---|---|---|---|---|---|---|
| « Set | Nov » | |||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
Archivi
- Gennaio 2010 (2)
- Dicembre 2009 (1)
- Novembre 2009 (3)
- Settembre 2009 (2)
- Agosto 2009 (4)
- Luglio 2009 (1)
- Giugno 2009 (2)
- Maggio 2009 (4)
- Aprile 2009 (2)
- Marzo 2009 (7)
- Febbraio 2009 (5)
- Gennaio 2009 (2)
- Dicembre 2008 (1)
- Novembre 2008 (8)
- Ottobre 2008 (12)
- Settembre 2008 (3)
- Agosto 2008 (2)
- Luglio 2008 (6)
- Giugno 2008 (16)
- Maggio 2008 (2)
- Aprile 2008 (3)
- Marzo 2008 (6)
- Ottobre 2007 (1)
- Settembre 2007 (1)
- Agosto 2007 (5)
- Luglio 2007 (6)
- Giugno 2007 (6)
- Maggio 2007 (1)
- Marzo 2007 (1)
- Febbraio 2007 (2)
- Gennaio 2007 (1)
- Dicembre 2006 (2)
- Novembre 2006 (4)
- Ottobre 2006 (7)
- Settembre 2006 (1)
- Agosto 2006 (2)
- Luglio 2006 (6)
- Giugno 2006 (3)
- Febbraio 2006 (1)
- Gennaio 2006 (1)
- Dicembre 2005 (5)
- Novembre 2005 (2)
- Ottobre 2005 (2)
- Settembre 2005 (7)
- Agosto 2005 (2)
- Luglio 2005 (8)
- Giugno 2005 (12)
Categorie
- Books (7)
- Eclipse (10)
- Errors (2)
- Firefox (7)
- Hardware (14)
- Horror Code (8)
- Internet (17)
- Java (85)
- JavaScript (8)
- Life, universe and everything (29)
- Linux (44)
- Mac (18)
- Software (25)
- Speeches and Conferences (8)
- Web (19)
- Windows (16)
Ultimi Post
- Syntactic sugar and Java arrays.
- 3G USB Stick on Ubuntu
- Ipod touch with Linux
- Karmic and Luks: USB drive encryption made (almost) easy
- Suspend/Resume in Karmic /2
- Suspend/Resume problem in Ubuntu Karmic 9.10 running on MacBook Pro 5.1
- MacBook International Keyboard and Linux
- Mighty Mouse: reverse horizontal scrolling workaround on Ubuntu Linux 9.04
- Skype 2.1.0.47 beta released, and amd64 packages available!
- Linux RAM Disks

