owsei

u/owsei@programming.dev
9 posts · 369 comments

Recent posts

Recent comments

on rule · c/onehundredninetysix · 4 pts · 56d

Usually regex by it self is shown with / delimiter. Using it on code is language-specific. On rust you normally use r#"<regex>"#, on javascript you can just /<regex>/, but that's just the language's definition, not regex.

Exactly! Making a DSL and using it like a programming language introduces necessities that will not be considered as throughly if they where added to a "real" language.

I once wanted a DSL for a calendar program I was making (so the user could define complex events and stuff). So I made a simple programming language that could be embedded in the program, kinda like how lua is commonly used.

on Me_irl · c/me_irl · 4 pts · 61d

Literally me, 20, working at a bank and teaching the intern, 21, how to code in rust.

on Only me? · c/memes · 10 pts · 61d

Vim has several modes. INSERT mode let's you write text, NORMAL mode let's you navigate (with h,j,k,l and others) and perform operations on the text with your keyboard, like "dw" to Delete Word or "A" to enter insert mode at the end of the line.

You can use arrow keys to navigate in insert mode. However I just press escape, which changes to normal, navigate to where I want to, then change to insert mode.

I may seem like this makes simple navigation complex, and it kinda does. But complex navigation becomes easier.

Vi (and vim and neovim)'s primary concern is viewing and editing code, writing is secondary (although it's still an excellent experience)

on What's yours? · c/whitepeopletwitter · 10 pts · 65d

I think you got the order wrong. It's first salad dressing, "trans", then biggest disappointment, "fr*nch".

I love cooking, but I hate having to cook, and the considerable meal ticket[^1] I get from my job allows me to basically never have to cook.

^1: Extra money I can only spend on food, equivalent to slightly less than ⅓ of my salary

on How to Rick Roll others · c/memes · 2 pts · 66d

connect. I love it very much but gifs only load the correct frame when I click the image and stay with that :(

on Equals before the law · c/leftymemes · 2 pts · 73d

I'm not entirely sure I understood.

You are saying, even when rich people commit crimes, like copyright violations when creating AI models, they don't get punished?

If so, yeah, agree.