Readit News logoReadit News
mden commented on Scroll-Driven Animations   scroll-driven-animations.... · Posted by u/javatuts
dylan604 · 7 months ago
And yet you missed the self-deprecating humor in acknowledging FF users is such a small number, it's me and one other person. Did you think that was a literal number I believed to be true?
mden · 7 months ago
My (personally) humorous interpretation was that they were extending your joke by implying the only users using FF are devs and they are the ones that care.
mden commented on The humble for loop in Rust   blog.startifact.com/posts... · Posted by u/todsacerdoti
mden · 9 months ago
Anyone have examples where fold leads to easier to read code than a for loop in Rust?
mden commented on Failure analysis of the Arecibo 305 meter telescope collapse   nap.nationalacademies.org... · Posted by u/mhb
mden · 10 months ago
I think people are missing that you're being satirical (maybe there is a better word for it?). Unless I'm the one being wooshed.
mden commented on Fraud, so much fraud   science.org/content/blog-... · Posted by u/nabla9
madmask · a year ago
I agree with you, science fraud is terrible. It pollutes and breaks the scientific method. Enormous resources are wasted, not just by the fraudster but also by all the other well meaning scientists who base their work on that.

In my experience no, most fraudsters are not evil people, they just follow the incentives and almost non-existent disincentives. Scientist has become just a job, you find all kinds of people there.

As far as I know no-one goes to jail, worst thing possible (and very rare) is losing the job, most likely just the reputation.

mden · a year ago
"most fraudsters are not evil people, they just follow the incentives and almost non-existent disincentives"

Maybe I'm too idealistic but why does following incentives with no regard for secondary consequences not evil?

mden commented on Please do not attempt to simplify this code   github.com/kubernetes/kub... · Posted by u/whalesalad
jsbg · a year ago
> // 1. Every 'if' statement has a matching 'else' (exception: simple error

> // checks for a client API call)

> // 2. Things that may seem obvious are commented explicitly

Honest question: Why invent "safety" practices and ignore every documented software engineering best practice? 2,000 line long modules and 200-line methods with 3-4 if-levels are considered harmful. Comments that say what the code does instead of specifying why are similarly not useful and likely to go out of date with the actual code. Gratuitous use of `nil`. These are just surface-level observations without getting into coupling, SRP, etc.

mden · a year ago
> Why invent "safety" practices and ignore every documented software engineering best practice?

That seems unnecessarily brutal (and untrue).

> 2,000 line long modules and 200-line methods with 3-4 if-levels are considered harmful

Sometimes, not always. Limiting file size arbitrarily is not "best practice". There are times where keeping the context in one place lowers the cognitive complexity in understanding the logic. If these functions are logically tightly related splitting them out into multiple files will likely make things worse. 2000 lines (a lot of white space and comments) isn't crazy at all for a complicated piece of business logic.

> Comments that say what the code does instead of specifying why are similarly not useful and likely to go out of date with the actual code.

I don't think this is a clear cut best practice either. A comment that explains that you set var a to parameter b is useless, but it can have utility if the "what" adds more context, which seems to be the case in this file from skimming it. There's code and there's business logic and comments can act as translation between the two without necessarily being the why.

> Gratuitous use of `nil`

Welcome to golang. `nil` for error values is standard.

mden commented on Google fires employee who protested Israel tech event, shuts forum   cnbc.com/2024/03/08/googl... · Posted by u/cbHXBY1D
mise_en_place · a year ago
That's the beauty of the free market, you have the freedom of choice. You can vote with your wallet or your feet. You can leave if your personal ethics and morality no longer align with the organization you're working for. A business doesn't owe you a paycheck simply because you think you're on the moral high ground.
mden · a year ago
I'm not saying you're entitled to a paycheck - a company has the right to fire you for your differences in politics. But if you frame it as a relationship, communication can help both sides as long as it's done with some mutual understanding. There are times companies listen to their employees and change their stance. And if they don't then you still have the ability to leave. That said it also matters how differences in views are expressed, I doubt there are many cases where yelling is effective..
mden commented on Google fires employee who protested Israel tech event, shuts forum   cnbc.com/2024/03/08/googl... · Posted by u/cbHXBY1D
mise_en_place · a year ago
My old manager put it best: No politics and religion in the workplace.

Seriously, it's as simple as that. We are here to work, not philosophize about politics and current events.

mden · a year ago
A lot of work can be inherently political. If your company pivots into mass surveillance is it unreasonable to speak up if it's against your ethics framework?
mden commented on SpaceX launches 4 people for private mission to the International Space Station   npr.org/2024/01/18/122519... · Posted by u/andsoitis
GMoromisato · 2 years ago
There are literally only three organizations on earth capable of putting humans in orbit:

   1. SpaceX
   2. China
   3. Russia
I say "SpaceX" instead of America or NASA because the Axiom missions show that SpaceX can launch people independent of NASA.

India may develop their own capability to put humans in orbit before Europe does, which is amazing to me. [Though admittedly that's only because Europe has different priorities--not necessarily a lack of ability.]

mden · 2 years ago
Isn't having a private entity be able to do what previously required a nation a good sign for that nation? The idea that the USA cannot re-obtain that capability again seems silly to me and there are a lot of pros for having private companies pushing the state of art forward.
mden commented on Meta Reports Third Quarter 2023 Results   investor.fb.com/investor-... · Posted by u/loeg
matt_s · 2 years ago
Technically adept people aren't the target market for their advertising platforms but yet they are staffed by ... technically adept people. It confounds me how anyone would want to work there. The money must be really good.
mden · 2 years ago
Money and tech. Their dev experience is imo better than Google. I wouldn't be surprised if it's the best out of all large tech companies.
mden commented on Bard now open to use   bard.google.com/?hl=en... · Posted by u/bemmu
devnull3 · 2 years ago
I tried:

Question/Task: Write a lock implementation in Rust

I got this (lol):

    use std::sync::Mutex;

    struct Lock {
        mutex: Mutex<()>,
    }

    impl Lock {
        fn new() -> Lock {
            Lock {
                 mutex: Mutex::new(()),
            }
        }

        fn lock(&self) -> MutexGuard<()> {
            self.mutex.lock().unwrap()
        }

        fn unlock(&self) {
            self.mutex.unlock();
        }
    }

mden · 2 years ago
I mean, it's not really wrong, is it? :D Have you tried the same with gpt4?

u/mden

KarmaCake day554August 28, 2013
About
email: mdenchev'-'gmail.com
View Original