Posts

Showing posts from September, 2020

Batch programming

@echo off echo Hello master. timeout 2 >nul echo I am setting up the system ...just give me 5 sec timeout 5 > nul start C:\"Program Files"\JetBrains\"PyCharm Community Edition 2020.2.1"\bin\pycharm64.exe start C:\"Program Files"\JetBrains\"IntelliJ IDEA Community Edition 2020.2.1"\bin\idea64.exe start www.blogger.com start www.youtube.com echo SETUP COMPLETE. timeout 2 >nul echo System is all set Master, Happy Working :) pause >nul ABOVE CODE OPENS UP APPS & LINKS --------------------------------------------------------------- Useful sites :   https://www.text-image.com/convert/ - Can be used to create TEXT IMAGES  1] Contains all Batch Commands - https://ss64.com/nt/  (A - Z of batch ) 2]  Contains most used Batch commands - http://www.trytoprogram.com/batch-file-commands/ 3] Insane things to do : https://securitydiaries.com/11-insane-things-can-batch-programming/ 4] Delays in batch file :  https://www.robvanderwoude.com/wait.p...

Clean Code Notes

Image
Book link: https://drive.google.com/file/d/152TG4Qg8r4Vcw0utQuTbWN-zed8gJiwm/view Chapter 17 : Smells & Heuristics- IMPORTANT  MEANINGFUL NAMES :  1] Choosing good names takes time but saves more than it takes. So take care with your names and change them when you find better ones. 2] Names should be meaninful , pronouncable and explain why they are created. 3] Class and Object Names should be a Noun and never a Verb . eg - customer , manager etc 4] Method names should be a Verb. eg - postpayment() , savepage etc 5]  Pick one word for one abstract concept and stick with it. For instance, it’s confusing to have fetch, retrieve, and get as equivalent methods of different classes. 6] Don’t be afraid to make a name long. A long descriptive name is better than a short enigmatic name. ----------------------------------------------------------------- FUNCTIONS :  1]  The first rule of functions is that they should be small. 2] A FUNCTION SHOULD SHOULD DO ONE THING...