derw-lang.com
Write about language design, perf, lifting people up, and pragmatism.
I take joy from when things are done well, by people who enjoy doing them
Creator of the Derw language. Leader of Tekna's developer network. Tech Enabler @ Schibsted Media
73 posts
1,043 followers
416 following
Regular Contributor
Active Commenter
comment in response to
post
Thought about exactly this today.
I have an API I've been working on, reimplemented a couple of times while finding the solution both for code safety and performance.
I went for a walk, without intentionally thinking about it, and landed on a solution. Walks always help me. Showers, sleep too.
comment in response to
post
Naming standards and file layout generally in React codebases is kind crazy. I sometimes wonder what kind of code editor the person who decided "one function one file" had. Files, files everywhere (I know it's related to code splitting)
comment in response to
post
(commenting to save for later)
comment in response to
post
Yes! The src/render/interactiveQueries.ts file might be some good inspiration - it's a query builder on top of the collected data
github.com/eeue56/gobai...
comment in response to
post
IMO since the exact relationship between the data points is variable, the best approach is to track, then apply analysis to the data e.g sleep vs exercise doesn't directly scale, due to the number of factors involved
This is what I do in my mood tracker, fwiw!
comment in response to
post
Gotcha - so it is tracking those habits over time, then identifying trends between habits and behaviours?
It depends if you want to analyse them, or only a way to represent them.
comment in response to
post
Couple of thoughts:
- What is the type signature of `write`, if it's being expanded to cover AWS APIs?
- What's the API design reasoning for exporting everything from "bun", rather than "bun/s3"?
- What value does this provide vs using existing AWS libraries today?
comment in response to
post
Do you have an example of what you mean?
A typical case might be an event log - represent all possible union behaviours as a union, then log and track each event type as they occur.
Very typical in languages like Elm, Derw, F# - but also common in TypeScript, just less so as they have local state
comment in response to
post
I don't see any answers to that question in the thread, but maybe I'm missing it on mobile.
Either way, esbuild is a totally normal tool to use in a JS stack.
comment in response to
post
Just so I understand - what are you considering Bun / Node to be a replacement for?
esbuild is a reliable tool which is always my first to reach for - especially for build speed, the low config approach. Webpack/Gulp were all not great in that regard. There is Rollup etc, but esbuild is excellent.
comment in response to
post
Handy to do reflection type stuff at runtime like not needing as const magic to get the values represented in a type (i.e kind properties)
Or things Zod is used for - easier to create powerful parsers if you have type info at runtime
But it's also not needed if the type system has certain features
comment in response to
post
Many (most at this point) of my dev devices have been Chromebooks, in all price ranges - way cheaper than even a second hand Macbook Air. Not that the Apple Silicon CPUs aren't amazing though, super impressive.
comment in response to
post
<nervous sweats of security engineers seeing people running unknown script code with a curl, shell history, and magic numbers> 😁
comment in response to
post
I think since None if often used as a poor version of Maybe/Optional types, separating out how they are tested (is instead of ==) is helpful for the logical separation.
Maybe a = Just a | Nothing
a is None - explicitly testing for Nothing
a == None - could either be testing the value, or nothing
comment in response to
post
I say this as as someone who talks daily with coworkers, friends, and family from all over the world - and I'm glad there is an existing common language.
I just dislike that it means countries with poor press ethics have more influence than they should.
comment in response to
post
I often think who the British empire's influence spreading English did harm that is usually ignored.
The international common language sites are almost all in English. Meaning that countries with media houses you should not trust have undue influence vs those you should.
Social media too.
comment in response to
post
Hey - I sent customer support an email from Schibsted with some stuff related to this. Haven't heard anything back yet, it's been over a week. Is there a better way to get in touch?
comment in response to
post
👋 Work at Schibsted Media + leader for Tekna's network for developers
comment in response to
post
If you have an Android phone, you can trigger a "find my phone" from any device where you're logged in. It'll bypass silence mode.
My nightmare though is when I lose my phone, try to ring it, but the battery is dead. Totally unfindable without redistributing half of my apartment into the other half
comment in response to
post
I'm going to start re-exporting everything a user might need from any library I make.
stdlib? Ah, just do "import some-package-by-eeue56" then you'll have everything you need in your namespace.
Prelude on steroids
comment in response to
post
*I do say that as someone with a chronic illness who probably also works when I shouldn't. Work can be addictive
comment in response to
post
sad Norwegian flex: we get paid even when we're sick
Kinda crazy to think of all the people forced by their country/company to work when they're not well.
Mental and physical health has to take priority over work - and a healthy worker is a good worker, so it benefits companies too.
comment in response to
post
I do like that it's a very direct way of going "oh play at normal speed now, I found an interesting bit"
comment in response to
post
You know what's a cooler thing though? Just being able to choose from a button, so I don't have to hold the screen in an attempt to force interaction. You know what's even even cooler? 1x to 4x in increments of 0.5! 😁
comment in response to
post
I have a project where I'm intentionally writing all of it in Bash.
The test suite (in Python) is several times bigger than the Bash codebase, because of stuff like this.
comment in response to
post
I first thought "oh no, why would you do that".
But then I thought if you exclude .Net things on the server, there probably are a bunch of people running Node.js apps on "production" machines - not necessarily only servers. User devices, etc.
comment in response to
post
Added!
comment in response to
post
I felt it was the best name for that community. I also thought about "Forest", but there is already a programming language by that name 😅
github.com/forest-lang
comment in response to
post
👋
comment in response to
post
Depends - if there's a talk I had in mind, then I'll prepare beforehand, then find whatever conferences or meetups might fit it.
But often I'll adapt things to the audience. Never a shortage of things to talk about, but talking about something *other people* care about requires knowing the audience