Better HN
topnewbestaskshowjobs
Log inSign up

TonyStr

509 karma · joined May 13, 2023 (3y ago) · 227 submissions

https://tonystr.net
Submissions

comment 9mo ago · link · parent

What do you think is lacking from CSS education?

I don't think anyone in this thread is arguing that inheritance or specificity is hard to understand.

My issue with cascading style sheets is mainly that namespace pollution (as every selector is defined in the same global namespace) means that short selectors (.separator, .highlight, .button) are likely to collide with completely unrelated parts of the application. BEM and tailwind are popular because they localize styles to specific components, preventing namespace issues. Today, most web frameworks deal with components, so it makes a lot of sense to localize the styles to the components. Scoped css in vue/svelte allows you to write short selectors, and have them only apply to the component they are written in, without needing to prefix them with a component name.

comment 9mo ago · link · parent

Great app!

It clicked for me once I realized you can ctrl+shift+C to copy the diagram to text, and paste in my editor! But I wonder if it would be possible to make ctrl+C copy to clipboard as ASCII? I see that ctrl+C copies the json representation of the selected objects, but surely it would be possible to maintain an internal model of copied objects, while the clipboard is always filled with usable ASCII? I think I've seen some applications do this before

comment 9mo ago · link · parent

Vue should be a bit faster due to signals (updating state doesn't cause whole components to rerender), or at least require a bit less work to optimize (not as much need for useMemo, useEffect, etc. if everything uses signals). Other than that, it's mostly up to personal preference. SFC, directives, etc. are all just developer ergonomics, and people tend to prefer whatever they're most used to.

Also, vue interops better with webcomponents and non-framework code than React in my experience. Most non-React libraries need a React wrapper to work in a React project.

comment 9mo ago · link · parent

Sorry for being off-topic, but isn't a11y a rather ironic term for accessibility? It uses a very uncommon abbreviation type -- numeronym, and doesn't mean anything to the reader unless they look it up (or already know what it means).

comment 9mo ago · link · parent

"RuPay" is a hilarious name for an Indian payment service. Kudos to whoever thought of that name

comment 9mo ago · link · parent

No, this is wrong.

> When we pack high-density information into a data table or a complex dashboard we are increasing the visual entropy of the entire system. Forcing the brain to decode intricate, non-universal shapes in a tiny 16-pixel footprint, creates a “cognitive tax” that users pay en masse every time they scan the table.

This is not how the brain processes icons. Icons have their meanings embedded through related patterns. If you rely on common icons such as x, checkmark, plus, shopping cart, arrows, three dots, etc. the user already associates certain meaning/behaviors with these icons (and will be surprised if they act differently in your application). Introducing new icons is more challenging, because you have to convey their meaning to the user. At no point does the user have to stare at an icon and try to "parse" it pixel-by-pixel.

In all of OP's provided examples, the icons are supported by both labels and colors, which removes all ambiguity. You can argue that the icons are pointless in this case, but they certainly do not increase any cognitive load. Is it harder to identify a tiger than a lion, because his fur is covered in stripes?

comment 9mo ago · link · parent

Yes, I think you are spot on. I've been toying with Claude Code recently to counter my own bias against agentic coding. It will confidently create a broken project, run it, read the error messages, fix it, run it, read the error messages and keep going until it runs. I used it to create a firefox addon, which meant that it invoked me very frequently to validate its output. This was much more tedious than letting it work on problems that it could validate with the console. It also kinda sucks at googling and looking up documentation.

AI "reasoning" in it's current state is a hack meant to overcome the problem of contextual learning[0]. It somewhat works given enough time and good automatic tooling. When this problem is solved, I think we will see a significant boost in productivity from these tools. In it's current state, I'm not convinced that they are worth my time (and money).

[0] - https://hy.tencent.com/research/100025?langVersion=en

comment 9mo ago · link · parent

I rewatched the movie now, and I think you're right. There were a lot of details I'd forgotten.

The way I remember thinking about it was that he was jailed for revenge murder, then spent his life in jail doing his best to atone by being helpful (building a library, teaching, helping with taxes, etc.). When the prison system refuses to set him free despite him proving through his actions in prison that he's not a threat to society anymore (I hallucinated this part -- this happened to Red, not Andy), he escapes, and his freedom is his redemption.

I'm not a native English speaker, and I think I may have conflated redemption and atonement. Looking at some definitions, it looks like you can receive redemption without atonement -- it doesn't necessarily have to come from within.

comment 9mo ago · link · parent

> [...]and the redemption, when it comes, is Red’s.

(spoilers)

It never sat right with me that Andy is shown to be innocent, and some viciously evil irrelevant character did it instead. This, I thought, takes away the whole redemption aspect of the movie, turning Andy into an innocent Mary Sue. I'd never considered that it may be more about Red's character instead. Though I didn't catch a satisfying explanation for that idea in the review, and it's been a long time since I watched the move.

I think I'll rewatch it today.

comment 9mo ago · link · parent

> Simple tasks now require navigating through multiple menus

I'm curious which simple tasks you're referring to?

> I’ve had Figma slow down or crash because of poorly maintained plugins

Why not uninstall those plugins? Is no plugin support really the best solution to this problem? Was there not a reason that you originally installed those plugins?

comment 9mo ago · link · parent

Figma sued AI startup Motiff in 2024 for copyright infringement and won[0]. Motiff had to reimburse figma, and redesign their product.

[0] https://www.courtlistener.com/docket/69166901/figma-inc-v-mo...

comment 9mo ago · link · parent

I applaud your effort, and I love to see others practice the love of building. Though my original comment didn't suggest this, I would love to see your project succeed and gather a user base. Competition is always good, and this is a very solid start for a project.

> endeavour to scratch my own itch during the pandemic

Was this an "itch to build something", or an itch as in an annoyance you had with an existing tool? I'm skeptic of whether bloated UI is an itch many users have with figma or similar, which is why I'm critical of presenting this as the selling point for Vecti. If you manage to find an itch many people do have, and you provide the salve, you'll attract paying users.

comment 9mo ago · link · parent

I initially wanted to write a comment applauding the effort (making a performant web-based wireframe editor is a technically challenging task). But after testing the site, I got the impression that this is a commercial product trying to get a foothold (as opposed to a hobby project for the sake of learning).

At the time of posting, there were no other comments with criticism, so I thought it better to contribute some of my thoughts.

My main concern for this project is not that it doesn't have feature parity with figma, but that I don't see a well-thought out business model. Vecti sells a seat-based subscription model (same as figma), has almost directly ripped much of figma's design (a proclaimed ex-figma employee pointed out that this may be cause for a lawsuit in another comment), and the only distinguishing selling point is that it has less features than figma (the tool it's trying to emulate).

My opinion (which may be wrong) is that figma is already very good at stripping away features, hiding them behind modes, toggles or contextual menus. I'm a figma power user, but I have held a course in figma and managed to get 20 non-technical people to grok the tool and be able to create their own interactive designs in half an hour.

comment 9mo ago · link · parent

Since this is a commercial product, I'm naturally inclined to compare it to other competing commercial products.

Why would I want to use this over figma? The sidepanels and floating toolbar are ripped directly from figma (to the point I would fear a lawsuit). Figma is already a very clean UI, which tries it's best not to shove too many features in your face. Whiteboard, presentations, dev mode are all hidden behind menus. "no plugin support" seems like a very odd thing to flaunt as a feature. Many of the most popular use-cases of figma, such as interactive prototypes, svg creation, html/css exports are all impossible in this tool.

Then, there is the problem of this being maintained by a single person. Components are essential to any serious figma user, good svg and image handling is important (svg is buggy in my testing), selection colors is vital, color palette is important. When can users expect to see these features if the maintainer is busy hunting down bugs?

This is a technically impressive product, but I struggle to see the market plan. I personally hate distractions in software, I go to great lengths to debloat and disable features to make my computer interactions smoother, yet figma is possibly the last program I would want to clean up.

comment 9mo ago · link · parent

It's a wireframing tool akin to figma. You create the design for your website/app there, then hand it over to a programmer who implementd it in html/react/flutter/wpf/etc

comment 9mo ago · link · parent

I think the idea is more to program the prompter than to program the LLM. He sells a wizard for generating project specs. Anyone can do this with a normal LLM conversation, but I suppose some people forget

comment 9mo ago · link · parent

He makes <10k cloc websites trying to sell you a spec-creation wizard[0]. Considering Claude wrote the site, it could probably be written in 1/10th of the lines.

I think these tools are great for allowing non-technical people like OP to create landing pages and small prototypes, but they're useless for anything serious. That said, I applaud OP for embodying the "when in a gold rush, sell shovels" mentality.

[0] - https://vibescaffold.dev/

comment 9mo ago · link · parent

Thank you, I've wanted to see someone use this in the real world. When doing Azure certifications (AZ900, AZ204, etc.), they force you to learn about this tool.

comment 9mo ago · link · parent

Capex may also require you to take out loans

comment 9mo ago · link · parent

Azure provides their own "Total Cost of Ownership" calculator for this purpose [0]. Notably, this makes you estimate peripheral costs such as cost of having a server administrator, electricity, etc.

[0] - https://azure-int.microsoft.com/en-us/pricing/tco/calculator...

comment 10mo ago · link · parent

Depends if you're using the botanical definition or the (more common) culinary definition[0].

I would argue fruit and fruit are two words, one created semasiologically and the other created onomasiologically. Had we chosen a different pronunciation for one of those words, there would be no confusion about what fruits are.

[0] - https://en.wikipedia.org/wiki/Fruit#Botanical_vs._culinary

comment 10mo ago · link · parent

Deportation would also affect the statistics, in that it removes potential repeat-offenders, no?

The study doesn't mention repeat offenses, so I can only assume they sampled both first-offenders and repeat-offenders. If illegal immigrant offenders get deported rather than jailed, the statistics would be lower than if they were sent to prison and allowed to return to crime afterwards.

comment 10mo ago · link · parent

> While all this happens, twice as many will experience the same SA by their spouse, family member/friend, tinder date, or whatever

Figure 2 shows that sexual assault is almost twice as likely to be perpetrated by immigrants than US-born citizens[0]. As a foreigner with no ball in the game here, I've seen a lot of outrage from both black-on-white and white-on-black violence in the US. Maybe some news papers like fox news are more selective in what they show, but APNews (which I've been reading for world news) seems to cover a pretty balanced range of racial crime.

> If some illegal / undocumented foreigner sexually assaults a white person, that's all you'll see in the newspapers and media for a week. There will be townhall meetings, debates, protests.

Maybe I'm misunderstanding the scale of this, but surely it doesn't compare to the response that George Floyd got?

[0] - https://www.pnas.org/doi/10.1073/pnas.2014704117#fig02

comment 10mo ago · link · parent

I would like to live in this utopia where free software is funded by the state. This seems impossible to get implemented in our world though.

comment 10mo ago · link · parent

Does this make conspiracy theorists highly intelligent?

comment 10mo ago · link · parent

Banks don't just keep your money in a vault when you store it in a bank account - that would be stupid both of both the bank and of you. Money looses value over time due to inflation, so banks reinvest 90% of your stored balance into loans, stocks, bonds, etc. This means that a theoretical 1B account, would allow someone else to take a 100M loan to fund a new venture. This is how banks make money, and they pay you a small portion of their profits as interest on your money (since they're profiting off it).

This is still not a good idea for you, as the interest doesn't make up for inflation. Most people keep a small portion of their wealth in the bank, as easy access for emergencies (this is called dry powder[0]). The rest is typically invested into private equity, which allows new ventures to be created.

It's very rare for anyone to have more than $50m in the bank. The money is usually out in the market doing it's work.

[0] - https://www.investopedia.com/terms/d/drypowder.asp

comment 10mo ago · link · parent

> ...based on a combination of the modification timestamp and if the filesize has changed

Oh that is interesting. I feel like the only way to get a better and more reliable solution to this would be to have the OS generate a hash each time the file changes, and store that in file metadata. This seems like a reasonable feature for an OS to me, but I don't think any OS does this. Also, it would force programs to rely on whichever hashing algorithm the OS uses.

comment 10mo ago · link · parent

yep! Had to check to be sure:

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/tvc decompress f854e0b307caf47dee5c09c34641c41b8d5135461fcb26096af030f80d23b0e5`
=== args === decompress f854e0b307caf47dee5c09c34641c41b8d5135461fcb26096af030f80d23b0e5 === tvcignore === ./target ./.git ./.tvc

=== subcommand === decompress ------------------ tree ./src/empty-folder e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 blob ./src/main.rs fdc4ccaa3a6dcc0d5451f8e5ca8aeac0f5a6566fe32e76125d627af4edf2db97

1
45678