Readit News logoReadit News
qrobit commented on 30 minutes with a stranger   pudding.cool/2025/06/hell... · Posted by u/MaxLeiter
swiftcoder · 3 days ago
I don’t really understand this viewpoint - scrolling has always been the default way to see more content on a webpage. Clicking on things to navigate is very much a secondary activity. Why would you not scroll every web page to see if there is more content that didn’t fit on your screen?
qrobit · a day ago
I suppose because modern websites are actually apps, in an app you click on stuff to see more content

If web page does not look like a blog or a newsletter, it is not wrong to assume the app format

qrobit commented on Using traversals to batch database queries   chrispenner.ca/posts/trav... · Posted by u/cosmic_quanta
qrobit · 24 days ago
For me lenses are like water. I start each haskell project with `optics` dependency, my favorite trick is deriving Generic and using labels to access the fields[1]. Field accessors never get created in the first place, so you have no namespace pollution and all your data definitions can have fields called `id`, `date`, whatever and never collide with each other or imports from other modules. The only problem is unwieldy error messages in case something goes wrong. Another tool is Magnify and Zoom[2] classes, which are useful for limiting context available to child actions in a monad stack. You can have one "global" state, but give only a slice of that global state to the child action with `magnify #subState1 (myAction1 arg1 arg2)` (or zoom respectively for MonadState actions). This approach is extensively used within Brick[3] TUI library, where you have big "global" app state, and a collection of widgets that have their separate states which you slice from the big state.

[1]: <https://www.youtube.com/live/9hrDm7xDpig?t=2200>

[2]: <https://hackage.haskell.org/package/optics-extra-0.4.2.1/doc...>

[3]: <https://hackage.haskell.org/package/brick>

qrobit commented on Sign in with Google in Chrome   underpassapp.com/news/202... · Posted by u/frizlab
cosmotic · a month ago
This popup should be criminal. Ive misclicked the signin button multiple times, causing PII to be sent to a third party I dont trust without my authorization.
qrobit · a month ago
FWIW, these uBlock Origin rules solve the ploblem:

    ||accounts.google.com/gsi/iframe
    ##iframe[src^="http://accounts.google.com/gsi/iframe"]
    ##iframe[src^="https://accounts.google.com/gsi/iframe"]
    ##iframe[src^="//accounts.google.com/gsi/iframe"]
    ###credential_picker_container
source: https://stackoverflow.com/a/78429389. Last rule is from me since popup was invisible but still blocked the content underneath.

qrobit commented on Spaced repetition systems have gotten better   domenic.me/fsrs/... · Posted by u/domenicd
ouija · 4 months ago
Interesting. I was never really happy with any spaced repetition algorithm, so I recently implemented my own dumb system which simply asks you for the number of days after which the card shall be shown again: https://github.com/kldtz/vmn

Usually my intuition about how well I know something is not too far off. If you don't specify anything, it doubles the time since the last review.

qrobit · 4 months ago
I had a similar problem where I can't remember the answer to the card, but after revealing it, it seemed too easy to make it due in a few days, so I would lie to the program and press Hard/Good. Later I removed scheduling times on top of buttons and decided to trust the algorithm. I believe it helped me to stop caring about schedule times and loosing progress on a certain card. After all, these algorithms were made for ordinary people with ordinary memory behavior.
qrobit commented on Path is a utility for working with paths   gitlab.com/SpyrjaGaldr/pa... · Posted by u/spyrja
spyrja · 4 months ago
I don't see why it necessarily couldn't, my only question would be if there are really many actual use cases for such things? As far as symlinks go, I suppose being able to expand them (but not following them!) might be somewhat useful. But converting to DOS paths and vice-versa? That just doesn't seem very useful. Nevermind converting to-and-fro relative and absolute paths, I can't even imagine what the point of that would be. But perhaps I'm just not seeing the forest for the trees, as they say.
qrobit · 4 months ago
As a rule of thumb I always make paths absolute when handling files in scripts. But then sometimes I need to copy a directory tree relative to $CWD somewhere else, so I convert them back to relative

Fish, being a great shell, provides this via `path` command[0]

[0]: https://fishshell.com/docs/current/cmds/path.html

qrobit commented on Why Fennel?   fennel-lang.org/rationale... · Posted by u/behnamoh
Graziano_M · 5 months ago
Fennel is nice. I converted my neovim config[1] to fennel and haven't looked back.

[1]: https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...

qrobit · 5 months ago
Fennel is indeed nice and I rewrote my config in it too, but looked back ~2 years later and rewrote it again in Lua. I think Fennel for configuration is not justified and just adds complexity. Also the tools are not there: two existing language servers[1][2] can't compete with Sumneko's Lua language server[3] and they are fennel-exclusive and clueless about Lua code. I still like Fennel for writing more complicated code (my plugins: [4][5]) because of neat features like pattern matching and structural decomposition, both are surprisingly robust.

[1]: https://git.sr.ht/~xerool/fennel-ls/

[2]: https://github.com/rydesun/fennel-language-server

[3]: https://github.com/LuaLS/lua-language-server

[4]: https://gitlab.com/repetitivesin/16cm.nvim/-/tree/main

[5]: https://gitlab.com/repetitivesin/madol.nvim

qrobit commented on Parser Combinators Beat Regexes   entropicthoughts.com/pars... · Posted by u/mooreds
zokier · 5 months ago
> just the syntax becomes unreadable rather quickly. I’m sure you could build a nicer regular-expression syntax in Haskell.

Of course regular expressions are really more of a category of expressions, and the traditional kleene star notation is only one of many options; regular expressions do not somehow inherently need to use that specific syntax.

Pomsky and VerbalExpressions are just some examples of alternative syntaxes for regex. Apparently there is even a port of VerbalExpressions for Haskell:

https://github.com/VerbalExpressions/HaskellVerbalExpression...

qrobit · 5 months ago
I looked at the VerbalExpressionJS[1] example and it looks like combining parsers to me. If you need to make regex more verbose, better use parser combinator library when available. RegEx benefits compared to parser combinators other than compactness aren't obvious to me.

[1]: <https://github.com/VerbalExpressions/JSVerbalExpressions/tre...>

qrobit commented on Upcoming Windows 11 builds cannot install without internet and Microsoft Account   infosec.exchange/@wdorman... · Posted by u/tech234a
janwillemb · 5 months ago
It is very hard to use Android without a Google account. Most people accept that. They must have learnt from that.
qrobit · 5 months ago
Is it? I use Android without Google account (with services though). No app forces account on me, there's always option to sign in through other platform or directly via email.
qrobit commented on How do you process the news?   alexschroeder.ch/view/202... · Posted by u/surprisetalk
intrasight · 6 months ago
I strive to only read news that I pay for and I think that info gaps are a risk worth taking to maintain my mental health.

I only subscribe to weeklies. I no longer see much value in daily news.

qrobit · 6 months ago
Genuine question: do you consider Hacker News news? Because I believe answer is yes (judging by the name). Maybe it would be good idea to once a week open some site that aggregates top HN posts of the week and treat it like weekly newsletter

I guess every blog infrequently emitting posts can count as weekly news too, you don't even need to aggregate anything. RSS definitely helps to keep everything in one place though

u/qrobit

KarmaCake day41January 11, 2024View Original