HN user

byte1918

225 karma

Hello HN, this is a confirmation I would like to rename my account.

Posts0
Comments80
View on HN
No posts found.
TailwindCSS v2.0 6 years ago

Apologies if this seems snarky but it would be far more useful if you could explain your point rather than a generic condescending "[you] haven't delved into Tailwind on a non-trivial project".

Git is too hard 6 years ago

It's the case with most UNIX CLI tools and if the author's complaints are true, do we then have to change all UNIX CLI tools? Maybe? The reality is we can't and probably don't need to.

Customers were offered unlimited backup and storage of the photos they took. Customers used said service with that expectation

'unlimited backup and storage of the photos' was the market pitch, whether people read the TOS is another thing. I can see why some people would feel unhappy with this and I can't blame anyone for that but on the other hand I wish we would stop taking these vague market statements at face value. 'free', 'unlimited' and 'forever' can never go together in a capitalist market. And I'll abruptly stop here because I would derail into things like law and ethics which, I think, are out of my scope.

while competitors to it went out of business

This is honestly a tragedy that happens all across the industry at the moment.

"All problems in computer science can be solved by another level of indirection" - David Wheeler

I agree with you for most part. Mixing unit tests with integration tests is a recipe for failure.

I was making an analogy in my mind between API function names and song titles. IANAL but I thought at first that it doesn't make sense to copyright song titles, they are generic and uninteresting most of the time but after giving it further consideration I realized that some can be quite meaningful, for instance everyone recognizes 'Stairway to heaven' and 'Bohemian rhapsody' therefore, even though it seems a bit silly I wouldn't be surprised if those song titles are in fact copyrighted which could mean copyrighting function names is not that different. I then decided to actually google this and found out that:

Generally, copyright law protection does not extend to song titles because they usually are short and lack sufficient originality. Therefore, you can (and often do) have multiple songs with the same name, and the first to name their song, for example "Crazy," does not have the right to stop other people from releasing their own songs named "Crazy." An exception to this is that some long titles may be found to have sufficient originality to be afforded copyright protection. I suspect that my friend's song entitled "The Concept of the Quantum-Mechanical Bodymind Has Sparked a Great Idea" is one of them. [1]

The whole article from [1] is worth reading. I wouldn't be surprised if the final verdict will be similar to song title laws from the music industry.

[1] http://www.askamusiclawyer.com/archive/is-my-song-title-prot...

A clean history with proper commit names can work as a change log for you app. We actually did that and it worked quite well. In Azure DevOps the release pipelines have access to the list of commits since the previous release so one only has to simply take the titles of those commits to build it.

useEffect(() => {

fetchData();

updateBreadcrumbs();

}, [location.pathname]);

There are two use cases, the "data-fetching" and "displaying breadcrumbs". Both are updated with an useEffect hook. This single useEffect hooks will run when the fetchData and updateBreadcrumbs functions or the location changes.

Is this right? Wouldn't they only update when `location.pathname` changes? Also, there should be a whole discussion on `useCallback` which is not used here and it can be quite important, plus linters would complain of missing dependencies for the useEffect.

I'm sure it did not or maybe it was not enabled by default. I distinctly remember having to turn 'condensed view' back on because the thumbnails were taking so much vertical space.

edit: Just noticed who I replied to. I guess you would know better.

This may have been true a decade ago, but editors like Visual studio code now have remote editing abilities over SSH.

VS Code and vi have different use cases. Contrary to what you said, most people are not going to open VS Code to make a quick edit to a config file. If that works for you, fine, but the overhead of starting electron is significant.

No. Everything is 0s and 1s after all. Take for eg. a byte. It has 8 bits and by permutating all the 0s and 1s you end up with all the possible values of a signed byte; all the numbers -128 to 127. So now, if you were to copy a byte from a random memory location that byte will just contain a permutation of 0s and 1s which when interpreted as a signed int, will simply contain a number between -128 and 127.

Does anyone know why Chromium hasn't fixed this supposedly old regression bug where opening large minified js file in the source tab hangs the whole tab/browser, sometimes for more than 10 seconds even on a fast machine. Can't this be done asynchronously or at least give the user a way to cancel loading it? If you open a large file and then close developer tools, reload the page and open developer tools again, it will try to reopen the last opened file again, blocking chrome for another 10 seconds. Very annoying.