Skip to content

bobby_dreamer

Today I Learned

Date : 02/October/2020

In windows explorer using below expression can find file modified between date ranges.

1datemodified:3/1/2020..5/1/2020

Date : 01/October/2020

Brian Kernighan famously wrote:

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?
— The Elements of Programming Style

Basically states, prefer simple over complex code as complex code may be tedious to debug.


Date : 25/September/2020

There are lot of people who can predict failure than success.


Date : 21/September/2020

Feedback is a gift. Give 1 feedback to each of your team members - James Carter, Sionic

Feedback format

  • One aspect of your contribution, i have valued is :
  • One thing you could do differently would be :

Date : 09/September/2020

After a complete burnout and pressure leading to headache, a long engaging virtual creative session(zoom) just adding points with no compulsion or pressure actually relieved my headache.


Date : 15/August/2020

No point in saving URLs as they are prone to change. Saving content, screenshots and taking notes are the only way.


Date : 17/July/2020

In today's world while building application, think about,

  1. Have a plan that application is capable of running in Physical server or cloud.
  2. Flexible enough to change programming language and framework. When you do it for second time, be sure that doesn't become legacy soon.

Date : 12/June/2020

All this time, i was thinking i had to pull the plug to play these games. Suprisingly there is link for it.

1chrome://dino/
2edge://surf

Date : 24/April/2020

Read this science article and it said

The Volvox species she works with are facultatively sexual, meaning that they choose whether to clone themselves or have sex. When they opt for sex, it’s to improve their odds of survival.

Volvox is a algae and green. I guess piccolo's do that.


Date : 20/April/2020

Archival, quality, deletion of unnecessary data are very important when you are processing lot of data. When you are writing and testing, it might perform well for the input provided, even for full data and also completes in few seconds or minutes, it might be ok at that time, eventually when quantity increases, performance degrades and those seconds & minutes become hours of unnecessary processing. Here, archival is about moving data that need not be processed anymore but required, so its better to move it to history tables, quality is about every field or column, being in up-to-date state as sometimes, the row is processed because of that column and after processing, its still not updated. Reasons could be, that row should have been archived, missed to update that field, updating wrong data to the field. Deletion of unnecessary data, really helps in tablespace scans in the worst case scenario, makes the table active rather than one table having history and active rows. Housekeeping of data is really a important thing and hate to say this, its always ongoing task.

Sometimes progress is not about refactoring the same code, so, its best to think about performance at the beginning, it might not be possible all the times, if you are working in a new technology or new domain. Below are some lessons learnt this week,

  1. Refreshing of whole table is a waste of time, if you are doing it everyday because and only few rows changed. So think about processing/updating specific rows. MQTs(pre calculated tables) are not the answers always
  2. Cleansing data is a everyday process, don't make a habit to do it every day, weekly or monthly is fine
  3. There are always best practices that are proven to work, read about them, test them.

Date : 17/April/2020

Learnt the below technique in python to show the line which caused the exception. By default, when you handle exception, it doesn't show the line number. Now, adding this to all my programs.

1try :
2
3 except Exception as e:
4 print('Failed due to error')
5 print('Exception : ',e)
6 print(traceback.format_exc())

Date : 08/April/2020

Problem being a computer programmer is, your life is so perfect(you think), so you create a problem for yourself and work on solving that problem. It gives a good feeling when you solve it. But its entirely waste of time at some point you might wonder. Problem never existed.


Date : 07/April/2020

Jupyter Notebook - Previously when i try to write a program, i also create lots of small programs to test features, functionality, understanding concepts and finally implement them in the big program with Notebook everthing can be done in one big place and tests go really cluttered and its everywhere, eventually i spend lot of time in deleting cells which should have been in a separate program, as i wrote that for testing and understanding purposes.

Have to learn a approach to avoid this.