Category: Coding
-
Don’t write comments in the code!
in CodingHold Your Horses: Why Comments Aren’t Always King Comments are like sprinkles on your code sundae. They can add a bit of flavor and make things prettier, but you don’t want a codebase buried under a mountain of them. While comments are ingrained in many programmer’s minds, there’s a growing movement towards clean, self-documenting code.…
-
Naming Things in Code
in CodingThis a very short, nice, and simple video for the hardest thing in development: naming things.
-
The Ten Commandments of Egoless Programming
in CodingThey were originally established in Jerry Weinberg’s book The Psychology of Computer Programming:
-
Compile GO code in Windows for a Debian server
in CodingCompile GO code in Windows for a Debian server I have been learning Golang recently, and came to a point where I needed to deploy my app to a Debian server to test. I had created a simple API. In order to compile the app for Linux, I followed these steps: Set GOOS env. variable to…
-
Visual programming with hardware and Node-RED
A good podcast about node-red from the creators. JS Party 95: Visual programming with hardware and Node-RED – Listen on Changelog.com
-
O(1): random access to an…
in CodingO(1): random access to an element in a collection, dependent on indexing O(n): list iterations O(n^2): nested loops on the same collection O(log n): divide and conquer O(n log n): iterations that use divide and conquer O(n!): adding a nested loop for every input you have Resource: @DynamicWebPaige #bigo #big-o
-
Reverse an array
You know there is array.reverse() function, sharing the snippet below just in case wondering how to do it. We iterate half of the lentgh, guess why? #array #typescript #javascript