Better HN
topnewbestaskshowjobs
Log inSign up

void_mint

1,942 karma · joined Mar 27, 2021 (5y ago) · 705 submissions

Submissions

comment 5y ago · link · parent

> I'm as big a booster of good old SQL as anyone, but there's a lot to be said for more targeted time series solutions when it comes to sensors.

https://www.timescale.com/

Sensors aren't really different from any other timeseries data.

> The productivity of such a stack is high, when it comes to getting beautifully rendered, interactive graphs of e.g stacked water levels. And with influxdb flux language, you can write joins that join data from the time series database and the rdbms (for more reference data, like the names and calibration data of individual tanks).

Your productivity being high with a given tech stack does not disqualify an alternative tech stack from having equally high (or much higher) productivity for equally trained users.

> Yes you can do anything with SQL but there's a reason for the presence of dedicated time series databases.

The reason you're describing is "marketing"

comment 5y ago · link · parent

The problem that arises with a lot of these "pull data from sensors, pump it into a database" is schemas and data integrity have to be kind of a second-class problem behind storage. When you can't push an update to whatever is ingesting data, and that ingestion tool is also ingesting with an invalid format, you can't just ignore the data (or fix the problem). So your store has to accommodate semi structured and unstructured data gracefully.

I do not agree that SQL is "slow" for these types of problems. I've built a number of systems that support this issue effectively. You _could_ use a tool that has schemaless/unstructured data as a first-class feature, but if your goal is to reduce complexity a Postgres instance is just fine. As with all data projects, indexing is important and needs to be thoughtful (from the beginning). For sensor data, it's also a good idea to think about data retention and removal policies immediately (keep your metrics/aggregates, move raw data to cold storage after a while).

comment 5y ago · link · parent

The best work I've ever done was for one of the biggest energy/agg companies in the world. They wanted an outside contractor to build something from scratch and ignore their normal corporate bureaucracy. They thought it was insane how much better the system we (I) built for them was than their normal in house tooling. The crazy part was the solutions were mostly just normal cloud tech. Postgres, DynamoDB, some AWS tools. They paid over a million dollars (nothing to them) for a set of tools that weren't technically advanced at all.

In my experience, the problems are a result of the manufactured constraints on the physical hardware/sensor devices. Mountings and power and connectivity. Receiving data from an array of devices into a shared storage system for analysis is a well solved problem. Receiving data from multiple sensors on a fixed interval, when the sensors may be made by different companies/work totally differently, is where the complexity lives. Combined with each company trying to build their own awful closed source proprietary data system on top of their sensors, you've got a really terrible time.

> SQL turns out to be really slow for this kind of data

I think this is just poor modeling. SQL is just fine for the work you're talking about.

comment 5y ago · link · parent

Most of the people trying to downplay covid aren't interested in logic and reasoning, though.

comment 5y ago · link · parent

Because you chose to bake environment information into your code, that does not mean nodejs doesn’t support client/server reuse. Respectfully.

comment 5y ago · link · parent

It's funny - I see that sentiment all the time ("Static typing is slower to get going with") and I kinda chuckle. In both static and dynamic languages, in the beginning, you're not doing anything silly. In both scenarios, you likely aren't writing your methods that accept strings and then immediately trying to pass them ints. For two developers of the same proficiency, competing to generate value in a static vs. dynamic language, I suspect the first 10 hours or so of building a project would progress pretty similarly. Compilers don't really fight with you until there's lots of hidden complexity.*

*Haskell and Rust get a lot of flack because of their compilers being difficult for beginners to work with. I don't necessarily think this is actually an issue - for a sufficiently skilled Rust or Haskell dev, I doubt most compiler errors feel like a "fight".

comment 5y ago · link · parent

I'm not familiar with Clojure Specs, but it definitely sounds exactly like the "Dynamic language implements type checking tooling to assert correctness", as referenced in the above post. The spec website just looks like type assertions as "validation" - what am I missing?

> Even Nodejs doesn't always let you re-use code between backend and the front.

This is not true. Check out Lodash. It's a dependency of pretty much every FE and BE NPM package that exists. Ignoring rendering libraries like React, client side JS and backend JS are "just" JS.

> I've never experienced the joy of creating such robust, predictable, and reliable software with any other (statically typed or otherwise) language before.

I think you should definitely keep doing the things that bring you joy!

comment 5y ago · link · parent

I don't particularly want to argue with you. Using the phrase "falsifiable observation", and then referencing "fun" as an argument just doesn't really work for me. I appreciate that you like dynamic languages, but I will not take your "rest of the world" bait. To suggest that dynamic typesystems are as verifiably correct as static typesystems is verifiably incorrect.

comment 5y ago · link · parent

Yeah, it seems like programming language decision is, at least in part, a proxy for "At what point do you want to be held accountable for your program's correctness at runtime?"

Haskell/Rust - Immediately

Java/C#/Go - Relatively quickly

Dynamic Languages - Whenever you decide it becomes important

comment 5y ago · link · parent

