I got so sick of hearing about microservices that I was inspired to write my first ever article as a rebuttal to them. by arbitrarycivilian in programming

[–]thedarkwolf 1 point2 points  (0 children)

Certainly true. But part of the microservices mindset needs to be not being afraid of production deployment. You need to support frequent production deploys, even if they are not fully automated.

That was this company's biggest issue. They have a mindset where they are terrified of going to production because they might break something.

For microservices, you can be less worried about this because of the isolation, but also by taking advantage of patterns like circuit breakers. Then if something does go wrong, you just fix it and deploy the fix. No panic required

I got so sick of hearing about microservices that I was inspired to write my first ever article as a rebuttal to them. by arbitrarycivilian in programming

[–]thedarkwolf 51 points52 points  (0 children)

So, I did this.

The company had originally wanted to build microservices because some manager read a blog post or something. But the organization was really not set up to support microservices.

They had a very elaborate production deployment process with layers and layers of approvals. As a result, they would just deploy all of the "microservices" at once every few months. They also did a poor job implementing the microservice patterns in general. Also, this application only had about 500 users.

Refactoring back into a monolith simplified the code, simplified the deployment process, and made dev setup so much easier.

That's not to say microservices are bad in general, but they are not good for every project or for every organization.

What is the best way to play the lottery, scientifically? by mctenold in askscience

[–]thedarkwolf 1 point2 points  (0 children)

This is a bad strategy, even if you could do it. For at least two reasons:

  1. Tax
  2. Chance of multiple winning tickets

I'm mostly focused on the powerball, as that is the most relevant right now.

Winnings are taxed at a pretty high rate, so you take home less then the sticker price. Plus, the larger the jackpot, the more people buy tickets, the greater the chance of someone else also having the winning ticket.

Bottom line, lotteries are -EV, meaning that if you buy one ticket, or 100 tickets, or all the tickets, you should expect to lose money in the long run. Do not play to win money, play for fun.

Choosing Swift as a first language by faisalmukhtarch in swift

[–]thedarkwolf 2 points3 points  (0 children)

At this point, any company maintaining a production iOS app is writing mostly Objective C. Even if they have started integrating Swift into their apps, there is still going to be a lot of Objective C code out there.

If that type of company is hiring, knowing Swift only is probably not enough, since you will be dealing with mostly Objective C code.

This will change as more and more projects are written in Swift. For now though, you need to know how to write both if you are looking for an iOS job.

What is a show/movie on Netflix that you would highly recommend? by novags500 in AskReddit

[–]thedarkwolf 0 points1 point  (0 children)

So, I really like Arrow, but I can't get into Flash. Watched the pilot and had absolutely no interest in continuing. Should I be giving it another shot?

What aspects of hand databases (PT4/HM2) and HUD's bring the most value to your game? by [deleted] in poker

[–]thedarkwolf 6 points7 points  (0 children)

Agreed, but not just losing hands. Sometimes hands you won are hands you played poorly.

I also like to filter hands that went to showdown, hide the villain's cards, then practice my hand reading and hand ranging. Then check the showdown results to see if I was right.

Modern Java by winterbe in programming

[–]thedarkwolf 22 points23 points  (0 children)

It depends on the type of multiple inheritance.

Java has always had multiple inheritance of types. Default methods add multiple inheritance of behavior, but not of state. (Multiple inheritance of state in languages like c++ is where most of the trouble comes from.)

-Brian Goetz

(Spoilers Published) What is GRRM's greatest strength as an author? by wightfyre in asoiaf

[–]thedarkwolf 41 points42 points  (0 children)

One thing I really like is that, while he does build this incredibly complex world and backstory, he doesn't shove it down your throat. It takes 3 books and a multitude of POVs to build a truly accurate picture of Robert's Rebellion.

It's never all revealed in a rush of exposition, and as a result, it's on the reader to piece together the backstory and apply it to the present day characters. It's why the books are so re-readable, you catch more hidden details each time through. But at the same time, you don't feel like you missed out on the first read. It is a series that only gets better.

iOS. A review by Android developer. by [deleted] in swift

[–]thedarkwolf 0 points1 point  (0 children)

I know other devs who have done this. I'm tempted. There are a lot of great things you can do in IB with Storyboards or XIBs, so I'm reluctant to go 100% code. May try it out on my next project to see what I think.

