86 karma · joined May 15, 2013 (13y ago) · 88 submissions
comment 7mo ago · link · parent
comment 7mo ago · link · parent
Also authored the first Elm-in-Elm compiler for a limited subset for json-to-elm, then leading to a pure Elm virtual-dom implementation used for elm-html-test!
comment 11mo ago · link · parent
Egoless Engineering, a book about how to be an enabling staff engineer in the Nordic's largest mediahouse. I saved up vacation and took the whole of December off, mostly to relax. But I'm also working on more chapters for my book.
comment 1y ago · link · parent
I've used my app in various forms for around 5 years, rewritten multiple times. But now I'm creating surrounding tooling to help others put my mental model for personal life prioritize to use. I'm writing in the "Saving Spoons" Substack as I go, trying to explain why and how I do things, with advice for others trying to do the same thing.
comment 1y ago · link · parent
One fun fact - my dad took some higher-learning Welsh exam as an adult. They had to time the exam to match Patagonia, as they were given the exact same exam to avoid any cheating.
comment 1y ago · link · parent
Results were sent as a CSV file - basically a raw export of the data the server got, not something that was read from the DB. So the operation to save to DB and to send the email were intended to be (almost) parallel operations. The errors weren't shown to users, though there was error handling for other cases that did show the user.
comment 1y ago · link · parent
> While this bug was a costly mistake, we learned from it. Whenever we would deploy code-last minute, we'd try to test it more rigorously. If we were running a study without internet access, we'd make sure to test in the same environment. We hadn't accounted for the environment change, partially due to the short notice for the locked-down machine, but also just because we didn't test with the exact same restrictions.
comment 1y ago · link · parent
Indeed - I have an extended equivalent from CGI-bin that I'm including in the full story in the book, since running things as a script vs as a program has different implications for killing the running process. The patterns you mention here tend to be my preferred way of working - exhaustiveness checking of branches. In modern TypeScript, I enforce that via union-type error handling rather than using exceptions (which are a nightmare when it comes to affordance imo). I'm generally a functional programmer rather than an imperative programmer. But the case mentioned in the blog post was about 12 years ago now, so it didn't have the same options as we currently have.
comment 1y ago · link · parent
The way I put this practice into place involves accepting that people will just do whatever they find easiest, regardless of whether it's technically the right thing to do. I account for that when I'm designing APIs, languages ([Derw](https://www.derw-lang.com/)), frameworks, or tooling. If I make the correct thing the obvious or easiest thing to do, less people will do the incorrect thing. They will still do incorrect things, it's human nature. But they'll do it less frequently.
comment 1y ago · link · parent
In this case, I think the actual API we used would take a callback for success, and a callback for errors. I just used JS an example for how unnatural it would be to call something that exits the entire script early.
I have a big problem with promises + exceptions generally in JavaScript - much preferring union types to represent errors instead of allowing things to go unchecked. But I left that out as it was kind of a side-note from the point of affordance.
comment 1y ago · link · parent
To be honest, as a top host in my city, the only features that Couchsurfing was actually good for was discovery. Everything else was kinda broken or slow. It added to the charm, but it definitely wasn't much better than what you're claiming here for Couchers.
comment 1y ago · link · parent
type MyEnum = {
active: 0;
inactive: 1;
}
const MyEnum: MyEnum = {
active: 0,
inactive: 1,
}
const showAge = MyEnum.active;
const showPets = MyEnum.inactive;
It's slightly more duplication, but a lot more readable (imo) to those unfamiliar to utility types. TypeScript also enforces keeping them in sync.comment 1y ago · link · parent
Remote: Hybrid or full remote
Willing to relocate: Probably not
Technologies: TypeScript, Python, Rust, Elm, Haskell.
Resume: [LinkedIn](https://www.linkedin.com/in/noah-h-1264371ab/), [Github](https://github.com/eeue56/), [main blog](https://thetechenabler.substack.com/)
Email: Message on LinkedIn
Developer who has a passion for helping the world and others, through technology (or sometimes no-tech). At my day job, I'm passionate about helping sure we build the right thing, in the right way, by people who are happy and engaged. In the open source world, I have my own programming language, Derw. Well, technically I have 5. But only Derw is intended for production. In volunteering, I'm the board leader of Tekna's Network for Developers - Norway's largest STEM union for those with post-grad education.
I generally am very flexible, I'm more interested in the problem being solved rather than the stack used to solve it. But no Java.
comment 2y ago · link · parent
It does support server-side-rendering, hydratation, and async events. It's a bit different in implementation in the OP's post, but I think the most important thing any reader should take away is that at the core, virtual-doms can be quite simple with plenty of room for further optimization.
comment 2y ago · link · parent
That said, I think a lot of theoretical practice tasks are good for stretching knowledge and skills, so they have value too.
comment 2y ago · link · parent
- [0] https://thetechenabler.substack.com/i/142898781/making-a-sim...
comment 2y ago · link · parent
[0] - https://open.substack.com/pub/thetechenabler/p/trust-in-brea...
comment 2y ago · link · parent
comment 3y ago · link · parent
Remote: Yes
Technologies: TypeScript, Python, Derw, Elm, Haskell, Go. My full range of languages is quite a bit longer - but the jewel in my crown is Derw, a language I created myself having worked with Elm for a long time. I enjoy most languages to some extent, but prefer typed functional languages where possible. The only language I won't work with is Java.
Résumé/CV: https://www.linkedin.com/in/noah-h-1264371ab/ (email/message me for the full version)
Email: noah DOT hall AT hey DOT com
I'm looking mainly for roles where I can enable others to do better. I have two blogs which I maintain: https://derw.substack.com/ and https://aftenposten.substack.com/, where you can find interesting tidbits.
comment 3y ago · link · parent
To provide the students with the skills they'd need in their career, we taught them how to use real world tooling: how to make a website from a design, how to use Git, how to write backend code, identifying security risks, how to use editors that weren't JEdit or Netbeans, how to use PhoneGap, how to deploy to a server, how to use Unix.
As a result of our training, we managed to get some great students on-board. No longer were we surrounded by students who could make some ServiceFactoryBean, but instead ones who were fully capable of making real things in a real company.
It's awesome to see that MIT has a similar programme - covering all the skills that we actually did teach. Too much of university is spent theorising and not spent making students employable.
comment 3y ago · link · parent
And to kick things off, here's a blog post on "Why Derw?": https://derw.substack.com/p/why-derw-an-elm-like-language-th...
comment 3y ago · link · parent
It's a programming language I created after frustration with TypeScript and Elm, in order to write better type-safe code in a functional manner. There's seemless interop between Derw and TS/JS, making it more useful for working with TS codebases than Elm. It's quite production ready though there are a few things left to implement, but so far there's features like:
- A formatter
- A test framework
- A benchmarking framework
- A web framework for writing apps
- VScode extensions
- Type checking
- Output generation for TS, JS, English, Derw and Elm
- A Gitbook: https://docs.derw-lang.com/
I also have a very active blog where I write about Derw or programming in general: https://derw.substack.com/ and the Twitter for staying up to date is https://twitter.com/derwlang
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent