HNHacker News
TopNewBestAskShowJobs

Inviz

187 karma · joined April 25, 2010

submissionscomments
Inviz··on Hardest problem in computer science: centering things
margin: 0 auto; (or simply auto for two-axis centering) will not have that issue. For multiple things in line, gotta use :nth-child to apply margin-left: auto on first item in row, and margin-right: auto for last item.

Finally you can allow container to grow with the contents.

Inviz··on Old CSS, new CSS (2020)
there was a way to use package image in a non-standard way (iirc using Offsets in Photoshop) and use negative background position to emulate 3x3 grid image with less elements. Was an advanced technique.
Inviz··on High Definition CSS Color Guide
And flexbox? Was floats with all those clearings easier? or inline blocks that made us reset whitespace between elements? Or akhem... tables?

Definitely hyperbole. Syntax is not nearly _the_ problem of CSS

Inviz··on The air fryer is a hoax
Air fryer really works. Gets your food crispy with very little oil. Great for heating up stuff that needs to be crispy too.
Inviz··on Under the Microscope: Three Dirty Dwarves
One time i was making an interactive video website, where user could jump between sections of the video. I added an easter egg, where the video would have an extra section, to which you could jump by clicking "next" button twice if well timed. It was done via underhanded JS: Number of sections was computed based on video duration, so uploading a video with more than expected number of sections, could cause out of bounds jump
Inviz··on Apple is turning William Gibson's Neuromancer into a TV series
Recent blade runner though did 80s well, so it's not unseen anymore
Inviz··on David Hahn, the 'radioactive boy scout' who tried to build a nuclear reactor (2022)
I have a friend who claimed to have done the similar thing. He also got cancer. But he might not have advanced too far besides that. Do you think it's plausible? I only hear about David Hahn, but there ought to be more? Or not?
Inviz··on Coding in Vision Pro
Agree, i think 32 inch is perfect size. However what bugs me is that waking up from sleep it often only wakes up left side, and the right is all green. i have to restart the monitor. I wish it was glossy too, but i can live with the matte.
Inviz··on Coding in Vision Pro
2400 in some places, and i bought it in thailand closer to 2000. It's comparable to ASD27 either way. Thus it's still much cheaper than Pro Display.
Inviz··on Coding in Vision Pro
Dells 6k is quite alright at reasonable price. Has some quirks though
Inviz··on React has grown beyond its original promise and it's causing more harm than good
What are frameworks that support async components on clientside?
Inviz··on Htmx and Web Components: A Perfect Match
I think this is decent approach, although setInterval may be unnecessary. I do this similarily as a base Class, and i made a generic solution that would not allow for A's to be initialized until all of its children registered thsemselves.
Inviz··on HTML Spirograph (2021)
A designer I worked with had this personal website https://www.narrowdesign.com which incorporated scrolling into the golden spiral with spirograph
Inviz··on Shoelace: A library of web components
Yeah like no slots.
Inviz··on Shoelace: A library of web components
Yeah but flash of unstyled content? Plus you need to somehow adopt only related parts? Selectors wouldnt match easily necessarily, e.g. decision to adopt :hover selector must be made somehow
Inviz··on Shoelace: A library of web components
I guess it’s most-but-not-all part that got me confused. The are parts re-exported Manually? I guess that works
Inviz··on Shoelace: A library of web components
I don't see that these components use part/exportparts feature to do that. Am I looking at it the wrong way? Or do you mean that customization happens via CSS?
Inviz··on Shoelace: A library of web components
I'm looking for a library of web components that:

1) Uses slots for composition

2) Does not use CSS-in-JS

3) Lightweight

I understand that slots imply shadow Dom, and then shadow Dom usually means adding/adopting stylesheets into components, and that means css in js.

But there's also ::part that allows piercing the shadow dom. Is there any library that uses it?

Inviz··on Smart drugs reduce quality of effort, and slow decision-making
I use about 100mg (average amount) 2-4 days a week for the last 1.5 years, going through a very challenging project. I had a small stretch of time when my skin started drying up on the forehead and was peeling off in minor quantities, so i took a break for a month and it fixed it.

Some of the days I may not take it and not notice it, there's definitely no cravings. But during a break I felt slightly hazy when getting off it. I do notice an increase in typical stimulator tell-tale symptoms (like some jaw clenching), but i do have that from coffee as well (which i drink too). There can be days when i'm too wired up to fall asleep fast, so i may drop a 5-htp pill.

