Hacker Newsnew | past | comments | ask | show | jobs | submit | Irish's commentslogin

OOP and FP are not mutually exclusive.

Inheritance over composition, Internal class state, Imperative state mutations

Only the last one is important. Internal state can exist in FP its just either immutable or private. I think even hardcore OOP people encourage composition over inheritance as much as possible and class based inheritance is not anti-thetical to FP (see scala)


only if you believe the java way is the simplest way.....which I don't think is true


Good point! I absolutely agree with you, and it's very likely I've misread the parent post. It's just that sometimes I hear people at my workplace conflate "the simplest way" with "the way I'm more familiar with, coming from Java".


should have put an example to help clarify. For example, instead of throwing implicits around, i'd recommend they manually declare arguments like ExecutionContexts. Also sometimes the best way to teach someone from an OO background, is to first let them write their code imperatively, then work with them gradually to move to more functional approaches.


exactly, if its a java dev you are re-training their solutions will probably java in Scala, if its a javascript or haskell dev they would different probably. Whats interesting to me at least is if its someone with no previous experience.


european space agency is/was actively hiring scala devs specifically



nah


Anyone in europe having trouble with github this morning? I cant get bower to install and it fails with cannot connect to github error, status page seems to suggest everything is working


What was their decision?


It's on the front page too, but here's the link:

https://petitions.whitehouse.gov/petition/remove-united-stat...


Total brushoff.


keeping your credentials safe instead of relying on amazon sounds a lot easier to me


It's not either/or is it? This is something that is one of the biggest incentives to steal credentials: it is immediate, untraceable cash. (bitcoin.)

your argument is like saying a daily withdrawal limit (like $500) you can lift at any time isn't sane, because "keep your card and PIN safe" sounds a lot easier. Well, yes, but the point is your card/pin can (and does) get stolen, and so do Amazon credentials.

I just don't understand why they don't add that extra layer.

(Well, I can understand. If 98% of the clients with stolen access are huge companies that have no idea whether their charge should be $170 or $85,000 per month and are happy to pay either, then the policy might make sense to Amazon. But that doesn't seem likely, as they go out of their way to try to reach you and notify you that this might be happening. . .)


I wasn't making an argument but I see where you are coming from. with your bank card analogy, at least here in Ireland there is no liability on the account holder for theft or fraud anymore so even if you don't keep those things safe the bank takes the hit. That seems to be the strategy amazon is taking at the moment, if that gets too expensive for them i am sure they will invest in another layer of protection. Now that I think about it it also seems like this is an opportunity to win the loyalty of a customer. By contacting them, explaining the problem and the solution and then by waiving potentially large charges from their account without hassle they are garnering a lot of trust. Just a random thought that popped into my head


I don't think the foreign country would care unless it was data that was owned or related to an entity in that country.

Its an american owned and operated data center in Irelend (where I live). Presumably the email is 'owned' by an american and the case involves all american actors(cant really make that assumption I guess) so there dosn't seem to be anything to spark the interest of the Irish legislature. Unless you make the leap to the point that now america can just demand ALL the data in that data center which you certainly could.

This isn't really the same as a warrant either is it? They are not demanding to be allowed access to or to search the data center. Microsoft in America is being ordered to hand over a document that they have access to, where that document is seems irrelevant (just playing devils advocate).

Also the chances of any small to medium sized nation (particularly Ireland) getting on their high horses about this is quite unlikely due to the amount of money these large multi-nationals bring here. In fact if this is upheld I imagine it would be another boon for Ireland as the american companies will have to set up even more infrastructure so that they can argue that its a completely separate entity that they simply funnel customers to or whatever. If the companies act first they could even get favorable Irish legislation passed to prevent the type of treaty talked about in the article (although this would be a pretty ballsy move for Ireland)


Presumably the email is 'owned' by an american and the case involves all american actors(cant really make that assumption I guess)

Indeed, sounds like a dubious assumption to me.


It is the EU notbIreland that sets the framework for the legislation. Ireland has little choice.


I didn't down vote you but my initial reaction to your comment was can we please have a conversation related to development without dragging sex into it? I would guess that many had the same reaction.

Discrimination is an issue in Tech, its not the only issue or an issue which relates to every other issues it is an issue, singular.


Jaysus lads lighten up


here here. It's just a catch phrase. Sorta like at Subway where they are "sandwich artists". I doubt they go around calling themselves that.

Anyhow, as a front end "artisan", Laravel is pretty awesome to work with. Especially the Blade templating system.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: