Readit News logoReadit News
flysand7 commented on Why Bcrypt Can Be Unsafe for Password Hashing?   blog.enamya.me/posts/bcry... · Posted by u/enamya
testdelacc1 · a month ago
Does anyone actually use emoji as a password.
flysand7 · a month ago
yea, me (pls dont crack)
flysand7 commented on "Your" vs. "My" in user interfaces   adamsilver.io/blog/your-v... · Posted by u/Twixes
d--b · 3 months ago
The overuse of first person on French official websites also feels weirdly infantilizing.

Clicking a button that says "I register" or "I want to pay for a parking ticket", feels so bizarre to me. It's like the website telling you what to click. Like it's holding your hand.

I don't usually get mad at petty stuff like this, but this one just pisses me off somehow.

flysand7 · 3 months ago
This reminds me a Russian localization of the "Search" bar on some version of Windows 10, which reads something like "Type the prompt to perform search". Also weirdly infantilizing, overly verbose and just plain weird. Had a couple overseas friends ask me a few times why the text on the search bar is so long haha
flysand7 commented on A critique of package managers   gingerbill.org/article/20... · Posted by u/gingerBill
flysand7 · 3 months ago
This article, although is trying to provide some arguments as for why package managers are "evil", I found the argumentation pretty weak/non-descriptive. It's good if you have the experiences that confirm a specific point of view, but I think these experiences need to be explained in some more detail, because people reading your article may have similar experiences and therefore would find it hard to agree with your points - just like me.

To give a concrete example, you said that javascript does not have a definition of a "package" in its langauge. But what does that really mean, and why should it lead to package manager managers? Because for me, a person who has worked with javascript just a little bit, I know package.json exists and most of the package managers I've worked with agree on what the contents of this file mean. If we limit our understanding to just npm, yarn and probably bun, we don't see how that causes or contributes to the dependency hell problem (sure it exists, but how?).

You said that Go mitigates the issue of dependency hell to some degree, but this is an interesting thought, give it more exploration! Why should something like Go not have this problem not be not as severe as in Javascript?

I may not remember the details of what you said in the article and I would like to check, but currently I can't access the site because it times-out for me.

flysand7 commented on .gitignore Everything by Default   pliutau.com/git-ignore-ev... · Posted by u/der_gopher
flysand7 · 4 months ago
There's something similar I've done programming on linux. I've been working on some things in Odin programming language for a while and there are a ton of changes I've made where the commit contained an executable, because when Odin compiler makes the executable it names it after the main package's directory, without suffix.

Once I complained about this to the community someone suggested a clever gitignore hack:

    *
    !*/
    !*.*
This by default ignores all files, except those that have a suffix and directories. I think this is a useful lesson - if you flip which files you ignore you can change the failure mode from "I accidentally committed a huge file into a repo" to "why isn't it working?". The latter can be pretty much be answered by good CI testing (maybe not always though).

flysand7 commented on Lisp interpreter with GC in <750 lines of Odin (and <500 lines of C)   github.com/krig/LISP... · Posted by u/PaulHoule
jibal · 4 months ago
Your understanding is completely wrong. UB means "undefined behavior" -- behavior that is not specified by the language standard or the implementation. UB being exploited by the compiler is a separate issue. Saying that there is no UB is saying that there's no undefined behavior; it is certainly not merely saying that the compiler doesn't exploit it.

I programmed in C for over 30 years and was a member of the C Standards Committee, which originated the language about undefined behavior ... I know what I'm talking about.

> To point out that use after free is possible in Odin is not really a gotcha unless you really are just arguing semantics. That's by design, just like use after free is possible in C or C++ or Rust too.

This completely misses the point and is a failure to understand at every level. Being able to use memory after being freed is not by design -- no one intends it, no one wants it. It's undefined behavior, and a program that does it is buggy. The reason that it's possible is because it's so hard to detect or prevent. To do so requires escape analysis, lifetime declarations, borrow checking, etc. etc. And no, use after free is not possible in Rust--not in safe code. It's hard to respond to that statement without being rude, so I will say no more.

flysand7 · 4 months ago
As someone who knows what they're talking about, I'm curious to hear from you, why you consider use-after-free an undefined behavior and not an unspecified behavior instead?

Because as far as I know both undefined behavior and unspecified behavior are the behaviors that aren't specified in the language standard nor the implementation. So what's the difference?

flysand7 commented on I saved a PNG image to a bird   youtube.com/watch?v=hCQCP... · Posted by u/mdhb
flysand7 · 5 months ago
Watched this video yesterday, and damn, it's really delightful watching experts make content about things they are passionate about. This love and passion is contageous, and even me, who up to this point knew almost nothing about birds has gained a new appreciation and love for these creatures. The fact that they can copy sounds is kinda incredible, and makes me want to listen more to them singing.
flysand7 commented on I saved a PNG image to a bird   youtube.com/watch?v=hCQCP... · Posted by u/mdhb
fudged71 · 5 months ago
Wait. They should try a QR Code because it has error correction built in
flysand7 · 5 months ago
I don't think the birds will like the sounds of that :)
flysand7 commented on SQL Injection as a Feature   idiallo.com/blog/sql-inje... · Posted by u/foxfired
Tostino · 5 months ago
In Postgres they absolutely can. They are all just happening inside the same transaction scope unlike stored procedures.
flysand7 · 5 months ago
Speaking of postgres, you don't even need a function, you can just use RETURNING clause of a modifying query to provide data source for the select:

    select *
    from (
        delete
        from users
        returning id
    )

flysand7 commented on How does a screen work?   makingsoftware.com/chapte... · Posted by u/chkhd
grishka · 5 months ago
All our senses are.
flysand7 · 5 months ago
Except the pain of hitting your pinky on a corner. That one's very real
flysand7 commented on "Just Fucking Ship It" (Or: On Vibecoding)   coal.sh/blog/pandu_bad... · Posted by u/coal320
coal320 · 5 months ago
I'm bad at web stuff and they kinda looked gross! It was only supposed to be on mobile. I'll fix it!
flysand7 · 5 months ago
I really suggest not removing them as they are a great way to estimate the length of the article (which was the first thing I tried to do on your page and had to spend a good minute first looking for a scroll bar, and then holding Page Down key).

u/flysand7

KarmaCake day135October 20, 2023
About
Low-level programmer, like C and stuff
View Original