Skip to content

Instantly share code, notes, and snippets.

View thamaraiselvam's full-sized avatar
🐼
Inner Peace

Thamaraiselvam (aka) Tham thamaraiselvam

🐼
Inner Peace
View GitHub Profile
Boy Scout Rule:
Always leave the codebase cleaner than you found it
Code Smells:
It is not a bug but hint of problem that makes your code difficult to understand, extend or maintain
Types:
1.Long Method
Method that does multiple things(Againts SOLID Principles)
Morning Session:
Debug Applications faster:
☐ Angular -> Debug via Chrome Dev Tools
☐ NodeJS -> Auto Attachment
Angular :
Component Communication:
☐ Parent -> Child Via @Input
☐ Child -> Parent Via @ViewChild
☐ Child -> Parent Via @Output EventEmitters
@thamaraiselvam
thamaraiselvam / MEAN Stack Cheat Sheet.md
Last active July 2, 2019 11:21
This is my MEAN Stack cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

MEAN Stack Cheat-Sheet

Those who want to become a Full Stack Developer their first choice is MEAN Stack because it has a lot of scopes and easy to learn as well but preparing is hard so Here's a Cheat Sheet - Inspired by The Technical Interview Cheat Sheet.md

Cheating

This list is meant to be both a quick guide and reference for further research into these topics. It's basically a summary of important topics, there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

What the heck is MEAN Stack

Introduction:
☐ What is Angular?
☐ Why is Angular?
Start:
☐ How to Install?
☐ How to create App?
☐ How to run App?
Architecture:
OOP concepts - DONE
Class, Constructors, Inheritance/asbstract, Extendable, Methods, Typescript - DONE
Database:
RDBMS:
Queries , Joins, Normalization, Advantages, Disadvantages
Mongo Queries, Replica set, Sharding, Advantages, Disadvantages
Difference between mysql no sql
online nosql services
elastic search
Pair programming
- State what you know
- Ask questions
- Start Simple
- Should be extendable
- Write tests
Data structure
-------------------
tree ( Eg: Filesystem tree, PATH /usr/home/tom)
MongoDB Design patterns based on application usage perspective:
The scheme depends on your application use case
Data Access Patterns
Number of reading vs update
what is the size of expected documents
Performance issues in MongoDB:
Schema Design:
{
@thamaraiselvam
thamaraiselvam / Install atom
Last active November 9, 2018 21:15
Setting up Atom with WordPress and useful PHP packages
Base
Install atom here https://atom.io/
Install atom-ide-ui and ide-php packages to make atom to Atom PHP IDE
Theme
I love Monokai theme its really good in both sublime and atom
Go to install themes -> monokai -> install
Go to installed themes -> UI theme -> One Dark -> Syntax theme -> Monokai
@thamaraiselvam
thamaraiselvam / nginx.conf
Created June 19, 2018 11:23
Working Nginx + Multisite + localhost + linux configuration
server {
##DM - uncomment following line for domain mapping
#listen 80 default_server;
server_name dev.multisite.com;
##DM - uncomment following line for domain mapping
#server_name_in_redirect off;
@thamaraiselvam
thamaraiselvam / git.txt
Created April 17, 2018 10:33
How to change author name/email for past commits
git filter-branch --env-filter '
WRONG_EMAIL="wrong@example.com"
NEW_NAME="New Name Value"
NEW_EMAIL="correct@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi