Your Coding Teacher
371 subscribers
10 links
Coding, software engineering & #bitcoin technologies. I'll make you a better thinker, not just a better developer | Ex
Amazon, Senior DevOps @eBay
Download Telegram
The more bizarre the behavior, the more stupid the mistake.
2 common bugs: 1. Uninitialized variables. Ex: int min(int *A, int n) { int sol; for (int i=0; i<n; i++) if (A[i] < sol) sol = A[i]; return sol; } 2. Assignment vs comparison if (x = 5) x== 7; Better: if(5 = x) -> Compiler would complain
Resume tips - Less is more. 2 pages max - Avoid exaggerating. You can get grilled on anything you put on your resume - Focus on what you did. Not your team or your company - Implemented, coded, launched, led, designed >> Helped, contributed, participated
Simple code to solve a complex problem >>> Complex code to solve a simple problem Focus on the impact of your work, not to "look smart" .
Language agnostic coding tips: - Avoid "magic constants" - Avoid uninitialized variables - Make name lenghts proportional to their scope - Name an object to reflect its meaning - Postpone variable declaration as much as you can
"I have always found that plans are useless, but planning is indispensable." - Dwight D. Eisenhower
Design patterns in 1 tweet State: Change the behaviour of an object when its state changes Ex: fan controller. When changing state from level 1 to 2, it increases the rotation speed.
"Talk is cheap. Show me the code." - Linus Torvalds
2 Different approaches for DB storage engines: - Log based: writes are appended to a log file. Ex: Cassandra, HBase - In place updates. Ex: B-trees (used both in relational and NoSQL dbs)
In 1964, BASIC was developed by John Khomeini and Thomas Kurtz The idea was to allow students without a strong background in mathematics to be able to effectively use computers BASIC stands for Beginners' All-purpose Symbolic Instruction Code PRINT "Hello, world!"
AWS 101 AWS physical infrastructure is located in Regions: separate geographic areas. Each region has 2 o more isolated locations known as Availability Zones. By default, resources aren’t replicated across regions.
"Starting a startup is hard, but having a 9 to 5 job is hard too, and in some ways a worse kind of hard." - Paul Graham
COBOL (COmmon Business Oriented Language) originally developed by dr. Grace Murray Hopper in 1958 Common to find running in: - ATMs - Telephone businesses - Business, finance and administrative systems
9 Types of tests: - Unit - Component - System - Integration - E2E - Smoke - Acceptance - Performance - Regression
Our highest priority is to satisfy the customer through early and continuous delivery of valuable software agilemanifesto .org
C++ related concepts - Class and structure are blueprint for objects. Structure elements are public by default while class elements are private. - An object is an instance of a class/structure - Unions can contain different elements, but only one at a time
Linux 101 A distribution is a collection of components that form a system. Hardware -> Kernel -> GNU Core -> X Server -> UI Examples: - Ubuntu - Debian - Fedora - CentOS - openSUSE
Statically-typed languages: the type of an entity (variable, object, ...) is known at compile-time. Ex: - Java - C - C++ - Scala Dynamically-typed languages: the type of an entity (variable, object, ...) is known at run-time. Ex: - JavaScript - Python - Ruby - PHP
Load balancers in GCP vs AWS - Software-based (faster to start) VS run on EC2 instances. - Global VS Regional managed service - URL routing for HTTP vs HTTP & TCP - Can distribute traffic globally VS Only within a region
4 Interview tips - String problems can usually be solved as array problems - Sometimes it's easier to start processing the string/array *from the end*. - Ask if you can modify the input or need to create a copy - If it's a tree question, clarify if it's a binary search tree.