That being said, I do miss active_support though; Elixir's utility libraries (fox, pipe, croma, etc.) doesn't yet have all the easy automagic that made rails so simple to develop on.
816 karma · joined April 25, 2012
That being said, I do miss active_support though; Elixir's utility libraries (fox, pipe, croma, etc.) doesn't yet have all the easy automagic that made rails so simple to develop on.
By the way, in case core team is reading, what's the motivation behind removing infer_model_view from the render functions?
Literally everything from cars (colorful sells with engine in front and some seats in the middle, brake is left of the accelerator) to desktops (mother board, 4 RAM slots, 1 CPU slot, USB slots, etc.) to stores (carts out front, role of checkout stands next, isle separated by content after) benefits tremendously from standardization, and are what makes modern life even remotely livable.
Non-purple TL;DR: I deal with it by abandoning any sense of pride / shame I might've had.
Granted Elixir's Phoenix framework is not Rails level yet, it's system of plugs and heavy inspiration from rails actually makes it quite useable as a replacement for rails. Also immutability and the associated smaller memory footprint makes it more feasible to run cheaply on services like heroku or aws. Personally, I think elixir is a good boat to jump on to carry us over to the next world of web development.
SV's second biggest lie is that you need the so-called "hockey-stick" growth curve to be competitive in order to be successful. This lie is clever because you're so caught on hockey-stick that you forget to question the premise of competitive. In the beginning of founding your startup, knowing about your competition might help you build your own product, but worrying about your competition is worthless because the world is more than big enough for the both of you (especially considering you don't exist yet). And if you don't have overhead (i.e. you didn't take SV money and hire a ton of SV's cleverest and most paid engineers), the world will always be biggest enough for you to survive.
SV's third biggest lie is coffee can replace sleep. That's not true, and one of your organs (usually your liver, but I've heard stories of kidneys, lymph nodes, beards, and even ovaries) will let you know after a bit.
var deprecated = function(fn) {
console.warn("Deprecated!");
fn.apply(this, arguments);
};
declared... but you (as the user of a framework) still have no real idea where the actual function you shouldn't be calling (the fn) lives in your code (especially since the function can be anonymous)... you just know that the framework is telling you you're using a deprecated function somewhere in the code you wrote.What I really want, and what can't be achieved with your purely in-language solution (and it really is a great solution considering the constraints), is a special form for things like @deprecated such that it straight-up can capture not only the function it's decorating, but also meta-data about the function (e.g. where it's declared, the caller / callee, etc.)
Right now, framework developers use console.warn which, as a function, is usually buried in the framework, and so gives stack-traces that are entirely useless to a developer using said framework (especially if the framework wraps console.warn in some way). A good clean way of declaring macros will allow JS frameworks to not be cancerous to maintain by making the stack-trace for deprecated user-code very easy to spot and correct.
And unlike features such as classes, generators, symbols, and even TCO that are reasonably achievable through clever engineering, macros flat-out have to be special-formed in. But their utility in making JS a much more maintainer-friendly language would go a long way to reducing the misery of us plebeian js users.
And the hilarious thing is, the "trolls" didn't even "win". Reddit's new CEO is implementing even stricter censorship measures, all of it most likely in the hopes of making reddit more appealing for advertisers. If you stand back and look at this whole fiasco from a distance, Reddit higher-ups want to make more money, and in order to do so, they decide they need to curb their more "unsightly" elements. But attacking free speech is a dicey proposition, so what do they do? They hire a woman and make her do it. If redditors are dumb sheep and take it quietly, great. If not, wrap the whole thing around her neck and throw her under the bus (reminds you of the Bourne Trilogy deson't it), then come riding in on a white horse to "save" reddit from "chairman Pao".
And so far, it's working perfectly. The "trolls" celebrate their victory by having the sensationalist media blast them on their sexism, Pao's reputation is utterly destroyed and she's essentially too toxic to employ anywhere, and Reddit still gets to wipe the floor with free speech.
Cool Airbnb
The Tweet of Cthulhu
That depends entirely on your financial structure, your product, and your own lifespan. If you never on-board investors and never depend on a loss-leader strategy for capturing market, you can small-business yourself from you mid-twenties to retirement and beyond. A lot of trade professions do exactly this sort of slow expansion; my neighbors is self-employed plumber and he's been routing tubs for the past two decades.
Rather than having to spend money on extremely bs team-building exercises to get your employees to not hate coming to work, just hire a team of balanced sexes. A bit of flirting, imagined sexual tension, and does-she-like-me-what-do-i-feel-about-him goes a long way to creating an atmosphere where employees don't burn out. (Just make sure to hire non-toxic people and avoid the all-guys-are-rapists / all-girls-are-sluts ideological extremists)
`reduce(collection, [], R.map(fun)) |> :lists.reverse`
is there any chance Elixir's enum core can take a page from Clojure's transducer idea and, instead of implementing map with reduce and [], implement it with transduce and some function that steps?
I've often had the need to map and filter over strings to achieve rails-like features such as #to_url, #classify, #underscore, and #humanize... but being forced to either rewrite Enum functions for strings or constantly peppering in String.split("") and Enum.join("") feels really bad.
If you don't care about any of that and love another person, place, thing, or idea, you can just announce you're married to him/her/it without recognition from the government and just sort of be together.
In the realm of modern-day web-design, most bad design is because the website was built before a lot of these good design principles and conventions were invented (e.g. responsive grids, tons of padding, flex-direction(column), etc.). Next followed by prideful "designers" who steadfastly refuse to use a design framework because the site they're building must be a special snowflake. Next followed by the missing-the-point-followers of RMS (that is, they're not following RMS for the free software philosophy) who plainly look down on CSS and design as something that is beneath them. Finally, I'll give you laziness.
With that slow-down, the feeling of hope that the young unmarried men of China depended on to buoy up their spirits (it needed buoying up because there is tremendous societal pressure for them to find a good wife, but they outnumber girls their age by as many as 17 to 1 in certain cities) just vanished, leaving in its place restlessness and frustration. And if you get a bunch of young, restless, and frustrated men together, you have the historically tried and true recipe for destruction. I guess China's leadership, fearing for government stability, is looking to turn that sentiment outward via war, rather than take it inward via civil disobedience / revolution.
1. What happened to the server fast-boot thing? I was under the impression you guys wanted to ship it with 2.0; has that feature been scrapped / moved into a separate project altogether?
2. There was no mention of the deprecating changes to the initializer API (i.e. the splitting into instanceInitializer and vanilla initializer). Have we gone back to the old initializer API in 2.0?
3. With the removal of action bubbling, do we now have to manually bubble up actions that start in some nested controller but gets handled in application route? For example, say you have an AdminUserController and it has an action that generates an ephemeral flash message, but you handle flash rendering in your application route. Do you now have to laboriously put an actions: { handleFlash { ... } } on every route along the way?
Unfortunately, sex crimes have been on the rise in China.
On the other hand, I've hardly ever come across a profile that felt truly "bad" to me. The one exception would be that one guy whose history of pull requests is filled political-correctness-fueled changes to comments and function names.
But what they didn't know and couldn't prevent, was that their world would soon become (neigh, has already become) the battle ground of 3 ultra-advanced warring alien species: Go, Rust, and Elixir. Backed by unimaginably powerful forces (except Elixir, which is just open-source by Poland's own Jose Valim), the upstart alien languages threaten to herald in a terrifying future for the current 3 powerhouses.
OP's article, and the fact that lots of people are agreeing, is a sign that one of the invading aliens is weakening.
On the other hand, the worst way to go about selecting a framework is, in my opinion, benchmark testing (or looking at some blogger's benchmark tests). Your framework might run a million hello world programs faster than mine as of last month, but you have no idea if the people working on the framework will even be around in the next 6 months when your MVP is actually complete. And if you wind up having to solo-support your own dead framework while concurrently trying to run a small business, good luck finding time to build new features, hiring qualified programmers, and not coming around to hate javascript.
That assumption seems fishy to me if in a real life application, in particular because we assume offering new choices can't fundamentally change the agent/voter's preferences isn't exactly true to life. I'll give a real life, but slightly historically oversimplified example:
Say I am a poor serf living in pre-revolution Russia about a century ago. I am usually offered the following two choices:
A. serve the bourgeois royal family and live off of their scraps
B. die like a dog
Then, one day, Lenin (or similar revolutionary) comes along and offers me:
C. fight for glorious USSR communism
In real life, I would think the offered choice of C would absolutely change my preferences for A and B.
Granted this doesn't invalidate the Arrow paradox in any way, I'm just saying the paradox isn't true to life because one of its core tenants doesn't quite hold.
In a lot of ways, the concern over mass longevity squeezing the world to death is like the concern over AI robots who become intelligent enough to eradicate all of humanity or the gays mass-releasing gay gay-marriage-spores that make all the straight people fall out of love. It's fun to speculate, write country songs about, and produce post-apocalyptic movies around, but being seriously worried about it as a social issue is a little unrealistic.