Better HN
topnewbestaskshowjobs
Log inSign up

likeclockwork

801 karma · joined Sep 24, 2012 (14y ago) · 595 submissions

Submissions

comment 7y ago · link · parent

> screen-capped

People are upset that others are taking screenshots of their public posts?

comment 7y ago · link · parent

So. Your old (2011), low tier, graphics hardware doesn't work on Linux because AMD scrapped their old terrible driver and abandoned it in their new driver? The company you bought your APU from dropped support for you, what has that to do with Linux? How is that not just another case of another company dropping support for Linux on a product after they already have your money? (Pennies on the dollar, I think you called it.)

AMD's low-middle tier hardware is known to be mediocre, their drivers are known to be poor, and they're also known to drop support for hardware much faster than their competitors.

Yeah, you can run Linux on nearly anything.. but that doesn't mean you should try to sit in front of an old machine running old low quality components from manufacturers that don't support their low margin products.

comment 7y ago · link · parent

I'd expect CPU rendering to work pretty well on a game from 1996. I could be wrong though.

comment 7y ago · link · parent

The Steam hardware survey doesn't really support your claims about Linux hardware specs vs Windows: https://store.steampowered.com/hwsurvey/Steam-Hardware-Softw...

Let alone MacOS, which is more supported than Linux but has comparatively much poorer hardware stats.

comment 7y ago · link · parent

How would you elect someone to get that done when every issue is tied to a hundred other issues in the same candidate and basically none of them will have any meaningful progress made during their term?

Specific opinions cannot be expressed by electing a "representative".

comment 7y ago · link · parent

Why would anyone generate YAML as a string when JSON is valid YAML and can be generated programmatically?! Why??

comment 7y ago · link · parent

No specific technology exists until Apple releases it as a product and then Apple has invented it.

comment 7y ago · link · parent

Making mistakes is a crucial part of learning.

comment 7y ago · link · parent

Not everything is about those people.

comment 7y ago · link · parent

Worry about your own eyes.

comment 7y ago · link · parent

If you look at fashion trends-- it's not even trying, the opposite if anything.

comment 7y ago · link · parent

Can a robot be the sole asset, employee, and officer of a corporation?

comment 7y ago · link · parent

JSX adding HTML literals to JS is fundamentally different than embedding PHP in HTML.

comment 7y ago · link · parent

> Until the FOSS community decides to unify behind a single experience [...]

People always say this whenever Linux is under discussion. No one actually wants this. If you want "one-size fits all" use MacOS or Windows and see how that fits you.

comment 7y ago · link · parent

I don't see how 'trying too hard to shoehorn their “two-tone” design into a place it isn’t necessary and doesn’t belong' represents an application of the principle "form follows function".

   Form follows function is a principle associated with
   20th-century modernist architecture and industrial 
   design which says that the shape of a building or 
   object should primarily relate to its intended 
   function or purpose.

comment 7y ago · link · parent

That doesn't sound like "form follows function" to me.

comment 7y ago · link · parent

The Iowans probably drive everywhere at 80mph.

comment 8y ago · link · parent

They're embracing Chromium.

comment 8y ago · link · parent

Those aren't users, those are used. You were the product.

comment 8y ago · link · parent

If you don't have one your status is lower than even that of a homeless person.

comment 8y ago · link · parent

"But actual poverty is a culture and a set of habits that easily pass from one generation to the next."

Wow.

comment 8y ago · link · parent

It's a mixed bag. Some of it was probably improper setup. With mounts and docker exec and such it's easy to go into the container and rails s or rails console and do what you need to do. But you have to deal with user permissions if your app creates files and some other things but you can just use a docker container as a very lightweight VM.

On the other side you have to track down and figure out how to install or build whatever obscure old Ruby version they're using and dirty your machine installing and running services to support the app. All of which is also painful.

I do client work and I'd rather not dirty my machine installing old or random software to work on a project. So having portable local environments works well for me. But they do take some thought to set up and people often don't take enough care in either case to document the procedure for getting things set up to work on it.

comment 8y ago · link · parent

By those definitions you're already wet from your own composition.

comment 8y ago · link · parent

Your first example is pretty malformed. If you're promise-chaining why would you be trying to assign to variables in the outer scope? Why are you assigning to constants? Why are you calling somePromise a second time in the first then?

It's almost a strawman. Anyone would have written:

    somePromise()
      .then(anotherPromiseFuncThatNeedsP1)
      .catch(e => whatever);

comment 8y ago · link · parent

What was his record like?

comment 8y ago · link · parent

I'm not sure I really understand the point of this exercise but I'll play along.

I'm not going to write in that EDN + CoffeeScript pseudocode. I don't really like those kind of types without pattern matching. I do wish JS had keywords though.

Lets use modern JS and pretend that JS objects are simply heterogenous maps of String -> any...

    let cat = {
      talk: () => "Meow"
    };

    let person = {
      thinkingAbout: "Politics",
      talk: (self) => `Have you heard about ${self.thinkingAbout}?`,
      thinkAbout: (self, topic) => self.thinkingAbout = topic
    };

    function invoke(object, method, ...args) {
      return object[method](object, ...args);
    };

    invoke(cat, 'talk');
    invoke(person, 'talk');
    invoke(person, 'thinkAbout', 'TV');
    invoke(person, 'talk');
That'd be one example of a very bootleg object system. If you want examples on how to build an object system so you can do OOP in a language that doesn't intentionally support OO... look into the Common Lisp Object System, or for some object-oriented C code (there's a lot of it out there), or see Chapter 3 of SICP: https://mitpress.mit.edu/sites/default/files/sicp/full-text/...

Both of your new examples are more OO than your last one. CLOS is basically something like what we've been doing + way more effort than either of us is going to put into this.

Your switch statement example was such a straw man it's hard to even say what was wrong with it. Polymorphism in OOP replaces switching on type every time you define a method. This isn't a rule, but I think OOP should be on the opposite side of solutions to the expression problem from switch statements and pattern matching.

Again: In the mind of the average dev any construct that doesn't exactly mirror the semantics of classes isn't OOP. There are people who didn't consider JS to be OO because it didn't have classes. (It still doesn't, but it pretends to so they say "now its OO".) I really can't stress this enough. The languages we were talking about before aren't extreme straw man examples of OOP, like these snippets are.

EDIT: I should add with regard to these examples that I don't think it's necessary that data and behavior be grouped in definition as long as they can be treated so at the site of invocation even if the methods are invoked in the same manner as free functions.

comment 8y ago · link · parent

No, that's just a switch statement. OO is the inverse of that. The objects need to bring their own code with them in some form or another.

So a vtable, a struct/map of functions, a closure around a struct/map of functions, a closure of state, and that sort of thing would be your minimum OO with no real language support.

1
91011
20