robinm

joined 1 year ago
[โ€“] robinm@programming.dev 10 points 6 months ago

I never understood why python won agaist ruby. I find ruby an even better executable pseudo code language than python.

[โ€“] robinm@programming.dev 30 points 8 months ago

Read your own code that you wrote a month ago. For every wtf moment, try to rewrite it in a clearer way. With time you will internalize what is or is not a good idea. Usually this means naming your constants, moving code inside function to have a friendly name that explain what this code does, or moving code out of a function because the abstraction you choose was not a good one. Since you have 10 years of experience it's highly possible that you already do that, so just continue :)

If you are motivated I would advice to take a look to Rust. The goal is not really to be able to use it (even if it's nice to be able able to write fast code to speed up your python), but the Rust compiler is like a very exigeant teacher that will not forgive any mistakes while explaining why it's not a good idea to do that and what you should do instead. The quality of the errors are crutial, this is what will help you to undertand and improve over time. So consider Rust as an exercice to become a better python programmer. So whatever you try to do in Rust, try to understand how it applies to python. There are many tutorials online. The official book is a good start. And in general learning new languages with a very different paradigm is the best way to improve since it will help you to see stuff from a new angle.

[โ€“] robinm@programming.dev 1 points 8 months ago (1 children)

I wasn't clear enough. But in a contry where the sun rise at 20:00, the weekday looks like:

  • day 1: Monday morning to Tuesday evening
  • day 2: Tuesday morning to Wednesday evening
  • day 3: Wednesday morning to Thurday,
  • โ€ฆ

And phares like "let's meet on Tuesdayโ€œ without hour indication could either mean end of day 1 or start of day 2. Likewise "let's meet the 20thโ€ (assuming the 20th is a Tuesday) could either mean end of day 1 or beggining of day 2.

--

And alternative be to have

  • day 1 == Monday == โ€œend of the 19thโ€ to โ€œthe start of the 20thโ€
  • day 2 == Tuesday == โ€œend of the 20thโ€ to โ€œthe start of the 21stโ€
  • day 3 == Monday == โ€œend of the 21stโ€ to โ€œthe start of the 22ndโ€
  • โ€ฆ

Which solve the issue of "let's meet on Tuesdayโ€, but not โ€œlet's meet the 20thโ€.

[โ€“] robinm@programming.dev 5 points 8 months ago (4 children)

The issue is that the notion of "tomorrow" becomes quite hard to express. If itโ€™s 20:00 when the sun rose, when does tomorrow starts? In 5 hours ?

[โ€“] robinm@programming.dev 2 points 9 months ago

Interesting idea indeed. I've never used async yet, but I'm always surprised at how the problem space seems to be much more complicated than what it initially looks like.

[โ€“] robinm@programming.dev 8 points 9 months ago (1 children)

You shouldn't, it's short and interesting

[โ€“] robinm@programming.dev 1 points 9 months ago

Looks nice. It has a very good โ€œwooowโ€ effect

[โ€“] robinm@programming.dev 11 points 9 months ago

I would have liked a link to the LKLM thread. Usually they are quite informative

[โ€“] robinm@programming.dev 4 points 9 months ago* (last edited 9 months ago)

I use a 42 key layout modified from bรฉpo (french dvorak inspired layout) with the altgr layer of ergol. Go check this altgr layer it's awesome for programming, and there is a version compatible for qwerty and lafayette.

โ•ญโ•Œโ•Œโ•Œโ•Œโ•Œโ”ฐโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฐโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฐโ•Œโ•Œโ•Œโ•Œโ•Œโ”ฌโ•Œโ•Œโ•Œโ•Œโ•Œโ•ฎ
โ”†     โ”ƒ   ยน โ”‚   ยฒ โ”‚   ยณ โ”‚   โด โ”‚   โต โ”ƒ   โถ โ”‚   โท โ”‚   โธ โ”‚   โน โ”‚   โฐ โ”ƒ     โ”†     โ”†
โ”†     โ”ƒ   โ‚ โ”‚   โ‚‚ โ”‚   โ‚ƒ โ”‚   โ‚„ โ”‚   โ‚… โ”ƒ   โ‚† โ”‚   โ‚‡ โ”‚   โ‚ˆ โ”‚   โ‚‰ โ”‚   โ‚€ โ”ƒ     โ”†     โ”†
โ•ฐโ•Œโ•Œโ•Œโ•Œโ•Œโ•‚โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ•‚โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ•‚โ•Œโ•Œโ•Œโ•Œโ•Œโ”ผโ•Œโ•Œโ•Œโ•Œโ•Œโ”ค
ยท     โ”ƒ     โ”‚   โ‰ค โ”‚   โ‰ฅ โ”‚  *ยค โ”‚   โ€ฐ โ”ƒ  *^ โ”‚     โ”‚   ร— โ”‚  *ยด โ”‚  *` โ”ƒ     โ”†     โ”†
ยท     โ”ƒ   @ โ”‚   < โ”‚   > โ”‚   $ โ”‚   % โ”ƒ   ^ โ”‚   & โ”‚   * โ”‚   ' โ”‚   ` โ”ƒ     โ”†     โ”†
ยท     โ” โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ•‚โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ•‚โ•Œโ•Œโ•Œโ•Œโ•Œโ”ผโ•Œโ•Œโ•Œโ•Œโ•Œโ”ค
ยท     โ”ƒ     โ”‚   โฝ โ”‚   โพ โ”‚     โ”‚   โ‰  โ”ƒ  */ โ”‚   ยฑ โ”‚   โ€” โ”‚   รท โ”‚  *ยจ โ”ƒ     โ”†     โ”†
ยท     โ”ƒ   { โ”‚   ( โ”‚   ) โ”‚   } โ”‚   = โ”ƒ   \ โ”‚   + โ”‚   - โ”‚   / โ”‚   " โ”ƒ     โ”†     โ”†
โ•ญโ•Œโ•Œโ•Œโ•Œโ•Œโ•‚โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ•‚โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ•‚โ•Œโ•Œโ•Œโ•Œโ•Œโ”ดโ•Œโ•Œโ•Œโ•Œโ•Œโ•ฏ
โ”†     โ”ƒ  *~ โ”‚     โ”‚     โ”‚   โ€“ โ”‚     โ”ƒ   ยฆ โ”‚   ยฌ โ”‚  *ยธ โ”‚     โ”‚     โ”ƒ           ยท
โ”†     โ”ƒ   ~ โ”‚   [ โ”‚   ] โ”‚   _ โ”‚   # โ”ƒ   | โ”‚   ! โ”‚   ; โ”‚   : โ”‚   ? โ”ƒ           ยท
โ•ฐโ•Œโ•Œโ•Œโ•Œโ•Œโ”ธโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ธโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”š ยท ยท ยท ยท ยท ยท
[โ€“] robinm@programming.dev 4 points 9 months ago

Yeah, this make sence

[โ€“] robinm@programming.dev 9 points 9 months ago (7 children)

It's also what I understood from what I read but I assume it was just a poor choice of word. Debug symbols are way too important for debugging to be stripped by default.

[โ€“] robinm@programming.dev 6 points 10 months ago (1 children)

vim can have IDE-like capabilities thanks to lsp and tree-sitter. That's a real game changer and is quite easy to set-up with something like kickstart.nvim.

view more: โ€น prev next โ€บ