Ex.
def fact(n: Int) = if (n == 0) 1 else n * fact(n - 1)
will fail to compile and tell you that you need to provide a return type.
400 karma · joined October 26, 2016
Ex.
def fact(n: Int) = if (n == 0) 1 else n * fact(n - 1)
will fail to compile and tell you that you need to provide a return type.
You can do a big for comprehension, or a if/else, or a big chain of function calls, etc. without having to add brackets.
In practice you often end up not really using braces that often when writing FP style Scala.
Your body can handle massive amounts of vitamin C and D, so its a bit surprising to hear that supplementing the (generally) small amount you'd find in a vit D pill could be harmful.
Know any good nginx books or courses?
Cloth being better is something else entirely, nor was I suggesting that disposable diapers be discounted with taxpayer money. The point was "Why does the poor in the richest country in the world have to worry about something as inane as affording diapers in 2018?"
I agree that people should use cloth - but the response to "Hey, this poor person can't even really afford to buy diapers!" shouldn't be "wow that damn government making her dependent on welfare bux, shes so dumb she doesn't even know about cloth too!". It just reeks of being completely out of touch with the poor experience in America. Maternity leave isn't really a thing for someone like her - should she maybe be working an extra job or two to afford better diapers? Even if she doesn't, how do you know she has the time to deal with changing and washing cloth diapers? Being a stay at home mom doesn't exactly work as well as it did in the 50s or 60s, and she doesn't have a husband working for a tech company or whatever who can support a family on a single salary.
>...certain people leech, do not want to find a job...
This is privilege and propaganda at work right here. Being so far removed from what its like to be poor that you unironically believe some bullshit like "poor people just want government bux for free".
>I grew up with cloth... Not because my family was poor, but because other types weren't available... I don't see that cloth diapers are a poor-peoples choice.. Is it below some "level” you think should exist?
Absolutely - I expect that the poor in the richest country in the world aren't forced to regress to the standards of 50-60 years ago for their children. There's nothing wrong with cloth diapers or the fact that you were brought up with them. The issue is that people like you don't think its a problem that somebody in the USA in 2018 has to get cloth diapers not because they want to, or their baby's skin handles it better or whatever, but because they literally cannot afford not to.
What the fuck is with this race to the bottom? Yes, I absolutely expect there to be certain standards of living in different countries that are upheld by society and government. How am I the crazy one here? I don't want to live in a fucking country where I'm making 6 figures, comfortable in my air conditioned home while down the street somebody has to shit on the street because public toilets were abolished because muh taxation is theft or something.
There's nothing shameful about being poor or different countries having different standards of living - there is something shameful about a society which looks at somebody struggling and instead of lending a hand tells them to pull themselves up by their bootstraps.
What you're suggesting is obviously the pragmatic choice - obviously, if she's poor as shit and can't afford regular diapers, using reusable cloth ones is a great solution. But that's not the fucking point of the article - its $CURRENT_YEAR in the richest country in the world, this absolutely shouldn't be a thing that happens in the first place.
I'm not even a communist or anything, but its absolutely insane to me that Americans don't realize how "third world" their country is in some ways. Do you think that back in the 50s and 60s when your parents or grandparents were buying the first mass produced disposable diapers, they would have expected 60 years later people would be forced to go back to washable cloth diapers because they couldn't afford regular diapers? What a stupidly low standard to have for the wealthiest country in the world.
Capitalism is an awesome thing, but it seems conservative pundits and the rich have convinced a lot of people that you can't have both a strong, capitalist free market economy along with a government that actually gives a shit about its citizens and not just the top 10,000 guys with the biggest wallets or whatever.
Given who this is, and the shit they pulled in NYC with the kiosks, I don't trust them for one second to be doing this for any reason other than to enable broader surveillance/data collection using cameras, microphones, etc. in public spaces. All Google is interested in is collecting more data so that they can build better systems to collect more data with and shove ads down your throat + sell your information to the highest bidder.
That, and/or require stricter licensing for larger cars. Giving a skittish person who doesn't "feel safe" in a normal car an even bigger car where they're more insulated from their surroundings is a recipe for disaster.
I was going to do my blog entirely with org-mode+org-publish, but it spits out a mess of HTML and also a small bit of js for some reason, so I'm just writing html directly myself now.
I don't really find writing html myself all that annoying or anything, but it'd be nice if I could get org to generate really clean/simple HTML for me that I could then write a small script to parse and wrap in divs I've defined for styling.
I don't understand why these electron editors are popular at all. With all due respect to the people working on them (because it really isn't their fault for the most part), they're bloated slow pieces of shit. I don't like electron in general, but its an especially bad choice for a text editor intended for developers.
If you don't like vim or emacs, sublime does what the electron editors do but better. Its probably the most performant of all the text editors I've used; vim and emacs both don't like gigantic logfiles, but sublime handles them without issue. The only bad things I can say about it are lacking vim emulation and worse dev experience than Emacs. But then again, I've never used an editor anywhere near as nice as Emacs in terms of language integration for a lot of the languages I work with.
Its kind of frustrating constantly reading posts where people shit on functional programm(ers|ing) for being too ivory tower-y or whatever, when its kind of hard not to be when a lot of the older FP guys have spent the last like 20-30 years going "yo this is dope you guys should really be doing this" and getting largely ignored. State machines are super commonly used in languages where you can (easily) construct ADTs and pattern match on them.
If I had to build a company today Kotlin would definitely be at the top of my list; I may love other languages much more, but Kotlin and C# are easily at the top of the developer experience imo, since they've got great tooling/ecosystem/support and both are very approachable/average languages that won't really scare anyone away like how Haskell might (despite it being one of the most underrated/most scare monegered/most misunderstood languages out there imo)
ML on the JVM seems like a nice niche for it, but I'm not sure I really have seen libraries or Scala devs sorta advertise their style/library as ML inspired. I've seen OCaml mentioned as an inspiration to Scala before, but there are some notable differences between the two (e.g. inheritance vs structural typing)
I see this get mentioned all the time in respect to FP communities in particular but I really can't relate at all. And its not like I haven't asked my fair share of stupid questions in these communities or anything.
I'm not really sure of the future of the language. Most of the super committed community members are fans of the Haskell inspired style, which is great (its how I write Scala, personally) but I'm not sure why you'd then choose Scala over Haskell, or if you need the JVM, Eta or even Frege. The majority of 'casual' Scala people seem to use it as Kotlin with implicits more or less, and as more and more libraries and features come up for Kotlin I'm not even sure that it makes sense to use Scala for those people, given the larger backing, better tooling, easier on boarding, etc for Kotlin.
I'm kinda surprised more companies don't take the risk - its not like these are bad languages, either. There's still a huge chunk people (in terms of absolute number, not portion of total devs of course) out there playing around with languages like Elm or Haskell or a Lisp/Scheme, or OcaML, F#, etc. who'd be super excited to use those languages professionally.
Emacs in general is highly underrated due to years of RSI/muh loading time shitflinging. Evil mode is by far the most complete vim emulation out there, and other than JS pretty much every language I write has been a more enjoyable/easy experience on Emacs than it was on vim or st3.
Obviously I don't want them to make the pro into an ugly thinkpad style thing for the sake of more battery and ports, but I think plenty of people would've been perfectly fine with the new mbp mostly just being an upgrade to internals and maybe the screen. Instead, they dumped the Esc key for a novelty feature pretty much nobody really cares about, dumped the awesome magsafe charging, and got rid of a bunch of ports - not that the old version had a ton in the first place - for pretty much no good reason.
If there were another laptop on the market that Just Worked™ anywhere near as well as the mbp, I definitely would've switched but as it is I'm sticking to my late 2014 model and hoping the next gen mbp is less of a flop.