89 karma · joined Dec 23, 2013 (12y ago) · 31 submissions
comment 12y ago · link · parent
comment 12y ago · link · parent
It's like using a different mail client or a different bug tracker; it doesn't affect what you can express or how can you build a program. It's just Version Control.
comment 12y ago · link · parent
Yes, this is systemic. Are you trying to convince me that the situation isn't fucked? For all the claptrap about how the economy isn't a zero-sum game and that the tide lifts all the boats and so many other platitudes, there's no denying that the quality of life of most people in the world is nothing but a point in a gradient of declining living conditions, everyone benefiting from the labor of people with fewer options who have to work and live worse than them.
Anyhow, how much do you think it would raise the cost of the things you use, just to ensure safe working conditions at factories? For jeans, it's a paltry 90 cents.
http://hereandnow.wbur.org/2013/07/10/bangladesh-factory-saf...
Yes, the poorest in my country would probably have to think twice before spending even 90 cents, hell tell that to the homeless. The vast majority of the poor here probably wouldn't mind, given that it's a mere drop in the sea of debt they are drowning in, and that's a problem with many facets, on its own.
But there's quite a lot of room for diminishing the unfairness of this scheme, even if the solution feels even cosmetic at times given the broader problem of exploitation and inequality.
comment 12y ago · link · parent
That's sort of what you expect from any given implementation of a data structure and its related algorithms, though I imagine that some specialized implementations benefit from having them tailored to their concrete types. Examples, anyone, please?
comment 12y ago · link · parent
That sucked in Java at the time, though, when you had to screw around casting Objects in your code, I don't see why people would prefer that.
comment 12y ago · link · parent
But yeah, I have always liked the argument of throwing a curve ball at the kids who were already programming in imperative languages. It also levels the playing field and those who hadn't had any prior experience tend to perform better without feeling so inadequate next to their peers.
comment 12y ago · link · parent
Edit: not that we can conclude anything from the lack of performance, though, we don't know how it was written.
comment 12y ago · link · parent
I have just read this, not being from Canada, but this Harper fellow seems to have an internal war with the institutions of the State in charge of the monitoring and protection of the environment and a budget deficit, so he went forth and dismembered the one in charge of water, despite what his advisers said, and what's common sense nowadays, that water ecology is in danger world wide after heavy abuse.
comment 12y ago · link · parent
> Of course it is strongly typed! All expressions have type Univ.
Have you used PHP? You'll come to appreciate the differences between the different "unityped" languages.
> All my C++ programs are commonly written in a way that preserves referential transparency, and clearly distinguishes between objects that are meant to be mutated (non-const) from those that are not meant to (const). That still does not make C++ a pleasant language to program in.
Does that say anything about Lisp? Nope, not at all. It isn't like C++ is comparable to Lisp, despite the efforts put by C++ programmers to wrest safety from a language designed as a superset of the language of cowboy-coders par excellence, its true nature as an imperative language with raw pointers may rear its head at any point. Not to say that Lisp has had more facilities up to this point than C++ to write referentially transparent programs.
> Spooky action at a distance. Me no like. :-(
Depends on the Lisp. Common Lisp's global variables are mutable and dynamic. Me no like either. In Racket and Clojure you can declare variables to be explicitly dynamic, and they can be rebound within special blocks, locally, sort of. Not that it's something anyone should use frequently.
> Will the result typecheck?
Does the if keyword typecheck?
comment 12y ago · link · parent
As for macros, they are merely functions that transform expressions. They can be somewhat unpleasant to read, but they are basically that.
comment 12y ago · link · parent
And I doubt I, and many here, will ever make or work with a company which can have the leisure to rewrite the language implementation.
comment 12y ago · link · parent
You can easily write one with Rails over just a few months of maintenance. I hate, hate having to do a damned autopsy to trace all the @instance (read, global) variables copied and inserted into the objects that you never create yourself, -because Rails devs are apparently above having to endure the savagery of passing arguments to their methods- and having to grep every single function that gets automatically included from everywhere in the project into the namespace.
comment 12y ago · link · parent
No more than any other language or product written in such.
> Of course it's ugly, but who besides a bunch of snobs and people who actually can't use it really cares? Who should care?
You see, this is a big part of what's wrong with the PHP community, the apathy and immaturity. How on Earth is dismissing the reasoned criticism from professional peers and academics as "bashing" from "haters" or "snobs" an appropriate response?
comment 12y ago · link · parent
I mean, many of the endless list of functions imported into the default namespace were named so that their hashing distribution worked well with strlen for a hash. How much work went into working around the fact that just about the worst hashing function that you can come up with in three seconds was used?
And we can enumerate such blunders all day here. There are many better languages with good tooling, and guess what, they're free. I wouldn't use PHP if I can avoid it, and there's ample chance to avoid it nowadays.