HNHacker News
TopNewBestAskShowJobs

RubenSandwich

1,623 karma · joined October 30, 2014

submissionscomments
RubenSandwich··on Telefonica Is Target of $600,000 Bitcoin Ransomware Attack
Absolutely we need to decrease the attack surface. We can't expect for each of those doctors to make sure they always have the latest version of Windows, etc. I'd also go so far as saying that we can't even trust IT to always update the systems because large corporates loose track of boxes all the time.
RubenSandwich··on Ruby on Rails 5.1
Well, I would argue that the main purpose of jQuery was to help cover all the strange DOM edge cases of the browsers of that time. In that case, it really isn't needed anymore as most browsers behave the same on like 90% of the things now. (It's just that people used it as if it was a Framework, not a library which caused a bunch of problems.)

I am with you that if I'm doing something lightweight I don't use any of the new fancy JS frameworks, I just write vanilla JS.

RubenSandwich··on Hospitals across England hit by large-scale cyber-attack
Your right. Thanks.
RubenSandwich··on Ruby on Rails 5.1
Poor jQuery. You truly made the web a better place, but we have moved on. My feelings towards jQuery are almost exactly how I view my childhood dog. It was good while it lasted, but I really had no idea what I was doing back then.
RubenSandwich··on Hospitals across England hit by large-scale cyber-attack
I doubt people are sending ~233 British Pounds(~300 USD), according to current exchange rates, as a joke.

Edit. Corrected currency to the Pound.

RubenSandwich··on To Stay Married, Embrace Change
Yeah, it's really hard to let go and not idealize the past.

I hope you and your SO can find some common ground in the present to built off of.

RubenSandwich··on To Stay Married, Embrace Change
Agreed. To speak to your cycle of death, relinquishment, and renewal pattern. I have seen this too and often explain it as: "Good things eventually leave and you have to work to make new good things, but they will always be different than what was."

I have noticed this pattern in my marriage, friend groups and vocation. That there are parts of the past that I cannot recreate or experience again but rather than try to recreate them I should move forward and learn to enjoy and improve what I currently have.

RubenSandwich··on Ask HN: What do you do when you've lost motivation at work?
"We become what we behold. We shape our tools and then our tools shape us" -Father John Culkin
RubenSandwich··on NeoVim 0.2.0 released
Regardless if you feel like if the NeoVim refactor is worth it or not we can all agree that it is tremendous effort to modernize code written over the course of decades. Great job guys on another release!
RubenSandwich··on The Clean Architecture (2012)
You are right that the above article doesn't specifically mention the core being functional. I merely interpreted that from one of the stated properties of his and the other architectures he showcases:

"2. Testable. The business rules can be tested without the UI, Database, Web Server, or any other external element."

If that doesn't scream functional, then I don't know what does. :)

RubenSandwich··on The Clean Architecture (2012)
This is a very similar idea to Gary Bernhardt's: Functional Core, Functional Core, Imperative Shell: https://www.destroyallsoftware.com/screencasts/catalog/funct....

I prefer Gary's explanation of it because he jumps right into the meat of the problem and shows code that models this architecture. The video doesn't require you to know Ruby to understand what he is saying, just as long as you know some basic testing phrases; Mocking, Stubbing, Etc, you should be able to follow along.

RubenSandwich··on We Can Do Better
I agree that this is completely appalling and their apology is basically "Sorry you didn't know." But let's not characterize Jojo Hedaya as a bad guy just yet, I did a basic searched and didn't find anything else shady from him. I guess what I'm saying is let's give him a chance and hope for the best, one big thing like this shouldn't mean he is beyond redemption. At least that is what I hope and believe about humanity.
RubenSandwich··on C is not your friend: sizeof and side-effects
I would answer that you can use Rust to your first question.

But I agree with your general sentiment that currently C/C++ is the only choice for certain domains. But there is nothing theoretically stopping us from creating safer system languages. (See Rust and Swift, much less so Swift. But Apple is working towards that goal with the option to disable reference counting in a future version which will give much more predictable performance.)

My argument is that we need to stop pretending that C/C++ is not worth improving. Every time someone criticizes a gotcha of C/C++ HN gets very defensive. We need to kill our gods if we want better ones and I personally think we need better system programming languages because it is far too easy to write bad C/C++ code.

RubenSandwich··on Whistleblower uncovers London police hacking of journalists and protestors
Thank you for the pointer. English is not my first language so I often get the grammar wrong.
RubenSandwich··on C is not your friend: sizeof and side-effects
I'm not sure what a fair or unfair language would be. Is an unfair language one who's compiler output is non-deterministic? If that is the case then C fails that test with undefined behavior.

What I'm really trying to say is that as an industry we need to stop proping up C as if it's some golden god. Was it a good compromise for it's time? Of course but we can and should do better because it's clear that writing 'good' C code might be beyond the realm of man.

RubenSandwich··on Whistleblower uncovers London police hacking of journalists and protestors
I'm gonna continue to play Devils advocate here and that person in question could of merely confirmed that it was close.

But realistically I think your right. People will gladly handout passwords to people who sound authoritative. It's amazing to me how many DEFCON talks begin with: "So we just pretended to be X and asked for their password and got it."

