if err != nil {
...
}
basically accounts for <1-3% of your codebase in the first place.
The entire thing (_fuss_) is really just pathetic IMO.
# I am the Watcher. I am your guide through this vast new twtiverse. # # Usage: # https://watcher.sour.is/api/plain/users View list of users and latest twt date. # https://watcher.sour.is/api/plain/twt View all twts. # https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri. # https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject. # # Options: # uri Filter to show a specific users twts. # offset Start index for quey. # limit Count of items to return (going back in time). # # twt range = 1 196262 # self = https://watcher.sour.is?offset=181938 # next = https://watcher.sour.is?offset=182038 # prev = https://watcher.sour.is?offset=181838
if err != nil {
...
}
? garbage. I don't want to be rude, but honestly wtf is wrong with people and making languages harder to read?! 🤦♂️
? garbage. I don't want to be rude, but honestly wtf is wrong with people and making languages harder to read?! 🤦♂️
var f os.File
if f, e = os.Open("foo.txt"); e != nil {
log.Fatal("error opening file; %s", e)
}
var f os.File
if f, e = os.Open("foo.txt"); e != nil {
log.Fatal("error opening file; %s", e)
}
f := os.Open("foo.txt") or (e error) {
log.Fatal("error opening file; %s", e)
}
f := os.Open("foo.txt") or (e error) {
log.Fatal("error opening file; %s", e)
}
Camioneta de uma empresa chamada Balerma
Camioneta de uma empresa chamada Balerma
Camioneta de uma empresa chamada Balerma
AD 26%, PS 24%, CH 14%, IL 3%, CDU 2%, BE 2%, L 2%, PAN 1%, OUTROS 1% Brancos/Nulos 2%; NS 16%; Não Votaria 6%
AD 26%, PS 24%, CH 14%, IL 3%, CDU 2%, BE 2%, L 2%, PAN 1%, OUTROS 1% Brancos/Nulos 2%; NS 16%; Não Votaria 6%
? as suffix for boolean returning functions or as ternary operator (condition ? true_value : false_value)?nil return values in a graceful way without actually dereferencing and thus crashing. I probably never wrote more than 30 lines of Ruby in my entire life. Must have been some other language.
Bildschirmfoto einer Wartungsseite