801 karma · joined Sep 24, 2012 (14y ago) · 595 submissions
comment 7y ago · link · parent
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
Let alone MacOS, which is more supported than Linux but has comparatively much poorer hardware stats.
comment 7y ago · link · parent
Specific opinions cannot be expressed by electing a "representative".
comment 7y ago · link · parent
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 8y ago · link · parent
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
It's almost a strawman. Anyone would have written:
somePromise()
.then(anotherPromiseFuncThatNeedsP1)
.catch(e => whatever);comment 8y ago · link · parent
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
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.