Superstitiile sunt facute pentru fraieri

Eu nu cred in superstitii. Le consider slabiciuni umane.

Azi dimineata insa nu stiu ce slabiciune am avut eu ca in timp ce ieseam din parcare ma uitam la o pisica neagra de sub o masina de vis-a-vis care urma sa iasa de acolo si ma gandeam o sa treaca prin fata mea sau nu? Nu speriat ci doar curios.

Tot uitandu-ma la masina am zis ca daca pornesc mai repede din parcare si turez nitel motorul o sa o sperii in directia opusa :)) Partea proasta e ca absorbit de managementul la distanta al pisicii am uitat sa ma asigur exact cand venea o masina (eram parcat pe partea stanga a unei strazi cu sens unic) care a franat de a blocat rotile ca sa nu intre in mine. (nu avea loc pe strada sa ma ocoleasca)

A oprit in dreptul meu, m-am tras inapoi in locul de parcare ca sa treaca, s-a uitat urat la mine dand din cap (il inteleg, avea toata dreptatea), mi-am cerut scuze cat am putut si a plecat. Nu a claxonat, nu a injurat, nu a facut semne cu pumnul, nu s-a dat jos din masina. Si-a revenit din sperietura si pur si simplu a plecat mai departe.

Ce am inteles eu din toata povestea?

1. E exact cum se spune, superstitiile au eficienta doar cand crezi / te intereseaza de ele. Te doare in guler de ele => nici nu exista.

2. Exista oameni calmi si normali pe lumea asta 🙂

Sfatul meu : Bagati-le in ma-sa de superstitii !!!

Publicat în Auto, Greşeli, Viaţă. Etichete: , , . 6 Comments »

.NET Framework – stiri

Nu mare lucru, au schimbat sigla. Din :

.NET 3.5 Logo
.NET 3.5 Logo


.NET 4.0 Logo
.NET 4.0 Logo

Sincer mi se parea mai ok cea veche.

Pe de alta parte deja este anuntat .NET Framework 4.0 pentru 2010. Mai multe puteti citi aici.

In mare vom avea mai mult suport pentru utilizarea tuturor procesoarelor logice (fizice si core-urile lor) fara prea multa bataie de cap. PLINQ este un exemplu la indemana. In rest tot ce nu a apucat sa intre in .NET 3.5 SP1 va intra in 4.0 si vom avea mult mai mult suport pentru depanarea bug-urilor greu de reprodus si managementul vietii unei aplicatii (ALM).

Amuzament matematic

Be rational ! Get real ! (Math fun)

Be rational ! Get real ! (Math fun)

Publicat în Haioase, Tehnica. Etichete: , . 2 Comments »

Cum sa scrii cod nementenabil – demential

Pe citeam (varianta beta – cea oficiala va iesi pe la mijlocul lui Septembrie (2008)) despre ce articole considera cititorii drept cele mai utile pentru cariera lor de programatori. Ei bine am dat de un articol recomandat care sincer mi s-a parut demential!

How To Write Unmaintainable Code scris de Roedy Green.

Este un contraexemplu lung si bine structurat, acopera cam toate prostiile pe care le fac voit sau nevoit programatorii mediocrii si cei prosti. Este o combinatie excelenta intre umor si disciplinare.

In principiu va las sa cititi articolul original, la adresa de mai sus insa va voi spicui cateva fragmente ce m-au facut sa rad ca prostu’ in fata monitorului pe la 4 dimineata cand il citeam :

O mica introducere asupra scopului lucrarii :

In the interests of creating employment opportunities in the Java programming field, I am passing on these tips from the masters on how to write code that is so difficult to maintain, that the people who come after you will take years to make even the simplest changes. Further, if you follow all these rules religiously, you will even guarantee yourself a lifetime of employment, since no one but you has a hope in hell of maintaining the code. Then again, if you followed all these rules religiously, even you wouldn’t be able to maintain the code!

Apoi ajungem la detalii mai concrete :

Be Abstract
In naming functions and variables, make heavy use of abstract words like it, everything, data, handle, stuff, do, routine, perform and the digits e.g. routineX48, PerformDataFunction, DoIt, HandleStuff and do_args_method.

Ne plimbam prin notiuni mai abstracte iar :

Programmers are lulled into complacency by conventions. By every once in a while, by subtly violating convention, you force him to read every line of your code with a magnifying glass.
You might get the idea that every language feature makes code unmaintainable – not so, only if properly misused.

Conventiile de notare par sa fie un lait-motiv :

Bedazzling Names
Choose variable names with irrelevant emotional connotation. e.g.:
marypoppins = (superman + starship) / god;
This confuses the reader because they have difficulty disassociating the emotional connotations of the words from the logic they’re trying to think about.

Reuse of Global Names as Private
Declare a global array in module A, and a private one of the same name in the header file for module B, so that it appears that it’s the global array you are using in module B, but it isn’t. Make no reference in the comments to this duplication.

O chestie pentru care mi s-ar parea normal sa faci puscarie :

Overload new
Overload the „new” operator – much more dangerous than overloading the +-/*. This can cause total havoc if overloaded to do something different from it’s original function (but vital to the object’s function so it’s very difficult to change). This should ensure users trying to create a dynamic instance get really stumped. You can combine this with the case sensitivity trickalso have a member function, and variable called „New”.

O perla permanent valabila :

Clone & Modify
In the name of efficiency, use cut/paste/clone/modify. This works much faster than using many small reusable modules. This is especially useful in shops that measure your progress by the number of lines of code you’ve written.

Traznai nemaiauzite (de mine macar) :

Use Three Dimensional Arrays
Lots of them. Move data between the arrays in convoluted ways, say, filling the columns in arrayB with the rows from arrayA. Doing it with an offset of 1, for no apparent reason, is a nice touch. Makes the maintenance programmer nervous.

Daca nici acum nu v-am convins sa cititi intreg articolul atunci va pot asigura ca ce am pus aici nu e nici macar 5% din ce puteti gasi acolo.

Glume de-ale programatorilor

Two strings walk into a bar. The first one says:
Hello, I’d like some Vodka andytewsr@)W$(#*$&!^Y@)^&30@#!
„You’ll have to excuse my friend,” the second one says, „he’s not null-terminated.”


As soon as she walked through my door I knew her type: she was an argument waiting to happen. I wondered if the argument was required… or merely optional? Guess I’d know the parameters soon enough.

„I’m Star At Data”, she offered.
She made it sound like a pass. But was the pass by name? Or by position?
„I think someone’s trying to execute me. Some caller.”
„Okay, I’ll see what I can find out. Meanwhile, we’re gonna have to limit the scope of your accessibility.”
„I’d prefer not to be bound like that,” she replied.
„I see you know my methods,” I shot back.
She just stared at me, like I was a block. Suddenly I wasn’t surprised someone wanted to dispatch her.
„I’ll return later,” she purred. „Meanwhile, I’m counting on you to give me some closure”.
It was gonna be another routine investigation.
– Dashiell Hammett, „The Maltese Camel”


De ce prefer Java sau .NET

De ce prefer Java sau .NET

VW Passat 200.000 km :)

De curand am ajuns la 200.000 km si tin sa sarbatoresc asta printr-o poza. TDI-urile astea sunt reusite 🙂

VW Passat TDI 200.000 km

Publicat în Auto. Etichete: , , . 2 Comments »

Numere de inmatriculare amuzante

Persoana asta cred ca duce lipsa…