Slashdot Mirror


User: reanjr

reanjr's activity in the archive.

Stories
0
Comments
2,025
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2,025

  1. CA on Suicide of an Uber Engineer: Widow Blames Job Stress (sfchronicle.com) · · Score: 4, Insightful

    As a white midwesterner working in CA, I can sympathize with the idea that CA tech companies have toxic cultural problems. I can only imagine what it's like to be a black dude.

    CA runs on passive aggresive behavior. It can be psychologically damaging to someone who grows up and has worked with real people their whole life.

  2. Re: Do we really need more people? on An Artificial Womb Successfully Grew Baby Sheep -- and Humans Could Be Next (theverge.com) · · Score: 0

    Who are you to dictate to others to ignore a biological imperative? You sound like all those scientists who thought eugenics was going to be awesome.

  3. Fi on Slashdot Asks: Which Wireless Carrier Do You Prefer? · · Score: 1

    Google Fi.

  4. Re: Cultural ethics won't allow work-free life on Billionaire Jack Ma Says CEOs Could Be Robots in 30 Years, Warns of Decades of 'Pain' From AI (cnbc.com) · · Score: 1

    Because the cost of care is driven by the non-single payor market, leaving VHA underfunded.

  5. I do to an extent on Ask Slashdot: Do You Like Functional Programming? (slashdot.org) · · Score: 2

    While I wouldn't want to program in a pure functional, no side effect language, a good mix of differing paradigms seems to me to be the way to go. Java and .NET went overboard on the OOP, and it leads to these poor abstractions in many cases (I.e. AbstractFooProcessor), which are much better approached with some FPd

    Pure functional code is super easy to reason about, though, especially asynchronous code. OOP has its role, but oftentimes you find yourself on loose footing, with its focus on always changing state. This can be addressed with good practices, which leads you down class hiearchy hell. Throwing some FP in the mix gives you (mostly) the best of both worlds.

  6. Seems pretty relevant since the question "who sells Linux PCs" comes up on /. every two months, and the response is always "System 76" to which someone always replies, "they just rebrand Company X's laptop, why not just buy one of those instead?"

  7. Re: Louisiana is one big sinkhole on Louisiana's Governor Declares State Of Emergency Over Disappearing Coastline (npr.org) · · Score: 1

    No one has to set prices. You simply set emission standards by granting a certain number of carbon credits which can be spent to pollute. The price is determined by free trade of said credits.

    Still a dumb idea, because using markets to solve environmental issues (especially global ones) is terribly inefficient and subject to abuse.

    We COULD solve water quality issues with no regulation on pollutants, but by slicing up the waterways with private rights. Most people rightly see this as a horrible idea that only works on paper.

    For some reason, those people seem to think it will work for carbon, though.

  8. Re: Seriously? on Silicon Valley's $400 Juicer May Be Feeling the Squeeze (bloomberg.com) · · Score: 1

    Ahhh, but there is a distinction between a nutritionally healthy product and a health food product. One is defined by science and physiology, the other is defined by how it appears when you post about your consumption on Facebook.

  9. Event Horizon on Slashdot Asks: What's Your Favorite Sci-Fi Movie? · · Score: 1

    Loved Event Horizon. Easily the best horror sci-fi movie next to Alien.

  10. Re: Golden age of remakes maybe on Slashdot Asks: What's Your Favorite Sci-Fi Movie? · · Score: 3, Funny

    No true Scotsman would agree with your assessment.

  11. Re: How does a company like Uber lose $$? on Uber Face Fines Over Drunk Driving Complaints -- And Lost $2.8 Billion Last Year (usnews.com) · · Score: 1

    Network effects, deals, name recognition: the usual. Even if they only dominate the world market for a half decade, it could be worth a shit ton.

  12. Re:How does a company like Uber lose $$? on Uber Face Fines Over Drunk Driving Complaints -- And Lost $2.8 Billion Last Year (usnews.com) · · Score: 2

    Their business model appears to be effectively based upon self-driving vehicles. Human drivers are just a stop-gap for bootstrapping the business, so the investors subsidize your ride to get market share now, and later they will reap the profits when they can fire all their drivers.

  13. I am terribly sorry about the formatting.

  14. I do not understand what is hard about encapsulating code. There are no hoops. Module encapsulation just works. What am I not understanding? // readval.js
    module.exports = () => 42; // other.js
    const readval = require("./readval");
    const otherreadval = require("someone-elses-readval");
    console.log(readval());
    console.log(otherreadval());

  15. I agree. Working with shitty devs sucks. You can write Fortran in any language.

  16. Re: K&R, just pretend you're at a REPL. If what you're doing would confuse a REPL, then it's not going to work as expected in JS.

    That said, very little JS uses K&R for anything because it is an absolute mess when you start using inline callbacks. If you want to be a special snowflake, then you can use whatever format you like by using a var/const instead of a literal, but perhaps you should get over yourself and just do it the "normal" way.

  17. If you don't know what types you're working with, why don't you just cast them?

    String(a) + String(b) or Number(a) + Number(b) is pretty easy.

    If you're arguing that JS exposes you to your own sloppy conventions, then I agree.

  18. Here's a quick study guide, if this is too hard to mentally map type checks:

      * if it's a degenerate value, such as null or undefined, use ===
      * if it's a scalar like a number or string, use typeof
      * if it's an object (yes an array is an object), use instanceof for classically inherited types (which includes all buit-in types), and isPrototypeOf for prototypally inherited types.

  19. Tough to say. Global-everything is a valid paradigm for tiny projects. If tasked with re-doing JS, I'd think long and hard about invalidating a legitimate paradigm, even if it's a paradigm I wouldn't use. That said, until using JS, the thought would not have occurred to me that you might want that.

  20. Says someone who doesn't write JS for a living. Any problem "namespaces" are intended to solve are addressed trivially with just module names, and the paths inside them. If you feel like you need a namespace in JS, it's probably because you made everything global.

  21. If you declare all your vars at the beginning of a scope, how is it different than outer-inner scoping?

  22. I'm typically targeting an older version of the language which doesn't support block scoping yet. Every once in a while, I kind of wish I could block scope a for loop counter. But 99 times out of 100, I'm using something like .forEach(), or .map(), or .reduce(), which give you a function scope, anyway, so it's not too bothersome. And block scoping IS available in the newer version of the language, so it's really an annoyance I push on myself. I certainly can't blame the language for not using a feature it actually supports.

  23. Fuck I almost never use bitwise or, either, but god damn, it doesn't bother me that it's available.

  24. So, if you have no use for a sloppy equality test, why would you use it? I personally can't remember the last time I've used it, but having an operator I never really have a use for has never once impeded my ability to get shit done. Do you have some sort of arthritis that makes that third "=" painful to type, or is the arthritis in your head?

  25. Idiosyncratic? Sure. But it takes literally an afternoon to learn the entire language. Unless you're a moron.