Robin Stocker

2.6K posts

Robin Stocker banner
Robin Stocker

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
Sabitlenmiş Tweet
Robin Stocker
Robin Stocker@niborst·
GitHub finally copied one the best little features from Bitbucket (which I added in 20% time/innovation week 😛), showing a link for creating a pull request when you push:
Robin Stocker tweet media
English
7
14
77
0
Charles Oliver Nutter
Charles Oliver Nutter@headius·
@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
3
0
1
76
Charles Oliver Nutter
Charles Oliver Nutter@headius·
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
1
0
6
1.1K
Robin Stocker
Robin Stocker@niborst·
@jwrowls @SydneyMetro Haha. At Central the platform screens were just empty. The one at Martin Place was like this for a bit.
Robin Stocker tweet media
English
0
0
1
50
jwrowls
jwrowls@jwrowls·
@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
1
0
2
106
Sydney Metro
Sydney Metro@SydneyMetro·
Due to a metro requiring mechanical repairs at Barangaroo, change at Barangaroo to complete your journey towards Sydenham. Listen to announcements and check information displays for service updates.
English
20
3
31
9.1K
Robin Stocker
Robin Stocker@niborst·
My Java library for Markdown (commonmark-java) … is now used by Java itself (OpenJDK)!
English
2
0
11
502
Robin Stocker
Robin Stocker@niborst·
@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
1
0
0
56
Robin Stocker
Robin Stocker@niborst·
Interesting. I used to be team “*” because it’s closer to a bullet but now I’m team “-“ because it’s easier to type and looks nicer in the source.
English
0
0
0
86
Robin Stocker
Robin Stocker@niborst·
In Markdown or WYSIWYG editors, when you want to start a bullet list, what do you type?
English
1
0
0
134
Robin Stocker
Robin Stocker@niborst·
When you can finally use List.of instead of Arrays.asList/Collections.singletonList because your Java library no longer has to support Java 8.
GIF
English
0
0
1
123
Andrew Gallant
Andrew Gallant@burntsushi5·
@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
1
0
1
140
Andrew Gallant
Andrew Gallant@burntsushi5·
I've got leap second support working in Jiff. Both for roundtripping through datetimes and for computing correct intervals. Does anyone know of other datetime libraries that would pass the same asserts? N.B. `Instant` is a 96-bit timestamp. TAI is "International Atomic Time."
Andrew Gallant tweet mediaAndrew Gallant tweet media
English
5
1
26
2.9K
Robin Stocker
Robin Stocker@niborst·
Kudos to the devs of the Notes app on Mac: It supports column/block selection using Option+Drag! I used that key combination out of reflex today, not expecting it to work, but was pleasantly surprised.
English
0
0
0
100