Your Coding Teacher
372 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
One-liner to copy a string in C: while ((*s++ = *t++) != '\0');
Problems that start with: "find" - The first n elements that - All ways to - In how many ways - The n-th - The most optimal way - The minimum/maximum/shortest path Are potential candidates for a dynamic programming solution
Procedural programming is a programming paradigm, based on the concept of the procedure calls: a type of routine that contains a series of steps to be carried out Some procedural programming languages include Fortran, ALGOL, COBOL, BASIC, Pascal, C and Java
๐Ÿ”ฅ๐Ÿ”ฅWe just reached 20 members in this channel๐Ÿ”ฅ๐Ÿ”ฅ

Feel free to introduce yourself and leave comments in my messages.

This is the point of the channel, to have conversations, ask questions, interact, etc
Small-talk was developed in 1972 by Alan Kay, Adelle Goldberg and Dan Ingalls at Xerox Smalltalk was the first language to popularize object-oriented programming (Simula 67 was the first language to introduce OOP concepts). 'Hello World!' printNl !
Design patterns in 1 tweet Builder. Separates object creation from its representation Ex: Have the flexibility to build them like this (Java) Meal m = new MealBuilder.setMainCourse(mainCourse).setDrink(drink).setX()... .build(); Instead of a cascade of constructors
IAM in GCP & AWS: - Service account~IAM role & instance profile - User identity: managed outside VS inside IAM - Policy: list of bindings (members to a role) VS list of permissions in JSON - (Predefined) Set of permissions: (Predefined) Role ~ (Managed) Policy
Google Cloud encrypts data both: - At rest (data stored on disk) and - In transit (data traveling in the network) using AES implemented via Boring SSL.
C Program to count elements. Can you find the bug? for (i=0; i<numRows; i++) for (j=0; j<numCols; j++); numElements++;
"In man-machine symbiosis, it is man who must adjust. The machines can't." - Alan J. Perlis
"Your obligation is that of active participation. You should not act as knowledge-absorbing sponges, but as whetstones on which we can all sharpen our wits" - Edsger W. Dijkstra
Design patterns in 1 tweet Adapter: Match interfaces of different classes Ex: a charger that can connect to a power plug in India (interface 1) will need a power adapter to connect to power plugs in the UK (interface 2). The charger (class) does not need to modification
๐ŸšจDuring ๐™ฉ๐™๐™ž๐™จ ๐™ฌ๐™š๐™š๐™  ๐™ค๐™ฃ๐™ก๐™ฎ I have some time again for 30 min or 1 hour mentor calls๐Ÿšจ You'll progress faster with: - Programming - Interview preparation - Algorithms & Data Structures - DevOps - Your career Or any topic you want to get personalized advice DM me
Your Coding Teacher pinned ยซ๐ŸšจDuring ๐™ฉ๐™๐™ž๐™จ ๐™ฌ๐™š๐™š๐™  ๐™ค๐™ฃ๐™ก๐™ฎ I have some time again for 30 min or 1 hour mentor calls๐Ÿšจ You'll progress faster with: - Programming - Interview preparation - Algorithms & Data Structures - DevOps - Your career Or any topic you want to get personalized advice DM meยป
Design patterns in 1 tweet Chain of responsabily: Pass a request through a chain of objects Ex: Exception handling in Java. If method X can't handle an exception, it will pass it up the chain to the method that called method X
2 ways options to define startup scripts in GCP: - When you are creating your instance in the Google Console, there is a field to paste your code - Using the metadata server URL to point to a script stored in GCS This latter is preferred.
Document and graph databases don't enforce a schema But applications usually assume some structure, which brings the question: If schemas are defined explicitly (when writing) or implicitly (when retrieving data) Are they really "Schema-less"?
Thinking you can learn coding/data science by watching someone else do it in a tutorial Is like thinking you will get abs by watching someone else work out.
Design patterns in 1 tweet Facade: abstract complex operations behind a simple interface Ex: when you buy something at Amazon, you see an interface that hides all the complexity behind it: warehouses, deliveries, payments, suppliers, etc.
CAP theorem Out of these 3: - Consistency: reads the most recent writes - Availability: all request receive response - Partition tolerance: ~ network failures YOu can only pick 2. Network failures are guaranteed, so it boils down to: Consistency or availability?