RubenSandwich··on Whistleblower uncovers London police hacking of journalists and protestors
I think your selling the victims short here. The law firm could of been more discrete. e.g. "Hello X, We are investigating a case involving the government hacking journalists. You are a person of interest in this case. The government records show that your password is Y. Can you confirm or deny that this was your password around the dates Z?"
RubenSandwich··on Loss of Coral Reefs Could Cost $1T
Agreed. This is why I believe that we should have regulations and rules to make certain short-term gains painful. That self-regulation is at best wishful thinking.

Let's say that you have 'sustainability', fill in that word however you want, in mind when building your business. But a company who's primary concern is growth will most likely surge ahead of you, possibly squeezing them out of the market. That company can't just retrofit those 'sustainability' practices as by this time they are expected to continue their revenue and company culture is extremely difficult to change.

RubenSandwich··on Loss of Coral Reefs Could Cost $1T
Sadly this is true, but it still seems illogical every time it happens.

Edit: Illogical because while you may be making money now, your actions will cause you to loose your assets in the long term.

RubenSandwich··on Intel Pulls Out of OpenStack Effort It Founded with Rackspace
I've recently started using this Chrome Plugin to disable autoplay: https://github.com/Eloston/disable-html5-autoplay. So far works about 95% of the time, but it recently became unmaintained. It also does not distinguish between when you click on a video and the next link plays it, e.g. Following a link to a YouTube Video or Netflix show.
RubenSandwich··on Switch Is Nintendo's 'Fastest Selling' System in History
As the article alludes to this is in large part due to The Legend of Zelda: Breath of the Wild. Which has a higher than 100% attach rate on the Switch, which is simply amazing.
RubenSandwich··on How I Made My Own iPhone in China [video]
If we are looking at it like a business then your math makes sense. But as an individual, it would be cheaper just to buy a new iPhone because of the dead ends and time spent assembling the device. So yes if he did everything perfectly the first time then the cost was $300, not including labor or tools. But the actual cost is way above $1k including labor, tools, dead ends and research. A business can factor those costs as R&D as they will producing x amount of these but he is only going to produce 1 and who knows if those tools and parts will work on future projects.
RubenSandwich··on You Are Not the Code You Write
One way that my team practices this is we don't allow the use of the word 'you' in Code Reviews. Because ultimately you are not talking about the person who wrote it but an artifact of their work. For example: "Can you explain why you did it this way?" vs "This code is hard to follow.". It's a simple rule we do that helps remove some of the personal nature of critiquing someone's work.
RubenSandwich··on LOT – A subscription-based service which distributes a basic set of clothing
I didn't think of that, but that makes sense. I first saw the tattoo machine and was instantly turned off because it broke the minimalistic and utilitarian vibe of the rest of the collection. Also, I wouldn't trust myself or any of my friends to give me a tattoo... I'd rather go to a professional for that, the internet is already filled with bad tattoos.
RubenSandwich··on Ops in the serverless world: monitoring, logging, config management
Makes sense. Thanks for explaining.

For scaling a lambda it might make sense to run your lambdas on EC2 using this: https://github.com/lambci/docker-lambda. (But at that point you loose the 'NoOps' benefit of lambda and I can't imagine you'd get similar performance to just running a Node Server or the like.)

RubenSandwich··on Ops in the serverless world: monitoring, logging, config management
I'm having trouble reproducing your math. Can you be more specific on how you got (30.5 * 86,400) in your equation? Using this calculator I can't reproduce your cost: https://s3.amazonaws.com/lambda-tools/pricing-calculator.htm.... What is your execution time and memory on each lambda?

Edit: I'm guessing 86,400 seconds in a day and ~30.5 days in a month. If so you're using lambda wrong. You should not keep a lambda running forever rather treat each lambda as a short living function that responds to an API request and avoid calling async operations during the execution of it.

RubenSandwich··on How to create content that works well with screen readers
If you're looking for a quick summary about web accessibility best practices, my team put together a web accessibility guide: http://web-accessibility.carnegiemuseums.org/.
RubenSandwich··on Let's compile like it's 1992 (2014)
Borland's IDE has a huge nostalgia factor for me, it was the first IDE that made it so I didn't have to think about linking and the rest of the toolchain, I could just hit 'Build'.

But while most of our tooling for Software Engineering is pretty archaic. I think there is a tooling revolution going on now, especially with new languages: autoformatters, graduation typing, memory ownership checkers, etc. I feel like as an industry we are slowly starting to take tooling seriously.

RubenSandwich··on A Chat with the Directors of the Legend of Zelda: Breath of the Wild
Mark Brown of Game Maker's Toolkit explains this super well in his episode on BoTW: https://www.youtube.com/watch?v=vmIgjAM0uh0. Specifically that this Zelda has a linear start and end of the story but the middle is up to you. It is refreshing and makes you feel much more a part of the story.
RubenSandwich··on With a 10-day supply of opioids, 1 in 5 become long-term users
You could also take part in National Prescription Drug Take-Back Day: https://www.deadiversion.usdoj.gov/drug_disposal/takeback/. Just a thought. :)
← PreviousPage 7 of 10Next →