Sabitlenmiş Tweet
Robin Stocker
2.6K posts

Robin Stocker
@niborst
Backend Dev @ Canva – ex Atlassian, Rust, open source, Swiss living in Australia https://t.co/K2enhGaIHz https://t.co/w0fXwFHW0A
Sydney Katılım Temmuz 2010
351 Takip Edilen414 Takipçiler

@headius @detoklastah Also, you can’t return an existing object instead, e.g. a static “empty” one.
English

@detoklastah In Java, the standard new MyThing() forces two limitations on you. First, that the resulting object must be exactly a MyThing... a subclass is not acceptable. And second, that the instantiation logic forever live in a MyThing constructor and match the incoming arguments exactly.
St Paul Park, MN 🇺🇸 English

Public constructors continue to be the worst long-term choice when designing a Java API. They forever bind you to a single specific way to instantiate and initialize. Prefer simple factory methods (e.g. Ruby's Class#new) that can be reimplemented and overridden.
English

@suburban_melb Nice read! +1 for PIDs, in Switzerland even buses show next stops and connections.
Also, fact check: Zurich has double decker suburban trains: en.m.wikipedia.org/wiki/Zurich_S-…
English

I was in Sydney and rode everything* - metro, light rail, ferries, even a replacement bus - here’s my slightly chaotic, deeply opinionated transit diary 🚅💅
open.substack.com/pub/highcapaci…

English

@jwrowls @SydneyMetro Haha. At Central the platform screens were just empty. The one at Martin Place was like this for a bit.

English

@niborst @SydneyMetro 100%, makes no sense at all. Not to mention “change at Barangaroo” - change from what? To what? How do you GET to Barangaroo? Is it even possible to change or are we predestined to be however we are?
English

TIL about text fragments, to link directly to some text on a website (without there needing to be an ID):
developer.mozilla.org/en-US/docs/Web…
English

And here's the pull request that added it: github.com/openjdk/jdk/pu…
English

@boyter +1. I like to have explicit JSON property name annotations, even if they could be automatically inferred from the code (e.g. foo_bar from fooBar).
English

morizbuesing.com/blog/greppabil… making code greppable is one of the reasons I embed unique codes into logs, so I can find what spat out the error very quickly.
English

Just used `git restack` for the first time after doing a `git commit --amend`, and it just worked :chefkiss:
github.com/arxanas/git-br…
English

@burntsushi5 The docs for Instant are here: docs.oracle.com/en/java/javase…
TaiInstant: #of(java.time.Instant)" target="_blank" rel="nofollow noopener">threeten.org/threeten-extra…
UtcInstant: threeten.org/threeten-extra…
And @jodastephen if you want to nerd out about time :)
English

@niborst Oh yes absolutely! Thank you!!! ThreeTen was not on my radar.
Also the 1998 and 59.001Z results when not using TAI are interesting. I wonder if that is using the NTP approach? Not sure. #Leap_seconds" target="_blank" rel="nofollow noopener">en.wikipedia.org/wiki/Unix_time… But that looks like it's coming from java.util.time, not ThreeTen.
English



