@lyse@lyse.isobeef.org would it work wit cats instead? there has been a whole flock of them in the neighborhood the last couple of days, one female and a gazillion males taking turns š ā¦ at least theyād be good for something other than their non-stop after midnight opera š
?
operator in Go š No. For so many reasons.
@prologic@twtxt.net Which one? I donāt mind the ternary operator at all. In fact, I often find myself missing it in Go. I donāt find the two alternatives particularly elegant:
foo := "eggs"
if bar {
foo = "spam"
}
Or:
var foo string
if bar {
foo = "spam"
} else {
foo = "eggs"
}
To my eye, this just would look a lot nicer:
foo := bar ? "spam" : "eggs"
Or at least as the Pythons do it:
foo = "spam" if bar else "eggs"
The ternary operator especially shines with relatively short expressions.
@arne@uplegger.eu Ohjemine, TYPO3! O_o Lass mich schreiend davonlaufen!
Mit dieser absoluten Katastrophensoftware vor dem Herrn haben wir mal ein Studienprojekt gemacht. Die hat alle Vorurteile komplett Ć¼bererfĆ¼llt. Angefangen von Fehlerseiten, die statt 4xx oder dergleichen immer mit HTTP 200 ausgeliefert wurden oder auch, dass das generierte HTML leider einfach ungĆ¼ltig war. Ćber die Implementierung von Lƶschen durch einen Deleted-Schalter in der Datenbank, das Speichern von Passwƶrtern im Klartext bis hin zu vƶllig umstƤndlichen Bedienungskonzepten. Alles hat immer brutal viele Schritte gebraucht. Das Zeilennummernrumgeeier im TYPO-Script erinnerte eher an Basic. Uns kam es auch so vor, als ob man damit nicht ernsthaft was sinnvolles machen kƶnnte.
Zu allem Ćberfluss hatte irgendwer noch ein ganz hundsmiserables Buch ausgegraben, das als Vorbereitung dienen sollte. Ich kann mich zum GlĆ¼ck weder an den Titel noch den Autor erinnern, aber ich weiĆ noch, wie das komplett inkonsistent geschrieben war. Anfangs gabs mehrere Seiten zu Unicode und UTF-8 wurde angepriesen, aber alle Beispiele haben dann auf ISO-8859-1 gesetzt. Gezeigter Beispielcode war hƤufig unterste Schublade. Selten hab ich so merkwĆ¼rdige ErklƤrungen gelesen: āWenn Sie die Sicherheitswarnhinweise stƶren, kommentieren Sie doch bitte im Quelltext die die()
-Funktion in $ZEILE
aus.ā Oder ein anderer Klassiker: āAusgeschrieben wĆ¼rde der Code wohl folgendes tunā¦ā. War sich der Autor also nicht ganz sicher, ob sein Codeschnipsel vllt. doch in Wahrheit was ganz anderes tut.
Seit diesem gigantischen Trauma (das hat mich wirklich sehr nachhaltig geprƤgt, wie man Dinge nicht machen sollte) hab ich erfolgreich einen Bogen um das TYPO3-Universum gemacht.
Ich kann nur hoffen, dass es zwischenzeitlich ein wenig besser geworden ist. Aber Deinem Kurzbericht zufolge scheint da ja immer noch der Wurm drin zu sein. Mein Beileid! :-(
@movq@www.uninformativ.de Thatās an interesting setup! What MUA do you use?
4 steps to building a natural language search tool
Empowering humanitarian action with open source: A natural language search tool for UN Resolutions.
The post 4 steps to building a natural language search tool appeared first on The GitHub Blog. ā Read more
@movq@www.uninformativ.de So, the building renovation finally started?
@movq@www.uninformativ.de Thanks this is good to digest š
Rats! @aelaraji@aelaraji.com, you need an emergency hamster and a wheel attached to a bicycle dynamoā¦
Fingers crossed that this doesnāt happen a third time today.
@prologic@twtxt.net I know the feeling. š
@prologic@twtxt.net Hmm, my workflow looks like this:
- My public server receives mail.
- Either my desktop PC or my laptop fetches new mail (via mpop) into a maildir.
- That maildir gets synced to other machines via unison (I used Git for that purpose for 13 years, unison is a bit faster).
Sending mail works similarly:
- One of my machines sends mail (via msmtp) and stores it in the maildir.
- unison syncs that to other machines.
What I like about that is that I donāt have to keep the mail files on my server. If my server crashes (never happened so far), I can upload a new blank OpenBSD image and use config management to set it up. I actually donāt make backups of my mailserver/webserver. š
Regarding IMAP, well, I donāt actively dislike it (other than our server at work being very, very slow, but thatās probably not IMAPās fault). Itās more that I donāt have a need for it. š¤
If people just wrote error free code to begin with, there would be no need for error handling! :-P
No, honestly, I donāt think that there is anything wrong with the current approach. I donāt see any wins of any of the proposals Iāve come across.
PS: Please forgive me. Iām just being a really grumpy bastarda the last couple of days. Iām really not having a lot of fun this past week š¢
@xuu@txt.sour.is And youāre right, it only really saves a single line. I think Iāve even commented on a similar discussion a few years ago as well where I showed concretely the abrustdity of the community wanting to change this. If I recall, the whole pattern of:
if err != nil {
...
}
basically accounts for <1-3% of your codebase in the first place.
The entire thing (fuss) is really just pathetic IMO.
@xuu@txt.sour.is Iām not necessarily saying it is to be bluntly honest. But itās far better than this ?
garbage. I donāt want to be rude, but honestly wtf is wrong with people and making languages harder to read?! š¤¦āāļø
hmm this would convert down to:
var f os.File
if f, e = os.Open("foo.txt"); e != nil {
log.Fatal("error opening file; %s", e)
}
im not sure if its much better.
I want to propose my own counter-proposal to the discussion thatās ongoing with Go and error handling.
Here it is: https://docs.mills.io/ix4qDHMnQUSPxZ5tXz12Vg?view
Itās very rough and needs much more work, but essentially I want to propose the following change to the languageās grammar:
f := os.Open("foo.txt") or (e error) {
log.Fatal("error opening file; %s", e)
}
Second power outage since this morning! yeeeey š„³ Iām not mad at all ā¦ not even a little bit. might end up throwing a monitor out tha window for sports, but no, it doesnāt mean that Iām madā¦ Nooooo, weāre all Gucci over here š§
@skinshafi@thunix.net Haha š
šÆļøš°
The purpose of this paper is to characterize simple sabotage, to outline its possible effects, and to present suggestions for inciting and executing it.
Sabotage varies from highly technical coup de main acts that require detailed planning and the use of specially-trained operatives, to innumerable simple acts which the ordinary individual citizen-saboteur can perform. This paper is primarily concerned with the latter type. Simple sabotage does not require specially prepared tools or equipment; it is executed by an ordinary citizen who may or may not act individually and without the necessity for active connection with an organized group; and it is carried out in such a way as to involve a minimum danger of injury, detection, and reprisal.
You scared me! š¤£
@skinshafi@thunix.net Argggg! š±
Bo! š»
yes it is! although, Iāve only used it to send files and links back and fourth between devices xD none of my relatives wanted to give it a try, which is kinda fair enough (I wouldnāt use WhatsApp if they asked) xD
@doesnm.p.psf.lt@doesnm.p.psf.lt Huh? š¤ Iām curious to what other features youād want from a messaging app! Also, you can easily send in a couple of feature requests, the dev is pretty receptive š
Just leaving this book here for no reason š¤«
@movq@www.uninformativ.de Interestingā¦ š§ Can you elaborate on why and your workflows? š
Iām not a fan of IMAP (I donāt want my server to create/keep data)
?
operator in Go š No. For so many reasons.
@lyse@lyse.isobeef.org Ita a terrible operator that makes code hard
Yo read as @kat@yarn.girlonthemoon.xyz difhtidu points out š
So glad I decided to move my projectās off GitHub š¤£
Oh the ****ing irony š¤£ with all the IP infringement AI models usually do, and the companies are like ānothing to see hereā!
Reading āManās search for meaningā by Viktor E. Frankl
Yet another internet outage. Getting more and more of those. š
@arne@uplegger.eu Hahaha! :-D
@lyse@lyse.isobeef.org FWIW, Iāve been using Martin Lambersā mpop/msmtp for ages now without issues: https://marlam.de/
Iām not a fan of IMAP (I donāt want my server to create/keep data), but at work I use isync: https://isync.sourceforge.io/
?
operator in Go š No. For so many reasons.
@kat@yarn.girlonthemoon.xyz You mean the ?
as suffix for boolean returning functions or as ternary operator (condition ? true_value : false_value
)?
Interestingly, I just had to look up the first case. I was under the wrong impression that the question mark at the end would be some shortcut for chained function or method calls that handles 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.
@kat@yarn.girlonthemoon.xyz Haha, I see. :-)
Even after fixing yesterdayās mail server TLS certificate renewal incident (main hostname was not included) my KMail did not want to receive e-mails anymore. I had to restart Akonadi now in order to make this work again. I really should look at mutt one day.
@kat@yarn.girlonthemoon.xyz Do you use a config management system like Ansible or BundleWrap on your servers? (bw is our in-house solution, we started it around the same time as Ansible.)
Today I learned that Jordan Peterson got his start as a public figure answering questions on Quora š
i havenāt talked fandom here much letās change that. i might re-run my DC comics ficathon again. i ran it late december through to the end of february last year and it was fun af even if it moved slowly. kinda wanna run it again but i donāt wanna have to promote it.
?
operator in Go š No. For so many reasons.
@lyse@lyse.isobeef.org one time i saw that operator when working with ruby on rails and i was so confused by it that i got stuck on the same code involving it for 9 hours straight
@lyse@lyse.isobeef.org oh yeah i forgot to mention i changed the domain to pinktape lol! sorry about that! https://pinktape.girlonthemoon.xyz/
@movq@www.uninformativ.de yeah i get so nervous doing version upgrades, this is technically my first time not doing it as a fresh install from a live USB, so iām glad this went smoothly lol. scared to try it for my servers though!
@eldersnake Years?! š
@kat@yarn.girlonthemoon.xyz Glad to hear that. š We run about a thousand Ubuntu installations on servers and updates are usually smooth sailing.
Heute fahren wir auffe Arbeit ein groĆen Update fĆ¼r das CMS der zentralen Webseiten. Hoffentlich geht das alles gut. š±
@lukas@lukasthiel.de No worries š
š Hello @edsfsdfs@we.loveprivacy.club, welcome to We.Love.Privacy.Club, a Yarn.social Pod! To get started you may want to check out the podās Discover feed to find users to follow and interact with. To follow new users, use the āØ Follow
button on their profile page or use the Follow form and enter a Twtxt URL. You may also find other feeds of interest via Feeds. Welcome! š¤
@Prologic@twtxt.net Threema states the findings of that security research are all plugged. Still reading on it. Truth is that my family is difficult to get away from WhatsApp. And yes, I plan to buy them a license key.
@Prologic@twtxt.net Looking at Threema because it is European with servers in Switzerland and it has GDPR conformity, among some other reasons.
Ahh yes, what I like to call āwild wild westā upgrading.š
Felt like that when I upgraded/updated an Arch Linux machine that had been sitting for a couple years unused.