This is about a time somewhere ca. 2006 when I was learning database. I came upon some blog elsewhere which was basically a tutorial about using Hibernate (java based ORM layer). The discussion was about overriding default behaviour with a small POJO which can be used to translate table names to class names. It was a very interesting thing and I caught upon it pretty quick.
The idea was to remove vowels and then remove consecutive repeating characters from table names so that it becomes difficult to people reading the DB directly. The code for example did something like this to a table named "class_schedule_t". First it removes the vowels from it, so the name now looks like this "clss_schdl_t" and then removes consecutive repeating characters from the name making the final name look like "cls_schdl_t".
I was so attracted to this philosophy that I caught on this habit to make variables smaller too in my day to day programming. I even went as far as signing mails with my name shortened to "-nd"!
No comments:
Post a Comment