The upside is that there's a lot of times when I manage to really concentrate on some activities. Doing 8 hours shifts is trivial. People note that I am pretty responsive at the end of the working days. Quite often I manage to do some personal hobby work after a full working day too.

Modafinil doesn't have the ecstatic effects of Adderall and its friends, so working a lot can make me feel overly emotionally invested into some things that are not important in a grand picture. The stress can add up if not managed well. So I do not recommend working a lot for working's sake, there has to be a cause to pull heroic stunts like this. My excuse is to save up the money to enable myself to do other activites not related to programming later.

Inviz··on Smart drugs reduce quality of effort, and slow decision-making
Modafinil is a great tool to have in one's toolbelt.

There're days and situations when having uninterrupted focus for 10-14 hours does make a big impact. Condensing certain workloads into one day can save a lot of time in a longer run. For example going through huge refactoring with a lot of moving parts can be very draining to work through if you need to load in the context every day. Striking the iron while it's hot can help a great deal.

Inviz··on Smart drugs reduce quality of effort, and slow decision-making
Would you mind sharing where's your antagonism towards modafinil coming from? Is it your personal experience or is it everybody's enthusiasm rubs you the wrong way?
Inviz··on Loro: Reimagine state management with CRDTs
Well it's honestly about time. I've tried to build something like this personally with OTs, but it can be pretty brutal with all the fuzzying and N-way merges. I even chose one of rich editors just because it supports OT (then i learned it's only in commercial version not even available for small-timers).

I like the completeness of the Loro solution: the state, the rich text, the tree. Local-first database approach sounds like a great idea. Wondering how large is the code size overhead for using this though.

Inviz··on Debugging tricks in the browser
One trick i use all the time is debugging by searching through loaded scripts by UI string:

1) Go to Network panel, start recording network requests

2) Open left sidebar and invoke search to type in the code/ui string you want to find

3) It'll usually find it in some weird bundled js chunk file, click on the result

4) It opens the network request for that file, now right click anywhere in file and pick "Open in Sources" or something along that line, that jumps to debugger

5) Now place your debugger statement, this will probably load sourcemaps too

Inviz··on A Grand Theft Auto III Re-Implementation
https://m.youtube.com/watch?v=N3KhMOk_6HE&t=538s&pp=ygUMR3Rh...

There is a video of a guy reviewing some of the code. It’s quite readable. The game was much simpler back then, some special casing was made (eg Catalina copter). But it’s a cool look behind the scenes

Inviz··on Next.js 14
I agree. RSC is extremely powerful and impactful, compared to everything that has been going on for React since hooks. It is easy to understand as a concept, and it allows for proper composition of features on the server side. In fact it's remedying a lot of unnecessary complexity that React brought originally. RSC is what allowed me to accept doing SSG at all.

Server actions seems like a neat idea. Probably does nothing for large projects, but at least IMO it can be very useful for the smaller use cases.

Inviz··on Yarn 4.0
What are your problems with workspaces? For my use it works pretty well:

* Deduplicates versions of packages across workspaces (desirable for some projects)

* No-configuration linking between workspace modules

* Doesnt force using a specific structure

* Top level module can be used to specify shared versions

Inviz··on Matter 1.2 – New device types and improvements
I wish CANOpen took off, what a world it would be.
Inviz··on Why decline in generalists leads to disjointed games and harms tool quality
At the time you posted this, the article didnt have the huge screencap of him from that video?
Inviz··on Omnigres: Postgres as a Platform
Oh it's Yuri Rashkovskii, one name I actually remember from the olden times.

I think you have a good project on hands, happy to see you could establish it as a tech startup. Over the years my mind keeps wandering into this place where an apps are much tigther integrated with the database. Where a full class of engineering tasks (and bugs caused by them) is eliminated completely. I'll be checking your progress.

Inviz··on Omnigres: Postgres as a Platform
I did something similar once, but integrated everything RESTful into nginx which connected to postgres directly, which ran triggers with JS. What I didnt like about it is being bound by max connections to postgres, and then blocking postgres thread when running javascript in it. The parallelization story just wasnt competitive enough.

Is this something that omnigres addresses?

← PreviousPage 3 of 6Next →