> Unfortunately I am too lazy and careless to use Clojure in any serious capacity though. I really need a Haskell or Rust compiler to remind me of all my silly mistakes. I can't be trusted to get to the same level of confidence through unit tests or linting or spec or malli.

I think most developers cannot be trusted to make these mistakes, I wouldn't call it "careless or lazy". Languages exist with tools baked into them to prevent slip ups. Why wouldn't you want to take advantage of that tooling?

Also, as a result of this comment section, this is the second time in the past week that I've seen the suggestion to use 3rd party typechecking/static analysis tooling in a dynamic language, which (to me) brings up the question: Do you really want a dynamic language, or do you just want the ability to be careless intermittently? There is no shame in saying "I just want to get happy-path code working quickly". There is joy in getting happy path working quickly. I just think, as a codebase in a dynamic language grows, codebases seem to build lots of tooling to make that dynamic language less dynamic.

comment 5y ago · link · parent

It seems like if a tool is so essential to successful development in a language, it should probably not be a 3rd party library but instead baked into the language tooling itself, no? (I have never used Clojure and am not trying to be inflammatory)

comment 5y ago · link · parent

Yep. It doesn't help that Overwatch at the pro level looks nothing like ladder play, so even casual players won't see something they understand when watching an OWL match.

I think esports are best suited for games that are slower paced (LoL, DOTA, CS:GO) or easier to understand (CoD, Rocket League). Overwatch is a game that is very fast paced (Dive fights took like, 2 seconds from start to finish), and doesn't really have analogues in real life, so it's harder to connect with or intuit.

comment 5y ago · link · parent

Ah yeah. The Orisa change was actually mostly irrelevant to the meta at the time. The change that actually had an impact was the 2nd of 2 big Hammond nerfs.

At the time, teams were running Hammond/Sigma/Tracer/Echo mostly. Depending on the map, Rush (Rein/Dva/Mei/McCree/Lucio) was also viable. After the change in the patch you referenced, Hammond was no longer optimal so Sigma/Ball stopped being played in favor of almost fulltime Rush.

More recently Double Bubble has become popular (Zarya/Winston), but Rush is still played a ton and the dominant meta.

The patch notes for that patch can be found here: https://us.forums.blizzard.com/en/overwatch/t/overwatch-reta...

comment 5y ago · link · parent

Sorry, if you can expand on which Orisa change you're describing I'd be happy to explain what happened in that meta. Nonmeta heroes get changed all the time and do not change the meta (unless they get changed enough to become meta heroes).

comment 5y ago · link · parent

> I hear that a lot. Why keep playing? Why play the meta? The onetricks seem to do well no matter what the meta is.

To compete at anything means making the decisions that put a contestant in the best position to win. A "meta" is the most optimal team composition for a given map. To play off meta is uncompetitive.

> Then a few don't, and the meta changes.

This is not how metas change.

comment 5y ago · link · parent

My post wasn't really about esports, but I'm happy to chat about it.

Overwatch was built intentionally to be a game that fostered an esports community. Jeff had a big part in the esports aspect of Overwatch in that the game was meant to be their gateway into LoL-esque esports. They wouldn't have made Overwatch at all had they not been interested in getting involved in esports seriously.

> I tried to get into Overwatch League, but found it hard to watch. All the rich colors and scenery of the game drowned out by the ugly monochrome of team colors. All the rich sound effects of the game drowned out by the world's most annoying casters. (Seriously, who hired these people!? Are real sports like this?)

It sounds like you just don't really like sports/esports. The casters are a big part of the experience. The game would be awful/unwatchable without them.

The viewing experience for Overwatch is terrible. There's too much going on, and if you're not actively involved (playing), it's just awful. Colors and lights everywhere, weird sounds, orbs flying all around etc. I think Overwatch is kind of a failure in that regard as well.

> Jeff's a good dude, and I do worry about the future of the game without him

I suspect there will be massive improvements relatively quickly.

comment 5y ago · link · parent

> The problem is that "The Blizzard Way" is not what Activision Blizzard has actually been doing for the past many years.

This isn't true though. Delaying (and not announcing) Diablo 4 is typical "Blizzard Way" nonsense. Same with the Overwatch content drought.

> Overwatch you would be surprised to know has some very impressive player numbers even now, for a game that gets no updates. Now that Jeff Kaplan is gone, I'm afraid the last of the best of original Blizzard are gone. I really, really, really hope Overwatch 2 is good. I will give it a few solid chances and I will revisit it. I fear the worst though, I don't think Jeff would leave his baby like that.

I wouldn't be surprised about anything related to Overwatch as I have played competitively/semi competitively since the beta. Overwatch is kind of an excellent example of a good idea implemented so poorly it's really sad to watch. I don't think Jeff Kaplan was a great game director.

> The story of Activision Blizzard is monetization for the sake of monetization alone, and management decisions formed solely on the basis that they sound good to other managers. Overwatch had the pleasure of being shielded by Jeff Kaplan

