Not premature optimization (which is often focused on “clever”/fast solutions, not necessarily more structure), but the tendency to (overly) structure code before it is actually necessary. E.g. having a multitude of files and a directory hierarchy when a couple of flat files would still suffice?
If you have a (computer) mouse with more than 3 buttons (left, right, middle), what actions/shortcuts do you have assigned to the 4th, 5th, 6th etc.? Looking for inspiration.
Edit: Es ist eindeutig in Britz. Am Bauchnabel steht gar kein Baum, sondern dort ist ein Mosaik und die zentrale Stelle des Platzes. Der Baum ist das OpenStreetMap-Symbol für Platz oder Grünfläche. Wenn man durch das kleine Pärkchen läuft, ist das Bild, das die Draufsicht bietet wirklich nicht offensichtlich und scheint (fast) unbeabsichtigt. 🤔
Was just about to do an edit for #OpenStreetMap when I figured that my information is based on almost 20 year old memory of mine. While it is still kinda verifiable with the satellite imagery and data on certain websites … I think it’s better to leave it as it is. :openstreetmap: 👀
Why is it that python code always feels like it needs way less indentation and feels like the logic can be implemented much simpler. Or is it #django that makes this feel like it.
@wolframkriesing Compared to what? JS and Ruby support some expressions that are only possible as statements in Python, so something cannot be done inline/nested. And in general flatter is considered more pythonic, I guess.
(I’m a bit guilty of liking one-expression code with a more parentheses and nesting vs. temporary variables; but not everybody likes that style, which I respect.)
@wolframkriesing Yeah, I can see that. I don’t hate JS’ syntax, but it’s definitely noisier as well, even when not considering constructs that are not possible in Python:
I already knew git commit --amend, but #TIL about git commit --fixup and git rebase --autosquash — convenient, although probably not something I’ll need on a daily basis.
Are “we” still using online (social) #bookmarking services?
I’m still on #Pinboard, which is fine. Tried #Wallabag 😐 … #Shaarli hasn’t seen a release in 2 years… Anything I’m missing? Maybe something Fediverse/ActivityPub-enabled? #FreeSoftware (#selfHosted optional)
[Edit] Thanks for the boosts. Pocket and Shiori have been mentioned. I’m still open for more suggestions :)
Recommended an #SQLite “file” (or “database” ;) as export format for the first time at work.
#JSON or JSONL will probably still work for the use-case at hand (I’m not directly involved, I’ve only heard of 600k-1M records with 20-ish fields each), and I’d be fine with JSON.
But I really really wouldn’t want such data as a #CSV ever again. With all the escaping, overlong lines, and editors choking, CSV, even though technically plain text, it’s not much different from an unreadable blob for me.
Still fascinating how you can make up a pretty short random string, let's say 6 base64-encoded characters, put it in a search engine and you'll probably get 0 results. Meaning it never appeared somewhere on the public web, and likely never anywhere at all. (Add 4 chars to be really sure ;)
Example: y6H88kT
I know the math, and I also know that it will appear somewhere eventually in a b64-encoded representation of Pi. Still, fascinating.
But honestly, I didn't actually come up with it myself. I found the whole toot in π, starting around the 10⁴⁷⁴th decimal digit — had to read through the Finnish edition of Hamlet to get there 🤷
Ok, I gave in and tried to watch the video of the interview with the CEO of the website that shall not be named. Well, I’m not gonna get that three minutes back, am I? (I couldn’t take it much longer, scanned through various parts of the half-hour-or-so.) … it’s … yeah, no, don’t even wanna think about it for this post anymore … 170 characters left. how do I end this? ctrl-enter, right, let's do it 👀 now, come on, brain, come back! and, 3, 2, 1
Bzgl. #37C3-Tickets: warum first-come-first-serve? Das klingt immer so stressig und unfair. Ist ein Verlosungsverfahren zu komplex und/oder zu teuer?
(Ich habe selbst ein paar Pros und Cons im Kopf. Würde aber gern mal von Leuten mit praktischer Erfahrung in so was das definitive Argument gegen Verlosung hören. Frage mich das gleiche bei Die Ärzte- oder Taylor Swift-Konzerten.)