Your Coding Teacher
373 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
Know what version of Python you're using. There are differences. For instance, when dealing with strings: Python 3: bytes contains sequences of 8-bit values, str -> seqs of Unicode chars Python 2: str contains sequences of 8-bit values, unicode -> seqs Unicode chars
HTTP status codes in 1 tweet 1xx: Still processing 2xx: Alles Gut 3xx: Check somewhere else 4xx: Client's fault 5xx: Server's fault
"A year spent in artificial intelligence is enough to make one believe in God." - Alan J. Perlis
Merge sort is a divide and conquer, stable, comparison-based algorithm invented by John von Neumann in 1945 The idea is to split a list into sublists, sort them (recursion) and then merge the sorted lists. Its time complexity is O(NlogN) and space complexity is O(N)
Design patterns in 1 tweet Decorator: Add responsabilities to objects dynamically Ex: in a war videogame, adding accesories to a basic weapon (can be added after creating it)
"Owning a computer without programming is like having a kitchen and using only the microwave oven." - Charles Petzold
Scala was developed by Martin o darsky in 2003 combining functional and object-oriented programming Many its design decisions are aimed to address criticisms of Java object Hello { def main(args: Array[String]) = { println("Hello, world") } }
3 Random coding tips Pay off technical debt Prioritize tasks Don't overlook the details
Big O quick tip Try to remember this pattern: A problem where the number of elements in the problem space gets halved "at each step", will most likely have O(logN) time complexity
"A computer would deserve to be called intelligent if it could deceive a human into believing that it was human."" - Alan Turing
Namespaces are one honking great idea -- let's do more of those! - The Zen of Python
In 2009 Google created Go, also known as Golang to help fix problems that are common at Google where languages like Java and C++ would fall short. Its syntax is similar to C import "fmt" func main() { fmt.Println("hello world") }
Files and processes are the two basic blocs of the UNIX system. In UNIX, everything is a file. Filename are restricted to 255 characters. A process represents a program (a file) in execution.
Hardware is the part of a system you can kick Software is the one you can only curse at
Don't go blind. Use a profiler. "Premature optimization is the root of all evil" - Donald Knuth
"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim." - Edsger W. Dijkstra
Don't code today what you can't debug tomorrow
Friday afternoon? Ship it!
5 JavaScript interview questions What is Scope? What does the new keyword do? What are the falsy values in JavaScript? What is an IIFE, what is the use of it? What's the value of this in JavaScript?
4 Random coding tips Write useful comments Stay humble Don't be afraid to ask for help Keep practicing