HackerTrans
TopNewTrendsCommentsPastAskShowJobs

smw

957 karmajoined il y a 16 ans
https://twitter.com/smw/

comments

smw
·il y a 4 jours·discuss
Why would it go to Meta?
smw
·il y a 6 jours·discuss
Even the 'worst' of the ORMs (according to the people in these threads) makes this very easy:

  users = User.find_by_sql(<<~SQL)
    SELECT users.*,
           COUNT(posts.id) AS posts_count
    FROM users
    LEFT JOIN posts ON posts.user_id = users.id
    GROUP BY users.id
    HAVING COUNT(posts.id) > 10
  SQL

  users.first.posts_count
  # => 17
smw
·il y a 6 jours·discuss
I'm firmly on the ORM side of things, despite knowing SQL very well -- but your IDE/editor can fix this with bare sql. Try using Jetbrains Datagrip or the DB integration in Idea or one of the other language-specific IDEs.
smw
·il y a 6 jours·discuss
Any concurrency / parallelism?
smw
·il y a 9 jours·discuss
I'm not defending anything about this, but it does have a telescoping torso so it can get to 'human height' when needed.
smw
·il y a 11 jours·discuss
The maintainer and upstream are the same person
smw
·il y a 16 jours·discuss
Sure they do. All the time! For example, if you want to use a script in Google Docs these days, you have to go through an oauth flow to give that script's app permission to do certain actions in your Docs.
smw
·il y a 17 jours·discuss
Need to mention sshuttle [0] here, as it magically solves a bunch of these problems without constant reconfiguration

[0] https://github.com/sshuttle/sshuttle
smw
·il y a 18 jours·discuss
Can do fantastically weird stuff with Lua scripts in Redis/Valkey
smw
·il y a 18 jours·discuss
> The reason pvp doesn't work in a persistent world like an MMORPG is because there are no stakes.

See Eve Online
smw
·il y a 19 jours·discuss
A lot of them are heavily invested in index funds that added SpaceX at IPO due to market cap.
smw
·il y a 22 jours·discuss
Why would you expect something in your home directory to affect other users?
smw
·le mois dernier·discuss
The article talks about using --mlock
smw
·le mois dernier·discuss
I think we need a citation about the libertarian / capitalism thing? I know a lot of leftist engineers. Look how blue the bay area votes?
smw
·le mois dernier·discuss
I think the idea that they raise outdoor temps over a wide area is a myth spread on facebook. The physics doesn't work out.
smw
·il y a 2 mois·discuss
USB sticks are infamously unreliable, not a great backup plan
smw
·il y a 2 mois·discuss
It's mentioned elsewhere, but check out DeskFlow (oss) https://github.com/deskflow/deskflow
smw
·il y a 2 mois·discuss
Or just ask if you might want to do something productive while you wait for a train or sit in a taxi? Better than doom scrolling. Maybe you're working on a fun side project.
smw
·il y a 2 mois·discuss
docker on macos runs in a linux vm
smw
·il y a 2 mois·discuss
goroutines make building scalable network (web) servers trivial and fast. I'm not a big fan of the language, but the runtime is fantastic.