Its not a tiny fraction!
300 karma · joined October 25, 2018
Its not a tiny fraction!
https://news.ycombinator.com/item?id=18430031
Still doesn't convince me to swap my 8 core ryzen 1700 laptop with 32gb ram and 1.5tb ssd and a RX580 for an ipad pro.
1. Their new keyboards are terrible, and are buggy. 2. Lack of headphone jack on phones. 3. Vast price increases for relatively little new features. 4. Constant upgrading of the OS which breaks half of the software you use.
Forget about email addresses, the network should scale globally from the user's public key that can be stored on any number of nodes as the user id with the data.
State management solutions like redux; nobody i know or have seen does it exactly the same, its really tricky to use and takes a long time to get the hang of.
ie. Chrome
All i needed to read :)
Use init() to compile any regular expressions and store them as variables within that package, so that you don't
Split out related code in a folder, remembering that the included code is done in alphabetical order - so shared functions within the same package you should alphabetically make it the first to be included.
You can register components of a larger system by using the init() function to call a function in the base package, and within the calling package (usually main) import the "plugin" using the underscore space prefix (sql database drivers use this method)
Use the new go modules system; its great. But sometimes it doesn't include the latest packages, just modify the go.mod file and anything after the package name remove it and just put master instead.
One last thing with error handling. Everybody does if err!=nil. I tend to go the opposite way, if err==nil and nest these, if err isn't nil i drop out and deal with the error. If it is ok, it will return ok.
There is no difference whatsoever between the same function duplicated with different types.
Most people are totally confused by generics, i personally don't have a problem using them or not. At the end of the day, its just template metaprogramming.