Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
Working with timestamps and timezones is almost always a hassle. Moreover, SQLite doesn’t have a dedicated type to store such values. However, there are some built-in functions to simplify such tasks. In this post you’ll find a good example of using them in a real production app.

P.S. Here you’ll find a funny video about general problems with dates, time and timezones.

#sqlite #db #date
In this post you’ll learn how to apply coroutines for awaiting a layout pass completion or an animation end.

#ui #view #coroutine
If using multiple nested .copy calls on data classes is your case for whatever reason, take a look at this post, Arrow-kt will probably make your life a bit easier.

#arrowkt #fp #library
In this post you’ll find a nice explanation of how tail call optimization works. Surprise-surprise, the optmization also works fine with non-recursive functions.

#compiler #optimize #recursion
Draft JEP on Primitive Objects.
It’s something like an immutable class without identity. Copy of such an object is an exact copy of that original object. And there are plans on treating int, boolean, etc. as primitive objects. We’re waiting for you, List<int>!

#java #jep #primitive
Contempt Culture
I wonder, are there similar attitudes in the world of MDs? Do oncologists despise otolaryngologists? Do otolaryngologists in turn disdain proctologists? Does the whole bunch of them disrespect therapists?
All right, then. Who will patch my butt up after the explosion that usually happens when I spend a day fighting Android SDK?

#community #culture
@dsvoronin has recently shared “The Tragedy of systemd” talk by Benno Rice (one of FreeBSD contributors). systemd is a controversial piece of tech. In his talk Benno tried to dig deeper into the history of systemd, what it is criticized for, and why it’s not all that bad.
The talk itself is great by the way. I’ll put some quotes into the discussions.

#linux #systemd #talk
Check out this talk by Yegor Bugayenko. It’s about the basics of EOLANG in it’s current state. It looks scary, it looks funny, watching it was interesting, try for yourself.

#oop #talk
A very practical page of Elm guides: Types as Sets. By using well-tailored types we can protect ourselves from different kinds of invalid states in our programs. So why not just use this approach?

#type #programming #math
Two for the price of one this time. Bruce Eckel (you’ll most probably know this guy, at least for the “Thinking in Java” book) in his post has criticized Gradle a bit, and Cédric Champeau (was building Groovy, is building Gradle) has tried to challenge Bruce’s points.

#gradle #java #groovy
Check out this new library from Square - Curtains. It’s a bunch of Window-related APIs to make some very unpleasant things a little bit easier.

#library #window