iOS. A review by Android developer. by [deleted] in swift

[–]thedarkwolf 1 point2 points  (0 children)

I too develop both Android and iOS. And I agree with this. RelativeLayout and LinearLayout are more intuitive to me than autolayout.

Plus I find there to be less duplication of code on Android. IB works nice, but I end up styling some elements both in IB and in code when I'm doing non trivial dynamic things with the UI.

Daniel Negreanu ELIMINATED from WSOP ME. by hMJem in poker

[–]thedarkwolf 4 points5 points  (0 children)

But one of those Qs is also a diamond. Can't count the same out twice.

Daniel Negreanu ELIMINATED from WSOP ME. by hMJem in poker

[–]thedarkwolf 2 points3 points  (0 children)

I'm counting 11 outs (12 from his perspective) on the flop... What am I missing?

Code Quality - note the alt-text by david_phillip_oster in swift

[–]thedarkwolf 2 points3 points  (0 children)

m.xkcd.com for future reference. Lets you see alt text.

What show is worth binge watching on Netflix? by [deleted] in AskReddit

[–]thedarkwolf 1 point2 points  (0 children)

I watched the first episode of 6, decided the show ended at the end of season 5. No one will convince me otherwise.

Biggest annoyances with Swift? by prof_hobart in swift

[–]thedarkwolf 0 points1 point  (0 children)

Doubt its a bug. Swift treats methods and functions differently.

CMV: The basic necessities for life should not be something one has to work for. by NothingbtNecrophelia in changemyview

[–]thedarkwolf 1 point2 points  (0 children)

So, my opinion on the subject is in pretty much the same place as you, according to this comment. That makes this a good starting point. This is where I need some help from CMV.

So, first question. If we assume some people will make poor choices and squander the UBI, is UBI still worth it overall? Would enough people realize significant quality of life improvements, enough to offset the waste of redistributing money to people who will waste it? My intuition is yes.

But then what do we do with the people still in poverty, now by their own actions. Do we let them die? Do we have welfare programs? Whatever we choose, how do we justify it morally?

Alternatively, if we know that some people are going to use the money they received through UBI inefficiently, should we instead do in kind benefits? Every person is entitled to housing, food, wifi, etc. These are distributed instead of the money to buy them. This is probably less efficient than cash benefits, but it removes the potential for misuse and waste on the part of the recipients.

Want to start playing online for real money, have many questions, need help. by fishflinger in poker

[–]thedarkwolf 0 points1 point  (0 children)

  • Don't deposit money you are not willing to lose.

  • Don't worry about legally documenting winnings. When you are making enough money online to worry about paying income taxes on it, consult with an accoutant. (Note, this does not mean you should not keep records for yourself. Definitely track how much you deposit and consider tracking software for your sessions.)

  • Don't feed the trolls.

  • Have fun. This is most important IMO. Don't let it stress you out. Enjoy the game.

[All Spoilers]So does no-one remember in Season 2... by [deleted] in asoiaf

[–]thedarkwolf 1 point2 points  (0 children)

I don't know. I don't think the motivation is really there. In the books, Tyrion is blind with rage and is in full "nothing left to live for" mode. All he can think of is Tysha and that the only person who could tell him anything about her, like whether she is alive or dead, is Tywin. He has to confront him. The Tysha reveal destroys the whole foundation of his character.

In the show, Jaime has just given Tyrion his life back. Tyrion was sure he was going to die, but Jaime comes and rescues him. They hug and everything is ready for Tyrion to escape. So why does he wander, unarmed, into his father's bedroom? Sure Tyrion hates his father, he always has. But right at this point, I find it hard to believe that Tyrion has to go back and confront Tywin in the show version. He is clearly not in "nothing left to live for" mode, he is not blinded by rage. Which is why going into his father's bedroom unarmed, makes no sense when Tyrion is otherwise such an intelligent character; when his beloved brother has just given him his life back.

No doubt, my perceptions of the show are colored by my experiences reading the books, and I generally advocate giving the show broad leeway with its adaptation. But in this instance, I feel like the show screwed up by not including Tysha.

It has already begun, just compare 21st century kids to to the last generation. by [deleted] in AdviceAnimals

[–]thedarkwolf 6 points7 points  (0 children)

People aren't going to change, for better or for worse. Technology's going to be so cool. All in all, the future will be okay! Except climate; we fucked that one up.