Thought of the day:

's "Fat Models" seem to also be a consequence of dependency injection not being "a pythonic thing".

So when writing extensible apps, it's easier to just put all logic in models and then let the user subclass and override then, than putting logic in separate modules that are more backend-agnostic.

Day 17

In the last week I did lots of little things, some code reviewing for mentoring, not as much as I wanted, but got back to it finally. Currently playing with `electron` and requests with native promises.

I was building a dependency diagram in DOT/graphviz. Naturally, I accidentally made a crown 👑 ✨

Noob Mastodon question: Does moving instance mean that all your followers will stop seeing your posts and will need to re-follow you? (and the opposite)?

In the land of , today I'm finally done with the first course in Memrise, ending with the days of the week, so I now know how to say stuff like "Sonntags gehe ich gerne in meine Lieblingskneipe", to highlight how much I've overstayed in the UK.

Second course is supposed to be about "expressing feelings", I wish this was taught using memes...

Days 5-7: Some and some .

Done with converting the JS interview app from work.

I had started a python application to help me build flash cards through the fantastic platform, but it's not teaching me that much, so I'll try to convert it to TS.

Starting off as cli-only and will then try to evolve it into something with a GUI (maybe Electron?).
I'm not sure what to use for local storage, maybe a non-rel DB will suite this case?

Imo these are significant obstacles that hinder adoption and attempts to create stubs for popular libraries, especially when they involve a lot of metaprogramming (ex. )...

Day 4

A break from TS to look into some typing.

The more I try to use types, especially when building "tools", the more I stumble upon missing features.

Protocols seem a good step towards filling some of the holes, and a duck-typing approach suits the language well. However without type intersection they seem quite limited for now.

Simple dependent types are also missing...

Day 3 with

Spent some time understanding generics and experimenting with various uses. Fiddled a bit with compiler options as well. I'm still not quite sure how map() ends up inferring unexpected callback return types...

Day 2

Looked some more into async/await with .
Built interfaces for json resources and got a bit stuck with map needing type assertions :thaenkin:

Made it all work, but need to investigate the exact **why** tomorrow.

Day 1 | :

Spent some time to find a minimal setup for TS with VSCode. Installing and running typescript locally with a specific nvm version was a bit tricky (and not much documented?!).

It's really nice to have client-side type checking again (thinking of you, Elm!).

As for - worked through directions vocabulary: links, rechts etc

Here we go:

Starting my to try to properly learn Typescript and React in 2019.

And to top that off :blobcatcoffee:

My first challenge will be to rebuild my solution to our job applicant test in Typescript ⌨️ 👩‍🏭

TIL: Thursday is literally "Thor's Day" 🌩️ ⚡ 🔨

It's incredibly impressive how manages to still improve developer experience on every release.

Currently one of the very few IDEs that offer Docker interpreter support, truly robust code inspection and refactoring tools amongst the many, many features.

It almost makes it difficult to switch to other languages that do not have development tools of this calibre yet. I can kind of understand the "enterprise" devs being sceptical of the hip web languages some years back...

Since Mastodon is basically for cats, here's my cat from last night. Clearly trying to say something...

Util alias I use for quickly getting any TODO comments introduced in the current branch (vs master)

git diff master HEAD -G"TODO" | egrep -oh "(a\/.*\s)|(\+\s*#*\s*TODO.*$)"

This ninja turtle seems to have mutated a bit too much.

Show more

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!