You've convinced yourself of a very flowery narrative about Overwatch and Jeff Kaplan that I just don't think is based in reality. It's pretty bad from a content standpoint, terrible from a balance standpoint, doing horribly as an esport, about to pump out a "sequel" that is actually just fluff content. I think it's about as mismanaged as I can imagine.

comment 5y ago · link · parent

Not really. Blizzard's balance team is shockingly bad. Metas usually exist for huge periods of time (GOATS lasted over a year, as did moth, as did dive). It is repetitive to play the same maps, with the same heroes, for a year.

comment 5y ago · link · parent

Eh I mean. It's the biggest game in the world for a reason. It's shallow and money hungry to you, but a huge % of its players love it.

> Nothing like Blizzard's best work from the past (Diablo 2, Starcraft) that could be played for years with no "season passes" or other MTX.

The people responsible for that iteration of Blizzard no longer work there, is the problem.

comment 5y ago · link · parent

> I can't say what's driving all the playerbase losses but:

"The Blizzard Way" doesn't work anymore.

Fortnite releases content monthly/quarterly. Massive updates with huge out-of-game tie-ins, changing worlds, in-game events, etc. Other games have changed to match/compete. CoD and Valorant both implement similar season-pass style systems.

Blizzard, on the other hand, insists on delaying/cancelling games, releasing "only when ready", continuing to lose touch with their playerbase, etc. They made it public that there would be no more Overwatch updates until Overwatch 2 (and also made it public that Overwatch 2 is actually a PvE expansion). There is no release date for OW2, so Overwatch players will be sitting with no new content for over a year.

It is very obvious why Blizzard is losing players and not really competing in 2021.

comment 5y ago · link · parent

Gotcha - that makes sense and is what I would've expected. Thanks for the info!

comment 5y ago · link · parent

Sure - I'm not really familiar with the Python ecosystem or the status of typed python. It seems like we mostly agree that building a typechecking system via unit tests isn't an excellent use of time, though. I was curious if maybe I'd missed something, but it seems that Python has provided tooling to explicitly not do what the post was describing for a quite a while, so maybe not.

comment 5y ago · link · parent

> def validate_age(age, errors):

> if not isinstance(age, int):

> errors.append("age must be an int")

I can't really get past the concept of writing tests to validate types like this. What's the point of using a dynamically typed language just to perform typechecking in tests? Why not just use a typed language at that point?

comment 5y ago · link · parent

Apologies, I didn't realize you were the commenter I've been referencing as feeling attacked.

> See, I disagree, because I believe that we've evolved to prefer stable, partnered life, and that a large portion of the population is still substantially affected by those drives. Not all of us can just say goodbye to biological imperative.

Can you reference any legitimate science to back this up? I believe the push towards partnered life is a byproduct of capitalism, and has nothing to do with evolution or biology.

> But, this doesn't mean that it's unhealthy for partnership to be a major portion of life's happiness and fulfillment.

This is the strawman that keeps getting thrown around in this comment section. Nobody is suggesting that finding happiness and fulfillment in a partner is unhealthy.

> I don't know what the version of me without a stable, long-term relationship would be like. But-- I do know that my life became much better around the time that I met her; that the improvement appears to have lasted and cumulated, and also that it seems to me that a large part of my fulfillment and happiness comes from interaction with my wife. If this is unhealthy, I haven't seen the negative impact from it yet.

This is again a strawman. "Incapable of being alone" is different than "enjoying being together". The former is what is unhealthy, as has been referenced over and over again in these comments.

comment 5y ago · link · parent

I'm not suggesting that the person feeling attacked isn't right to feel that way (I didn't see the comment you're referring to, but this topic seems to be kind of heated in nature regardless).

Mostly just, attempting to reason with someone that's feeling attacked (much less, someone that's feeling attacked about something as emotional as loving their wife) is an unwinnable task. I wish this conversation started better, because I actually think it's very important (and I generally think/agree that lots of relationships are unhealthy and it contributes to a lot of more negative societal issues), but I think discussing those topics with those that think you're trying to invalidate their relationship serves no one.

comment 5y ago · link · parent

> Why bother finding a partner.

> "I'm happier when my partner is around"

comment 5y ago · link · parent

An inability to be happy without a person is not the same as a person making you happy.

"I'm miserable when my partner isn't around", is not the same as "I'm happier when my partner is around". Does that make sense?

comment 5y ago · link · parent

I don't think it's generally worthwhile to argue with people whose arguments center around "I love my wife and you cannot tell me that's not okay." Lots of these responses read as though people are feeling attacked, which isn't a great baseline to start any reasonable conversation.

comment 5y ago · link · parent

You're kind of just arguing past the people in this thread ("these relationships in my life are healthy and not codependent, so codependence is not a problem in relationships"). I would also argue that your takes offer the same "armchair psychoanalysis" you're arguing against, fwiw.

> If we're redefining romantic devotion as an "addiction" then I think we have officially lost the plot.

No one is redefining anything. This term is poorly defined. Codependence is not "romantic devotion". "Romantic devotion" should not be codependence.

1
192021
24