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

Be careful when going outside. A cyber attack might be in progress!

But what actually would be good cyber warfare is hacking Putin’s family. Notoriously private and says his family is off limits and he never talks about them. I’m sure his kids aren’t normal like he claims.


John Oliver found his daughters dance/gymnastic performance and aired it a few years ago as part of something. For the daughter of a billionaire dictator, John Oliver made her sound fairly normal.


Do you have a link or name or number of the episode?

> For the daughter of a billionaire dictator, John Oliver made her sound fairly normal

Most people are fairly normal :) Not every rich powerful kid goes full Uday Hussein.


I was able to find the number of the episode! It was S04E02, which would have been the episode on Putin. Which I guess makes sense.


Poor database performance is a thing at my current gig. But often the only solution is having a custom view made.


> But often the only solution is having a custom view made.

Sometimes.

But I'd urge you -and every Rails dev struggling with this- to look at how and where you can decouple and separate the concerns in your (quite likely) ball-of-models.

Most often that is a far more sustainable solution. One that helps you not only with performance.


The abstraction hasn’t hindered me much and I work on a monolith.

One problem I have faced is when the amount of database queries on a page explodes it becomes hard to optimize without caching. I would prefer to avoid caching but that doesn’t appear to be the rails way (and for obvious reasons).

Also, at a company with a Rails app you do sometimes get other sources and processes polluting your Rails app. And when that happens you can’t utilize the efficiencies that rails provides.


Yes. And new projects are even better started now with Rails than in the past (aside from the JavaScript hell still plaguing rails).

Active storage and variants make life so easy.


> (aside from the JavaScript hell still plaguing rails)

It's not too bad now, set up a Node environment and there's first class support for using vanilla esbuild or if you want to go without Node entirely there's import maps and lots of goodies at the Rails level to help you manage your JS dependencies. Technically Webpack is still supported too but it's vanilla Webpack instead of Webpacker, that's all part of the new https://github.com/rails/jsbundling-rails abstraction for using a number of different JS bundling tools with their stock set ups.

Personally I went with the esbuild + tailwind combo and it's been smooth sailing. I have an example app here https://github.com/nickjj/docker-rails-example.


Most data is relational. It’s important to embrace the efficiencies and safety guarantees that come along with that.


> Most data is relational.

No. It's not. It may be in your domain. But it really very much depends on the domain and use-case.

I daresay that purely on information density and amount of gigabytes, most data you use in your business is both document-based and hierarchical: files, docs, directories. But obviously I don't know you or your business, so this is just a wild guess.

This misunderstanding that "data is mostly relational", I believe, comes from the fact that it is easy to make most data relational (edit: to clarify: turning something into X is not the same as something being X to begin with). Much easier than to make most data document-based, indexed, hierarchical or into graphs. For one because the tools (RDBMSes) are mature and omnipresent. Practical: it's easy to put word docs and directories in postgres. But it's hard to have millions of CSVs with profile information accessible on directory structure

And, if what you say were true, that "most data is relational", then the best tool for most of our jobs would be a step-up in relationality from an RDBMS and we should be using graph-databases instead.


Isn't a hierarchy a relation? Item, item's parent, item's children. It suits itself well to a RDBMS.


I'm talking as a whole. So yes, there are cases where it's not relational but on average most data is relational. A user has many projects. Those projects have many tasks. This is very common to most web-based software used today. Think of all the tools out there that work perfectly with this structure.

Most of our data isn't files, docs, directories. It's data given to us by our users or generated by our own processes. I'm not getting the reference to CSVs and word docs.

Yes, we store uploaded files but the metadata is stored in the database in a row that has some identifier that links to the directory where the file is stored. That works fine. We don't need a document database.


You're just only classifying relational data as data. YouTube's petabytea of data is mostly video and audio. Perhaps some of its data should be stored relationally, but definitely not most of it.


Yes, a lot of data is relational (although probably most of the world's data is not relational). But not all things need to persist data or are data driven.


If all data belongs to a user or an organization, which is usually the case, and that user does some actions to some objects, is that not relational? It's easy to see how most web apps fall into this pattern.

Building your own API to join data is absolute torture.


What? Trump had an anti-war platform. That’s why his response to Iran was so weak (and why he allowed them to return fire to save face).

Also, he let Erdogan do whatever he wanted. And the Saudis. He didn’t care!

And even if you don’t believe that, Trump is currently okay with the invasion.


Trump has an anti-war, contain the bully platform.

He introduced new sanctions for Iran and killed one of their highest ranking officers. Precision strikes instead of wasteful wars.

Turkey and SA are US allies, Trump just continued that long-standing policy, as does Biden.

> And even if you don’t believe that, Trump is currently okay with the invasion.

Quote? Trump said Putin's "pretty smart", which, judging by their progress towards Kyiv, and the lack of response by the West, well, you can't say it's not smart (at least in the short term... long term, remains to be seen).


For you and parent commentator: the topic of the thread is Ukraine's invasion by Russian imperial forces.

Let us not devolve into the Rorschach test that is Trump's administration and our personal interpretations. It serves no purpose but to feed relative trolls.


> For you and parent commentator: the topic of the thread is Ukraine's invasion by Russian imperial forces.

This is a sub thread discussing some nuance of how we got to this point.

> Let us not devolve into the Rorschach test that is Trump's administration and our personal interpretations.

I don't appreciate the gratuitous insult that we can't objectively discuss the actions of a past president.


> I don't appreciate the gratuitous insult that we can't objectively discuss the actions of a past president.

Regardless of any point made on the subject, what one side considers objective, the other side considers biased and tainted. Your rejoinder on the existential insult (though a consequence of human nature) is noted -- and your wish shared that we could exist with any real semblance of objectivity. We primates aren't objective creatures when it comes to arguments that at least one side has turned its axioms into articles of faith.

For the record, I expect we agree substantively on an analysis of Trump's presidency, both in terms of motivations, outcomes, and impacts.


Putin is trying to conquer a country because someone gave the heads up on his alleged plans and his feelings are hurt? People do not give Putin the credit he deserves and thus Putin plays them.


Turn to Putin for information then. Same outcome.


Great comment.

Biggest mistake the West has made is thinking that soft power will work with Putin. He just doesn't care. Sanction some oligarchs and he still goes home to his palace like nothing ever happened.


There is also a mistaken view that oligarchs control what happens in Russia.

It's simply not true. He has enriched them not the other way around.


> Today there's a lot of tough talk but there's no indication that Ukrainians will put up a fight and die en masse

There's no evidence to the contrary. It has just begun.


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

Search: