Played The Long Dark last year over the holidays, but never started Story Mode, because I wanted to get familar with Survival Mode first (not required at all, by the way).

They've just released a major update, and I'm very excited to dive back in.

twitter.com/RaphLife/status/10

Added `:--:` and `:---:` to convert to – and —, respectively. My keyboard shortcuts are now complete.

Got it. This is how federation works.

You need the local ID for the status you’re replying to. mastodon.social/@jkreeftmeijer is posted on mastodon.social, but you need the ID from mastodon.technology/web/status when posting a reply on mastodon.technology, for example.

Vim quicktip #3: Press `gx` to open a link under the cursor in your web browser.

I can't seem to find how to post a response to a status on another instance via the Mastodon API.

Passing the ID as the `in_reply_to_id` parameter produces a 404 because the status can't be found. That makes some sense, as that status isn't on the instance I'm calling out to (right?). Switching the API base URL to the other instance gives me a 401, because I don't have an API app set up there.

What am I missing here? Any pointers would be greatly appreciated.

Junior devs: Don't let shame prevent you from putting your code out there. Most production-code isn't that good anyway. It's less about perfection than it is about readability and function. We're all learning from our mistakes, every day.

The results aren't better than what already exists, or implemented in the fewest lines of code. That's not the point. They're built to be as expressive as possible to help explain concepts like HTTP, Rack, or inter-process message passing, and because they're a fun exercise.

I *love* reinventing the wheel.

Some of my articles explain how to build your own GenServer in Elixir or how to compare images in plain Ruby, and I’ve built minimal clones of libraries like RSpec and Spring in the past to understand and teach how they work.

While you shouldn’t rely on a hand-rolled HTTP server or a naïve reimplementation of an ancient OTP construct in production, taking software apart and rebuilding it is the best way I know to understand what’s happening under the hood.

Randomly running into `module :certifi is not available`-errors in your Elixir project? It’s probably ALE’s mix linter recompiling your whole project, which is disabled by default in the current version.

github.com/benoitc/hackney/iss

The publication dates for articles on my website had broken `<time>` tags, so apparently search engines started using the update date as the publication date. Fixing the tags coincided with traffic from search engines dropping by half. 🤷‍♀️

Published in 2016, but still one of my personal favorites. It explains a bit of TCP and HTTP, some Rack, and it finishes with 30 lines of code that can serve `Rack::Lobster`. ❤️🦞

twitter.com/AppSignal/status/1

Vim quicktip #2: A substitution with an empty search pattern replaces matches from the last search. After finding "foo" (`/foo`) in the file, you can replace all occurrences with `:s//bar/`.

TIL: A five minute lightning talk is too short to trace vim’s history back through vi and ex to ed while demoing both `,g/re/p` and `,s/foo/bar/`, so I renamed it to "ed: editing text like it's 1969" and basically only showed how terse and user-hostile using ed is.

Unpopular opinion: in order for Twitter users to actually switch to Mastodon, the switch needs to be seamless. While reposting to Twitter might not be desirable in the end, it will get people to take the plunge.

Vim quicktip #1: Use `%` to jump between brackets. This works for `()`, `{}`, and `[]` by default, but can be changed using `:set matchpairs`.

Plugins like vim-elixir and vim-ruby add `b:match_words` like `do`, `end` and `else`, to quickly jump to a block's `end`, for example.

It literally took me years and hundreds of git repositories to realise I could `git init repo_name` instead of `mkdir repo_name && cd repo_name && git init .`. It just never occurred to me to try.

Considering switching to Mastodon but don't want to leave Twitter yet? You don’t have to.

bridge.joinmastodon.org follows Mastodon accounts from users you follow on Twitter, and github.com/renatolond/mastodon intelligently posts your “toots” to Twitter or your “tweets” to Mastodon.

Although I prefer Mastodon's idea, it's nice to have some interaction, which is simply more difficult with < 40 followers. Until most of the activity moves over (if it ever will), I'll be on Twitter like before.

Show more
Mastodon

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!