Readit News logoReadit News
madsohm commented on Show HN: I built a Ruby gem that handles memoization with a ttl   github.com/mishalzaman/me... · Posted by u/hp_hovercraft84
madsohm · 4 months ago
Since using `def` to create a method returns a symbol with the method name, you can do something like this too:

  memoize def expensive_calculation(arg)
    @calculation_count += 1
    arg * 2
  end, ttl: 10, max_size: 2

  memoize def nil_returning_method
    @calculation_count += 1
    nil
  end

madsohm commented on Ask HN: Where do you reliably find worldwide remote jobs?    · Posted by u/yu3zhou4
mahmoudhossam · 5 months ago
levels.fyi has a job board with a "Fully remote" filter, might be worth checking out.
madsohm · 5 months ago
I find that a lot of their "fully remote" positions are only remote if you live in the US.
madsohm commented on Ask HN: Who wants to be hired? (April 2025)    · Posted by u/whoishiring
madsohm · 5 months ago
Location: Tølløse, Denmark

Remote: Yes

Willing to relocate: No

Technologies: Ruby on Rails, React, Tailwind, PostgreSQL, MySQL, TypeScript, Elasticsearch, Kafka, and more

CV: https://ohmbrix.dk/cv.pdf

Email: mads.ohm@gmail.com

Senior engineer with more than 10 years of experience with Ruby on Rails. I'm currently looking for a full-time contract, but am open to part-time for the right company.

madsohm commented on Ask HN: Who wants to be hired? (March 2025)    · Posted by u/whoishiring
madsohm · 6 months ago

  Location: Denmark
  Remote: Yes, exclusively
  Willing to relocate: No
  Technologies: Ruby, Rails, Hotwire, Stimulus, Tailwind, React, JavaScript, TypeScript, PostgreSQL
  Résumé/CV: https://linkedin.com/in/madsohm/
  Email: mads.ohm@gmail.com
Hello, I'm Mads. I have more than a decade experience with Ruby on Rails doing both frontend and backend.

madsohm commented on Standing desk might be as bad as sitting all day   sciencealert.com/your-sta... · Posted by u/zdw
madsohm · 10 months ago
I was always told that the best position is always the next position.

It's like the Monty Hall problem, switching is always the better solution.

madsohm commented on Ask HN: Who wants to be hired? (October 2024)    · Posted by u/whoishiring
madsohm · a year ago

  Location: Denmark
  Remote: Yes
  Willing to relocate: No
  Technologies: Ruby, Rails, React, Tailwind, Typescript, Javascript, MySQL, 
  PostgreSQL, Elasticsearch, GraphQL
  Résumé/CV: https://linkedin.com/in/madsohm
  Email: mads.ohm at gmail dot com
I hold a PhD in computer science. I have more than 10 years of experience with Ruby and Ruby on Rails. I've helped build and scale frontends, backends, and APIs in general. I'm ready for whatever you throw at me - and can easily learn new technologies and languages, if needed.

madsohm commented on Ask HN: What apps have you created for your own use?    · Posted by u/fuzztester
thom · 2 years ago
For our first child in 2011, we were struggling to agree on a name, so I created a baby names app that tried to learn the kinds of names you liked, based on sounds, meanings, origins etc. It was my first real attempt at any sort of machine learning, and while we eventually reverted to the much simpler algorithm of my wife putting her foot down, I decided to package it up and launch it on the Mac app store. It was briefly the number one lifestyle app in the UK, and could more or less pay for its own Google Ads, but I killed it off when sandboxing started to make NSDocument based apps break. Some screenshots survive:

https://lemonwatcher.com/baby-names-1.png

https://lemonwatcher.com/baby-names-2.png

https://lemonwatcher.com/baby-names-3.png

https://lemonwatcher.com/baby-names-4.png

https://lemonwatcher.com/baby-names-5.png

madsohm · 2 years ago
I did the same for both of our kids. For the first, I created a web app where you could +1 or -1 on all legal names. I even used the Web Speech API to read aloud the names, if you clicked them.

For the second kid, I created an iOS app using React Native (https://i.imgur.com/aaTqXAY_d.webp?maxwidth=760&fidelity=gra...) where you could swipe names Tinder-style.

We didn't use the apps to find _the_ names, but to get a narrowed down list we could pick from. The projects were fun and educational.

madsohm commented on Ask HN: Who wants to be hired? (June 2023)    · Posted by u/whoishiring
madsohm · 2 years ago

  Location: Denmark
  Remote: Exclusively
  Willing to relocate: No
  Technologies: Ruby, Rails, React, TypeScript, Elasticsearch
  Résumé/CV: https://mads.ohmbrix.dk/files/cv.pdf
  Email: mads.ohm@gmail.com
PhD in computer science. More than a decade experience with full-stack development using Ruby on Rails. Ex-Elastic, ex-Shopify. Looking for senior/staff engineer positions.

madsohm commented on Sapling: A new source control system with Git-compatible client   engineering.fb.com/2022/1... · Posted by u/bolinfest
sweettea · 3 years ago
Absorb is amazing! Even if you don't take up Sapling, there's a 'git absorb' plugin which I have found absolutely invaluable: https://github.com/tummychow/git-absorb
madsohm · 3 years ago
Just learned about 'git absorb' couple of weeks ago and have used it every day since. Amazing tool.
madsohm commented on Almost monospaced: the perfect fonts for writing   blakewatson.com/journal/a... · Posted by u/blakewatson
thaumasiotes · 3 years ago
> I long ago concluded that trying to line stuff up in columns like this in code is a mistake. It often results in realignment of blocks for small changes so what should be a small diff in the git history ends up being big.

Seems wrongheaded to me; that's the same reason Elm wanted you to write arrays like this:

    [item1
     ,item2
     ,item3
     ,item4
    ]
instead of a sane way. It means adding or removing an element only changes one line in the diff!

Who cares? It's not hard to understand what's happening in a diff that makes this kind of change. You want the code to be easy to read, not easy to diff.

You could also easily base your diff algorithm on a lexer for the language rather than a lexer for ascii, in which case changing the amount of whitespace would register as "not a change".

madsohm · 3 years ago
Many languages also support a comma after the last item, meaning you can still have one line diffs and have a sane reading structure:

    [
      item1,
      item2,
      item3,
      item4,
    ]

u/madsohm

KarmaCake day102October 17, 2014View Original