I recently had to setup another complex monorepo with eslint/vitest/vite/tsup/turborepo and it was such a pain. All the time either eslint breaks for some file, or some build breaks because of some obscure thing in tsconfig, turborepo behaves in a weird way, adding new packages is a pain, etc.
Hopefully Evan can pull this off and we have simpler initial setup.
My main problem with web components that you end up with a build step anyway.
Not every component is interactive and relies on JS, some are just static elements (say avatar image) that you wanna render right away (but at the same time keep styles and logic scoped). Declarative shadow DOM helps, but you end up with a bunch of duplicate code in your final output, which begs the question - why am I using web components at all.
Because that was around the time they stopped developing high level APIs to focus on lower level constructs. They wanted to build the primordial ooze from which you would build ui frameworks.
But it turns out that those layers of indirection have made the web platform just another build target. It's just like how they never added optional types to JavaScript and now TypeScript is the de-facto standard.
And now I'm stuck managing layers of indirection and compiler settings and debugging in nearly the same but /slightly/ different code than what I programmed in.
Their logic is that if it can be done using a compiler or on the server side, then why bother doing it in the platform? Which is partially true: I want a compile step to optimize everything. But there is room in-between and this is often just an excuse to ignore dev UX entirely.
Isn’t that just a tooling problem? We use C/Rust/Java and compile to a completely different representation and it works just fine. When was the last time you had to write C or Rust and then debug stuff in assembly?
Leaflet should easily handle stuff like this if configured correctly. OP just slaps 3000 markers in a single layer, and each of them is an image element in dom. Should probably use some marker clustering for that.
Similar thing happened in iOS7(?) where they released glassy panels. Not far from that `-webkit-backdrop-filter` was added that allowed similar effect, I expect similar will happen. For new glassy effect it seems you need a separate filter for border, or maybe it's just gradient + blend mode.
Refraction effects like that require a surface normal, even inferred from something like a bump map, or the result of a blur filter used as a bump map. I'm not aware of any CSS filter that could take a normal and do the appropriate ray redirection.
The lighting is depending on the devices' orientation to which a web site running in safari on iOS has no access to due to fingerprinting protection. Maybe you need to request permissions to the gyroscope, but doing that for a reflection in the UI is a bit overkill.
- I prefer using Alpine rather than Vanilla JS these days. But the JS code is only for dialogs, combobox and tabs. I don't even use it myself on most simple projects. Curious what you would recommend using instead? Web components?
- I use `@apply` in all of my custom Tailwind classes. It's easy to keep it consistent with the rest of your styles, and in this case it meant it was pretty easy for me to copy a good chunk of shadcn/ui's own components. You usually just use regular CSS for custom Tailwind utility classes?
These placeholders are generated by processing the image on a server beforehand. Generally they create some html, css or svg markup that is served inline. Having to do a separate request for such placeholder is very bad idea.
It's not clear if these placeholders do actually help, especially placeholders with very low quality. In my opinion, they only add visual noise.
I'd focus more on avoiding layout shifts when images load, and serving images in a good format (avif, webp) and size (use `srcset` or `<picture>`).
> It's not clear if these placeholders do actually help
Well, it depends what you mean by help. It’s very dependent on use case and desired UX. Obviously you can prevent layout shifts without them, you can provide feedback on loading status in other ways, and ensure images don’t slow load time without colored placeholders. But they can provide a pleasant UX for some use cases, when done right. They can be annoying when not done well.
There are certainly legitimate cases where the placeholders come from a separate request. Most
CRDTs and similar sync engines you don’t want to (and/or are not allowed to) store binary images directly inside them, so you need to store references to some other blob storage. But Blurhash is a simple short string (and LQIP here is a simple integer) and those store well in CRDTs and other sync engines, so you can pair that with your reference pointer (which might not even be a URL depending on your blob storage engine and its sync mechanics and authorization schemes and whatever else) and whatever other metadata you want/need to include like width/height or aspect ratio and alt/title/caption.
When the CRDT or document sync engine inevitably sync much faster than your blobs you have something to show in that placeholder. If the blob sync fails for some reason, you still have something to show more interesting than your browser’s old broken image logo under your “Sync is slow or broken” warning.
I think placeholders help a bunch in situations like that where your image fetch is a lot more complicated than a URL that you can add in a `src` attribute. It’s also really easy to get into situations where such blob fetching is complex: In cases where you have to respect user and/or tenant privacy and need complex OAuth flows. In cases where you need end-to-end photo encryption. In cases where you need peer-to-peer sync and only P2P sync because you’ve been mandated to reduce touch points and likelihood of accidentally storing photos at rest in middle layers. Situations like images of HIPAA data, PII, PIFI, etc.
On a static site with public (or cookie sessioned) images direct linked by URL, yeah the placeholders don’t do much other than check certain design boxes. There’s lots of other places images (and their metadata) come from, and placeholders are a useful fallback in the worst cases.
Yesterday I was filling bags with sand to make a fortification for local defenders. I hear artillery as I am writing this. And by the way, you get used to it.
In the last few days I received about 20 emails offering support, none of them were from russian devs. One asked a technical question about my lib, I answered "do you know what's happening in Ukraine right now?" - no reply.
I see a few russian companies and personalities openly condemn the aggression (such as JetBrains) and I'm very grateful to them. However most are silent, or have very weak Instagram post "no war" with a sadface, or even worse - post with "we are out of politics".
And that's IT people, which are presumably more informed. Unfortunately, due to misinformation most russian people have no idea what's happening here, that's why sanctions should affect regular people, and not just putin and his close allies.
JFYI, I'm also Ukrainian living in Ukraine[0] (Poltava region), actually joined territorial defence forces as volunteer to defend own town.
All Russian should do right now — go outside of your house, gather with other Russsians and strike & show your protest "by hands" near your city administration!
Signing "open letter", "petitions" or just "keep placard" would NOT has any effect — so do not waste your and our time & lives!
I really appreciate your position, but the letter is incredibly weak. I understand that it's aimed at government that won't read it otherwise, but:
You call it "operation", it's not operation, it's war.
You ask to prevent human casualties, but thousands are already dead.
A lot of people signing from companies such as Yandex - a search engine that promotes propaganda and hides evidence-based journalism. From VK - a social network that bans opposition communities and spreads misinformation. You can't have it both ways folks.
The exact same happened just before the wall fell in other former USSR countries. Anything to keep the smart people from joining the protests because they needed them badly to keep the country running. In most places that did not work, the writing was on the wall. But it took a long time for it to go from protests to the final effect. Longer than I fear we have today.
Russian here. This is not misinformation or anything. This is just because yes, vast majority of Russians from all walks of life are pure evil. Even those living in the Western countries for decades. I have deleted myself from all social networks 5 years ago and people keep sending me screenshots from Russian facebook groups in Cyprus and that makes me freak out. Nearly everyone is pro-Putin. Ridiculous posts get hundreds of upvotes.
I really can't see a fix for it. You have to keep containing Russia: there is no chance in hell to ever have a sustainable democratic government there, Putin or not, because people are wholeheartedly against it - they don't respect any government that doesn't make them frightened as hell.
I think calling the "vast majority" of any country "pure evil" is painting with a pretty over-broad brush.
Specifically here, social media sentiment tends to be poor evidence of anything broader, due to being dominated by the vocal minority of people who post the most, as well as a non-trivial number of bots.
On the one hand, instinctively, calling such a large group of people evil feels wrong, it's painting with too broad a brush.
On the other hand, I know where you're coming from. I grew up in NYC feeling pretty much American, but my family is Russian and I speak the language. Over years of encounters with my own extended family and the social network around them, I've struggled to not overgeneralize, to keep context in mind, and to remain open.
But it's hard when you repeatedly encounter so many deeply cynical, bigoted, punitive, and hatefully-normative personalities. I'm hardly a counter-cultural outlier, but I do deviate from the suburban right-wing-materialist worldview that this particular Russian community prefers, so I may as well be from Mars. For that I was told to my face, multiple times, that I'm not normal ("not normal" is the exact phrasing they use) - and because of that I deserve and should accept the criticism and abuse coming my way. And it just keeps coming - casual racism that's basically accepted wisdom and notably bloodthirsty (nuke em all and don't look back!). Then, habitual low-level fraud that no one even recognizes as such (you should really file for divorce! then you can do (a) and (b) and get this [social benefit!]), the elevation of hustle and cunning above all other forms of intelligence, and smug superiority when it comes to political and ethical questions.
The war is some kind of last straw for me. Now, I hear a group of people speaking Russian, I feel an instinctive revulsion. It's not good, but it is what it is.
I grew up in Eastern Europe and your statement regarding "the elevation of hustle and cunning above all other forms of intelligence" rings so true and brings back memories. When I grew up, being able to criminally take advantage of other people and the state was revered as a highly desirable trait. I suspect that any behaviour that leads to monetary success in a society, will slowly become admired, regardless if it's ethical or not.
If it's any consolation, that's what happens to any highly corrupt country. People skirting the rules, from avoiding taxes to outright theft are called smart and others who don't are called wankers.
this is becoming a theme with immigrant communities, in a similar vein how german Turks are supportive of Erdogan. I'm sure those people are not evil, but this phenomenon is worthy of investigation.
Back when I lived in Canada and had some exposure to some of local Russian communities, it was bloody obvious that there was a concentrated Russian government effort to manipulate and control their opinion.
All online spots - forums, bbses, etc. - had at least one troll reposting from the offical news. More places than one had these as mods or admins. Agitating and stirring the pot was a daily occurence, which was quite effecient given that migrant communities tends to comprise people that aren't exactly well off and generally happy with life. To give an example - people discussing faking a divorce to double their unemployment benefits, that sort of thing. So given them an outlet to vent was working well. Conversely, those who were better established steered clear of these and formed smaller clusters of their own.
So what the GP is experiencing is likely related to them being (originally) a part of one of these poorer bubbles and the effect just lingers on.
> had at least one troll reposting from the offical news
Look no further -- /u/5ESS have been "directing the narrative" here by posting the same youtube link 5 times already.
People migrate for economic reasons, not because they want to replace their own brain with the brain of the destination country people.
The US was was relatively good at integrating migrants into a certain idea of america, but that's not the norm around the world, and I don't think that vision of america exists anymore. Maybe in the upper-middle class, but certainly gone in the lower classes.
There's rich economic reasons and poor economic reasons, they are still economic reasons, none of them are migrating to be integrated, just to be more wealthy.
Sure, but as to Cyprus specifically, that's probably not where the poor ones go. It's a kind of l down-scale Switzerland in the economic and immigration senses.
All the flag-raising and anthem-singing in US schools surely serves a purpose. We tried to avoid replicating that in Germany, for very good reasons, but now we have "third generation immigrants".
It would be worthy of investigation if these people behaved in any way different from Russians in Russia. But they don't. My conclusion is that it has nothing to do with propaganda - to which those living abroad are naturally exposed less - but just because of what these people are.
Yes, after Soviet Union fell, we Russians found out that all we've been taught about capitalism was true: unemployment, dog-eat-dog competition, class divide and all that stuff. It's not at all a paradise we have imagined. It's time for you to see that all you've been told about Communism was true, too: McCarthy was an idiot, but he was right. There are no "good Russians" waiting to be liberated from "evil Putin". There are "evil Commies" who Putin wholly represents.
Stop trying to "fix" Russia. It is impossible. It has to be contained, made as weak and irrelevant as possible to present less danger.
I'm a Russian in Germany. I've fled Russia after Crimea/Donbass events because of Putin's politics. No Russian I know in Germany or any other country abroad supports Putin.
The other day I spoke with this older Russian lady that works at the local pub - she overheard some of us patrons talking about the situation, and she went into a 20 min rant about western media being pure propaganda, that Putin was such a great guy, and that there was no real war. It was quite bizarre, as she's been living here since the mid-90s.
How are sanctions going to make anybody more informed?
They dont…That makes no sense. Instead of sanctions, a more effective strategy would be to provide Russians with free VPNs so that they can access western news media.
I'm going to articulate the theory, but I want to be clear that I'm not advocating it.
The general idea is that a war in a foreign country (even a neighbor) is pretty easy to ignore (especially if state media doesn't cover it). If you don't have relative or friends there, you could easily go on believing exactly what the government reports--that it's a limited military operation, etc. You're busy at work, you've got a lot going on, so maybe you should spend some time looking into it, but maybe next week.
However, if the value of your currency drops 25%, and your mortgage interest rate jumps 10% overnight you're much more likely to ask: "what the hell is going on". Those are significant changes that will really impact you. Suddenly you're a lot more motivate to do some research and see what's happening. Maybe when doing that research, you find some of the media of Kyiv being bombed or residential areas in Kharkiv being hit repeatedly by cluster bombs.
---
My theory for sanctions is different. My ideal sanctions wouldn't hit the average worker at all. They would hit _only_ the oligarchs and those close to or with a hand on the levers of power. But we don't have access to targeted sanctions that hit the oligarchs hard enough to get them consider taking actions that don't also hit the average worker.
I feel deeply sorry for those Russian citizens who have very limited power over their government, and will nonetheless be hit harder and feel the sanctions more deeply than those closer to power. But I also feel that it's necessary, as a tool to try and minimize the amount of time that Ukraine spends under siege.
Most sanctions are aimed mostly at the oligarchs, and that is good so. But things have reached a point (and may be the sanctions started way to late), at which the whole population needs to be notified of what is going on and it needs to be made clear, that the whole population has a say in how things progress.
The same Russians who are currently using VPNs to post Russian propaganda all over reddit, facebook, twitter and co? If you think Russians are this way just because they don't have access to the guardian, then I have 20 years worth of Russian politics waiting for you. They don't care. They haven't cared when the wars in Chechnya or Georgia happened, they won't care now. The sanctions are supposed to force them to care.
I talk with Russians on several international forums (about architecture and about gaming). Thousands of people there, a big sample. That's the younger, English-speaking generation, BTW.
They believe in the propaganda mostly, celebrate the victories over "nazis" and support Putin.
What happened after Crimea annexation was appealing, and now it's even worse. It's a society brainwashed into imperialism and they want return of Russia as a global power and revenge on the west.
There are some exceptions, but they are rare. Possibly because of fear, I don't know.
They have western media and had for decades. They don't care, it's all lies for them. Also they have almost no influence over what happens. They barely protest and elections are a farce.
So - sanctions aren't targeted at regular Russians. They target the oligarchs that actually run everything in Russia. Regular Russians are hit by collateral damage, and it will be very harsh collateral damage. But I have no sympathy when I hear from my friends in Ukraine hiding in Kyiv metro for the whole weekend and having no contact with their families in shelled towns.
Ultimately the responsibility towards victims of war is more important than unemployed people in invading country.
Russia has been running Goebbels-levels of propaganda to counteract whatever benefit came from access to western media. How much progress has been made since 2014?
That is completely untrue. Until a few days ago, RT was openly available throughout Europe. As far as I know, it is still available in America, which protects freedom of speech in its constitution.
Irrelevant and not even remotely close to what I asked for. This is a story about Tucker Carlson sympathizing with Putin.
It is not a story explaining the reason why Russia felt it was necessary to conduct special military action in the Ukraine. It does not explain why Russia believes they are helping to liberate the DPR and LPR from nationalists and return the borders of the republics.
I can throw you tons of support and understanding for Russia and Donbass from western media, loads of people questioning the supplying of arms to Ukraine and the involvement of the West. But I don't have all day for that.
Let's be reciprocal: please link any Russian media article (that isn't from Novaya Gazeta, where journalists routinely suffer "unexplainable" deaths) that suggests that Putin has ever done anything wrong, you know, without sugarcoating it in any way.
Seems like you’re grasping at straws if you have to resort to digging up 7 year articles to prove your point.
If there are really “tons” of stories explaining the Russian perspective on this matter why don’t you show me ONE recent story that takes the latest developments into account?
> Irrelevant and not even remotely close to what I asked for.
Only if one is too stupid to read it. It's not supposed to show that the Washington Post sympathizes with Putin.
> This is a story about Tucker Carlson sympathizing with Putin.
Exactly. You have not only Tucker Carlson but the whole Fox "News" network and other similar organisations in the USA and in Europe sympathizing with Putin.
> It is not a story explaining the reason why Russia felt it was necessary to conduct special military action in the Ukraine.
Russia didn't feel it was necessary to conduct a "special military action" in "the" Ukraine; it felt it was necessary to conduct a war in [no article] Ukraine.
- Would the majority population of DPR and LPR like to break away from the Ukraine?
No, they would not. They voted in very large majorities to be part of an independent Ukraine. Of course, now they are ruled by Russia-linked gangsters, so it is impossible to know what their citizens would like. Common sense suggests that they would rather be part of Ukraine, somewhat democratic, and relatively rich, instead of part of Russia, ruled by a warmongering dictator, and relatively poor.
I think the answer isn’t so clear cut and dry. The truth is, it’s disputed.
Here are some questions we should ask:
“ Ukraine regards both the DPR and the Luhansk People's Republic (LPR) as terrorist organisations.”
- Now why would the people side with a government that deems them a terrorist organization? That’s a little strange..
- Why is the official currency used in DPR and LPR the Russian ruble? Again, strange for a people that wish to be independent from Russia.
Why is the official timezone used in DPR and LPR UTC+3 (Moscow time) Again, strange for a people that wish to be independent from Russia.
I struggle to take these arguments seriously. Ukraine regards the gangsters running the DPR and LPR as terrorist, not the people under their undemocratic and illegitimate rule. The time zone and currency were chosen by those gangsters, not by the people.
If your country is always right and the rest are always wrong, that could be a hint. In Western media you'll find voices for and against the war. In Russian media it's barely acknowledged that there's a war ongoing.
Why indeed would any country be "entitled" to have an opinion on Russia invading a country and killing thousands of people. Other countries should just look the other way, that's the only ethical solution.
Stop this bullshit, it's not working.
> the other 200 countries in the world have absolutely no idea whats really going on in that area
Yes, over 200 000 Ukrainian refugees that moved to Poland last 5 days have no idea what is really going on. They left everything on days notice and moved to a foreign country cause they love Russia so much.
> have no idea about this area’s history
even if it was true (and it isn't - history is taught everywhere and Russian version of history is famously biased) - why would history matter? History won't make killing people right suddenly.
> what the locals in DPR and LPR really want
Even if all of them wanted to become part of Russia - why would it matter more than people of Ukraine who want to be part of EU? There's more people outside of the occupied parts.
What you're doing is disgusting. I hope they pay you enough.
Yeah, why whould Europe care about the Austrian painter annexing Czechoslovakia? This only concerns Germany and Czechoslovakia.
Same with Germany and Austria, don't get involved. Germany and Netherlands, just a border dispute. Germany and France, none of your business. Germany and the Soviet Union, why would you care?
It's almost as if we could ignore all the international law we created after WW2, jeez.
The sad thing is that you'll wonder why your state is widely seen as fascist and oppressive, and think of your nation as the victim of the rest, only because they react negatively to your state's questionable foreign policy.
You can have a tyranny and nobody would care for the most part. Be North Korea if you want. Just don't spill it over people who don't want it.
> The other 200 countries in the world have absolutely no idea whats really going on in that area
Ah, but that's where you are wrong, you see: We have something called "journalists" and "reporters", people whose job it is to go there and write newspaper stories or film newsclips showing and telling what is going on. A bit like your Propaganda Commissars, except these people report the truth in stead of what the governmentvtells them to.
> have no idea about this area’s history
Ah. Like how Ukraine has always been a part of Russia, is the Cradle of the Rodina, except at the same time also has always been a hotbed of gay Jewish Nazism, right?
Sanctions do work, cutting off communication with the west doesn't. There 's a feeling that Russians need to be jolted off their seats. I m seeing many of them asking for alternatives for payments or incorporation elsewhere
It's a nice thought but I don't think that this would work in any country.
Generally, the sanctions are designed to try and convince Putin that Russia cannot afford a war against Europe/NATO. They do this:
- by targeting the money of Putin and anybody in Russia with enough money to conceivably have influence over Putin (presumably, these sanctions don't hurt common people);
- by targeting directly or indirectly the financial reserves of Russia to make it hard for Russia to bankroll the army (these most certainly do hurt the common people, too).
I'm sure that there are also propaganda/counter-propaganda operations, but these are very likely to be illegal/covert, so no country is going to publicize them.
Ever lived under a dictator? Ever tried to stop him from doing something? Ever done either of the above while having a family you care about?
At the end of the day, no sane person would place their family in mortal danger to maybe possibly potentially make life easier for a large number of unknown far away people.
Didn't all of humanity at some point? Ukraine being a more recent example. And here we are, living in mostly free and democratic countries. Weird how that happened.
> At the end of the day, no sane person would place their family in mortal danger to maybe possibly potentially make life easier for a large number of unknown far away people.
US military personnel did this. Invading Iraq increased the risk of terrorism in the US to make life easier for a few haliburton board members.
I read this earlier today and it clicked so well, “no country was born a democracy”.
Every democratic country in the world had at one point a few brave souls who were both sane and put themselves and their families in mortal danger to “maybe possibly potentially make life easier for a large number of unknown [not yet born] people”.
So yeah, it happens and is relatively common in history. I hope the Russian people find some extra courage and get Putin to step away from Ukraine and also Russia.
Oh come on, someone asked you a technical question - you can't expect everyone to research the country of origin, country of residence, and perhaps a personal situation of every private person, developer, or a company before emailing them.
> One asked a technical question about my lib, I answered "do you know what's happening in Ukraine right now?" - no reply.
Innocently asking the question seems fine; as you say we generally don't know the personal circumstances of online contacts. But once appraised of it a quick reply would be human, at least to the effect of "good luck, keep as safe as possible & please ignore my question until happier times are restored"
Then why not cache the response and just put a banner on the project giving people context, instead of individually half answering the technical questions with a rhetorical question?
Hopefully Evan can pull this off and we have simpler initial setup.