open-menu closeme
Home
RetroComp icon
Retro Computing Articles Composition Notebooks 8bit
DevOps icon
Automation K8s Done Right
GenAI icon
Fatlama Newsletter Generative AI
Projects icon
Software Projects Arduino Misterio Esp8266 SQLite
Status
Links icon
GitHub LinkedIn
About
github linkedin rss
  • On Constants

    calendar Oct 4, 2019 · 1 min read
     en humor lang software  · evil ideas java
     ·
    Share on: twitter facebook linkedin copy
    On Constants

    I think constants are evil (just joking but….I will explain why).

    I am tired of seeing a lot of Java classes filled with the same constants repeated over and over again, instead of collecting them in a common file, which in C Language was called include files (ooooah!).


    Read More
  • Comments are evil?

    calendar Apr 14, 2019 · 1 min read
     en lang software  · evil ideas java
     ·
    Share on: twitter facebook linkedin copy
    Comments are evil?

    In the 1980 comments were used to reduce the “gap” between unstructured code and “rationale” behind the code.

    1. C/64 Peek and poke where oscure.
    2. Gosub on function pointed by numbers was bad
    3. 8-bit systems was tight on command names and so on (think to write a python interpreter in Arduino/bbc:Micro, or look at the memory consumed by the COMMAND STRINGS on C/64 Basic v2)
    4. C code was not expressive, but good code required little comment, as you can see here
    Today comments are used to:
    1. Comment obscure code -> instead of writing it better
    2. Comment caching code you will end up to commit breaking production ->instead of having a cache config to disable cache on dev machines
    3. Comment not working code will end up in production, producing functional breaks -> because you will forget it and  commit the bad version
    When I am sent on a Red Project, the code is often obscure and not commented at all. So I dare to suggest to deprecate comments at all, replacing it with a set of meta annotation like:
    @Comment("Documentation of this class/method/function/closure")
    @Fixme("Reason")
    @Todo("Why",  deadline=20230423)
     

     


    Read More
  • Removing duplicate rows in PostgreSQL, Oracle and SQLite

    calendar Jun 15, 2017 · 1 min read
     en knowledgebase sql  · evil oracle postgresql sql
     ·
    Share on: twitter facebook linkedin copy
    Removing duplicate rows in PostgreSQL, Oracle and SQLite

    Sometimes you need to remove nasty duplicate on a table, based on a subset of the column. On every big database there is something called “rowid” which can be used to indentify a column in a unique way. On PostgreSQL is called ctid, as we shall see:


    Read More
  • At last Bing is not so bad

    calendar Feb 7, 2011 · 1 min read
     en software  · bad evil freedom google microsoft
     ·
    Share on: twitter facebook linkedin copy
    At last Bing is not so bad

    I have used Google in the past 8 years (I know, I am a bit old). Then I was annoyed because of a bad behavior of Google with my AdSense account (shutdown without being able to talk back to someone for explanation).


    Read More
  • The Project Manager

    calendar Jun 28, 2006 · 1 min read
     blog-objectsrootcom en  · ant evil fini java linux programming project steve trouble ui vi
     ·
    Share on: twitter facebook linkedin copy
    The Project Manager

    Steve is not a normal solution provider.
    Steve is the final destination for Project Management troubles.

    Let's see how Steve can solve problems

    The Ten Steve Rules

    1. If you have a customer you can get my attention
    2. If your project is run out of time and you need to finish the product yesterday, you will face a disaster. Call me
    3. Cannabis programming is too light
    4. You cannot offer a Lunch to Steve, unless you have four ticket resturants and at least one more for you
    5. Are you saying you need more time to finishing the use case? These are details. If you cannot get it in the required time, I will fire you (Loading a gun): in the real sense.
    6. Peace and calm are an useless evil.
    7. True Metal Hackerz get the work done in less time then you
    8. Linux has a a cold bird as Logo. This is enought to kick it off the project.
    9. I prefer Illy over Java, sorry
    10. There isn't a tenth rule

Recent Posts

  • Arduino Q da far crescere
  • Postgres Take it All
  • La ruota del Destino
  • Darth Android
  • Vps Provider
  • Chat
  • RSS Readers

Latest comments

    Giovanni Giorgi

    Copyright 1999-  GIOVANNI GIORGI. All Rights Reserved

    to-top