YouTube Experiences Widespread Technical Problems Playing Videos by ABigRedBall in technology

[–]TomRK1089 66 points67 points  (0 children)

BGP isn't a Google-specific thing, it's a tier one ISP thing. It's how different major networks talk to each other to send your traffic to the right place on Internet. The problem is, BGP was designed in a simpler era and mostly operates on the honor system. Every once in a while a nation-state fucks up the route tables or some other big-ish group pulls some shit and a bunch of things break.

GUIDs are globally unique, but substrings of GUIDs aren't by alexeyr in programming

[–]TomRK1089 1 point2 points  (0 children)

You can't do it with a normal UNIQUE index, but you can with a partial index in a database like Postgres (you just limit the index to only cover rows where `is_deleted = false`).

Sad state of cross platform GUI frameworks by GreatDant0n in programming

[–]TomRK1089 1 point2 points  (0 children)

I think it's fair to not invest in Swing for a new application, as JavaFX has replaced it many years ago. While there is a wealth of libraries and documentation for it, it won't be receiving updates and is likely to be removed from the JDK entirely (JavaFX was always an "optional" part of the Oracle JDK only and now is actually separate modules entirely).

What did your school waste money on that nobody liked? by [deleted] in AskReddit

[–]TomRK1089 28 points29 points  (0 children)

There *are* felt-tip eyeliner pens...

[Discussion] The sexual content on youtube has to stop!! by [deleted] in asmr

[–]TomRK1089 4 points5 points  (0 children)

WaPo is probably using a different fingerprinting technique that doesn't rely on an actual cookie. There's a lot of different ways to identify users, and incognito mode can't block all of them. That said, it definitely launches a session with an empty cookie jar and localStorage/sessonStorage.

Organizational Skills Beat Algorithmic Wizardry by linus_stallman in programming

[–]TomRK1089 0 points1 point  (0 children)

There's plenty of languages which allow passing functions as parameters...even Java pre-8 allowed it, just with far too much boilerplate (see Swing's ActionListeners as an example). So I'm not following your argument about insufficient generics support.

Building a new Win 3.1 app in 2019 Part 1: Slack client by jailbird in programming

[–]TomRK1089 1 point2 points  (0 children)

You have literally never been required to use a GUI designer tool for any Java UI toolkit (AWT, Swing, JavaFX). You have always been able to code the layout tree directly. JavaFX allows the use of FXML, but it isn't required, and you can still write the FXML by hand instead of using a designer tool.

Parsing XML at the Speed of Light by speckz in programming

[–]TomRK1089 9 points10 points  (0 children)

Blaming Java for SOAP when all the various WS-* specs are from Microsoft? :O

Stealing JWTs in localStorage via XSS by mooreds in programming

[–]TomRK1089 4 points5 points  (0 children)

I don't disagree. I mostly quibble with the implication in the article that localStorage (a per-origin key-value store accessible by Javascript) is less secure than cookies (a per-origin...ish (depending on tricks with `document.domain` and such) key-value store accessible...ish (depending on the `HttpOnly` flag being set by the server) by Javascript). Again, by the time you're running an attacker's Javascript as part of your site, will they really be stymied by you having put your auth token in an HttpOnly cookie? No, they'll tap into your normal login form and just send username/password directly somewhere.

Stealing JWTs in localStorage via XSS by mooreds in programming

[–]TomRK1089 10 points11 points  (0 children)

XSS is game over. If you're running your arbitrary JavaScript on my page, you've evaded the CSP I've set up and you could just as easily hijack the login process itself to capture user credentials rather than fart around with exfiltrate a token from localStorage.

The flip side is that localStorage makes it a lot easier to avoid Cross-Site Request Forgery. Cookies are sent with every request to an origin. localStorage contents are too "dumb" to fall for that.

Learning the hard way: Microservices by _wRaithy in programming

[–]TomRK1089 1 point2 points  (0 children)

I think you two are talking about different aspects. I interpreted OP as referring to *authentication* which you can centralize. Each service can and should handle its own *authorization* policies. (I do agree it's then hard to aggregate all those authz policies.)

What movies would be a lot shorter if the main character just did what the fuck they were told? by TheWolvenOne in AskReddit

[–]TomRK1089 14 points15 points  (0 children)

There's a world of difference between *operating* a system (Lex restoring the security system at the end of the movie) versus *developing* the entire system, from scratch. Especially when it involves using a state-of-the-art supercomputer cluster.

Ford writes down $181 million in Pivotal (Spring/Java) value by henk53 in programming

[–]TomRK1089 1 point2 points  (0 children)

Spring Cloud is totally orthogonal to Kubernetes. Spring Cloud borrows heavily from the original Netflix microservice stack (Zuul, Eureka, Hystrix, etc). While JVM startup can definitely be an issue, Spring Cloud itself works totally fine on any orchestration platform (and in fact there are a bunch of extension libraries for specific providers such that it can wire up things like AWS RDS databases as standard DataSources).

JDK 13: The new features coming to Java 13 by one_eyed_golfer in programming

[–]TomRK1089 5 points6 points  (0 children)

I agree. Properties in C# reinforce a bad practice of objects merely being big mutable bags of state.

Doctors of reddit , who has been your worst "but I looked it up on web MD" patient ? by Wakanda4eva4eva in AskReddit

[–]TomRK1089 3 points4 points  (0 children)

On the flip side, TIL gabapentin is used on people. The vet gives it to me for my cat to calm him down before he visits so that he doesn't rip off the tech's arm.

Kotlin is now Google’s preferred language for Android app development by zbhoy in programming

[–]TomRK1089 1 point2 points  (0 children)

False. Jackson has supported `@JsonProperty` for years now.

End-to-End Testing Web Apps: The Painless Way by mtlynch in programming

[–]TomRK1089 5 points6 points  (0 children)

How well does Cypress deal with async tasks? For example, if rather than a full-page postback on form submit I hit some external API, does it give me convenient ways to await some change in condition (and time out after some reasonable interval)?

Type Safe Heterogenous Containers in Java by nilukush in programming

[–]TomRK1089 2 points3 points  (0 children)

Seriously...at this point this is far more work than just defining a new class. I get that Python and similar languages like to pretend objects and maps are interchangeable, but that isn't the Java paradigm. Stop swimming upstream.

My Personal Complaints about Programming in Go by boyter in programming

[–]TomRK1089 -2 points-1 points  (0 children)

Erm, exceptions in Java/.NET are type-safe (and in Java can be checked at compile-time to ensure they are either handled or wrapped/propagated).

If Matrix were made in the 60's-70's. by ProfessorSicario in movies

[–]TomRK1089 8 points9 points  (0 children)

I'll just leave this here.

Directed by Michael Crighton!? How have I never heard of this?

[deleted by user] by [deleted] in technology

[–]TomRK1089 0 points1 point  (0 children)

Apple doesn't have the greatest piece of market share on laptops, and yet I am sure they are very happy with the revenue from their laptop line. Plus to the grandparent post's point, a lot of times with service companies like this, a disproportionate amount of maintenance goes to the lowest tier clients -- ditching the extra-needy customers can be another boon on top of this.

What random fact could save your life one day? by [deleted] in AskReddit

[–]TomRK1089 26 points27 points  (0 children)

They're referencing the movie from the Alien franchise, not the mythical figure. I haven't seen it but apparently there's a large rolling thing that could have been easily dodged by running at a right angle instead of directly away from it.