Hacker Newsnew | past | comments | ask | show | jobs | submit | domlebo70's commentslogin

We do this via run in TS:

    export const run = <T>(f: () => T): T => {
      return f();
    };

Can you clarify why do you prefer this over an IIFE `(() => {...})()`?

I like it. IIFEs always make me nervous because they look like they beg to be removed if you don't know why they are used. Using an explicit function such as `run` looks much more intentional, and provide a single intuitive place (the documentation of the `run` function) to explain the pattern.

Do you use plan mode? Do you link specific files as reference using @? Those two alone make a big difference for me.


Yeah that is the thing that has me confused. I specify the exact files with the @ sign and it still gets caught up on wanting to run batch commands to search for specific patterns. Do you use Sonnet or Opus?


I've never used it, but watched from afar. So many interesting ideas. The website is also really good. Congrats Paul and team


You need to do more drugs then.


Interesting name


For people living in Germany, we already have a similar problem with Figma


I've never noticed this until now and now I can't unsee it.


I did not until now

infohazard!


In no way did I put any bad meaning in the the name


And wix


That name makes me slightly upset and afeared. The game looks nice, though.


the name Pegma is a play on words that combines: "peg" (peg, token) is the main element of the game and "theorema", which is associated with mathematical rigor and logic


Why?


It reads like a portmanteau of pegging and smegma. Hope that helps, although I'm afraid it will do the opposite.


For me it's also that it works as a joke setup, just like "ligma" or "updog".


There's certain sexual activity called pegging. I guess that's what could come to mind here :)


Oh, I didn't know


There's also smegma, which is not a whole lot better.


It appears that every short word means something obscene in some language.

Advice would then be to avoid short names for products altogether.


https://www.reddit.com/r/todayilearned/comments/17ay2l3/til_...

Mitsubishi renamed the Pajero in Spain, because "pajero" means "wanker".


Honda Jazz was first called Fitta which is cunt in Swedish.


I agree. I wanted to add something short and creative


The name Pegma is a play on words that combines: "peg" (peg, token) is the main element of the game and "theorema", which is associated with mathematical rigor and logic


Yes, the intent is very clear.

EDIT: It seems based on other comments you are genuinely unaware of how it sounds, which is totally fine - I feel someone should let you know it sounds like "peg me" or "smegma", which uh... well, ask an LLM what they mean, I suppose. I don't particularly want that in my HN comment history. :D


Thanks for the explanation


Thank you


curious


The name Pegma is a play on words that combines: "peg" (peg, token) is the main element of the game and "theorema", which is associated with mathematical rigor and logic


cool, thanks a lot!


I was wondering if you had any thoughts on the CS2 rollout (2 years and counting) and the number of bugs, poor performance, and issues?


How do people deploy docker containers on a machine like this? We currently use Cloud Run, which is very hands off. How is a deploy done?


With Auth.js, I assume they control the database layer? I.e. can i supply my own functions for reading and writing to the DB, or I have to use their Kysely stuff?


Reminds me of this post https://maxgreenwald.me/blog/do-more-with-run

I now reach for this a lot to allow me to write expression oriented programs in JS


Yeah I remember reading this post, thinking "whatever" about it, and then finding myself implementing and using it regularly-ish.

Usually I use it to encapsulate a complicated initialisation of a variable, where some mutation is needed/easier. I still want colocation for readability, but I dont want intermediate variables in the scope or to declare the variable as mutable


Very balanced post thank you. Often these posts tout an approach, and never consider downsides.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: