News for hackers. Stuff that matters.

byte1918

You are correct and it's equally as awful.
I wish browsers would stick to being browsers. 'Brave Today' could easily be a website, PWA or a plugin that I can happily ignore.
Re:TailwindCSS v2.0 on Wednesday November 18, 2020 @03:29PM (#25142050)
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".
Re:Git is too hard on Tuesday November 17, 2020 @04:31AM (#25121717)
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.

Re:Google Photos will end its free unlimited storage in June 2021 on Wednesday November 11, 2020 @04:54PM (#25063482)
> I think offering something for free and unlimited for 10 years and suddenly charging for it seems like bait and switch.

Wouldn't it be 'bait and switch' if they did that after less time, say 1 year? 10 years is more than reasonable. And if you disagree, that's fine, but I'm curious to hear what number of years would you consider reasonable then? I'm not excited about the news either but I think it's _fair_.

How would one view these routes (now)? Or would one have to sign-up and then wait to be contacted by SlowWays?
Re:Prefer Fakes over Mocks on Wednesday October 14, 2020 @10:30AM (#24776919)
"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.

Re:PS5 Teardown [video] on Thursday October 08, 2020 @05:28AM (#24717415)
PS5 drives must also be pre-approved by Sony, supposedly due to strict hardware requirements, like 5.5GB/s[1] sustained bandwidth. I personally think it's silly, sure, bigger numbers mean better performance but I would be surprised if most games wouldn't work perfectly fine with a nowadays average SSD.

[1] https://www.pushsquare.com/guides/which-ssd-drives-will-be-c...

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...

Re:Fortunately, I don't squash my commits on Monday October 05, 2020 @08:33AM (#24687120)
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.
Re:Common mistakes writing React components with hooks on Tuesday July 21, 2020 @09:50AM (#23906758)
> 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.

Re:Reddit's website uses DRM for fingerprinting on Thursday July 09, 2020 @03:14AM (#23777738)
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.

Re:Why Facts Don’t Change Our Minds (2017) on Tuesday July 07, 2020 @07:54AM (#23758228)
> First of all have all these psychological studies been replicated?

> Thousands of subsequent experiments have confirmed (and elaborated on) this finding.

> 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.

Re:MessagePack: like JSON, but fast and small on Tuesday March 10, 2020 @03:10PM (#22538522)
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.
Re:Stylus: Broken links to install Chrome extension on Tuesday March 03, 2020 @10:49AM (#22475457)
I guess he means before you install the extension.
I would have agreed with you but after checking wikipedia, decentralization is actually the first requirement for it to be called a cryptocurrency.

> 1. The system does not require a central authority, its state is maintained through distributed consensus.

https://en.wikipedia.org/wiki/Cryptocurrency#Formal_definiti...

https://www.merriam-webster.com/dictionary/cryptocurrency

Re:I Add 3-25 Seconds of Latency to Every Site I Visit on Thursday February 13, 2020 @04:32PM (#22321632)
there's a checkbox `Block only first accessed page of site when delaying page is used`. Uncheck it.
Re:I Add 3-25 Seconds of Latency to Every Site I Visit on Thursday February 13, 2020 @03:04PM (#22320952)
You can configure Leechblock (1) to do this. You have to configure it to show the 'Delaying page'.

(1) - https://addons.mozilla.org/en-US/firefox/addon/leechblock-ng...

Re:Nvidia Geforce Now launches at $5 a month on Tuesday February 04, 2020 @03:55PM (#22240852)
Windows of course.
You are right. I need to read the rules again I guess I checked the rules on wikipedia.

Edit: From wikipedia https://en.wikipedia.org/wiki/Set_(card_game)

> Three cards from a Set deck. These cards each have a unique number, symbol, shading, and color, and are thus a "set".

I have never played Set before but this looks like a dead state to me? https://i.imgur.com/saLCZKH.png
Re:An IT migration corrupted 1.3B customer records on Tuesday December 24, 2019 @03:55AM (#21870796)
> There are countless stories of large scale failures involving non-consultants as well as very well paid consultants.

this reminds me of https://www.theregister.co.uk/2019/04/23/hertz_accenture_law...

Re:Kotlin vs. Java on Tuesday December 17, 2019 @04:36AM (#21812065)
Of course it won't ever replace it but it has the potential to overtake it.
Re:16-inch MacBook Pro on Wednesday November 13, 2019 @08:47AM (#21523884)
In the UK and the `Buy` button redirects to a not found page.

https://www.apple.com/uk/shop/go/macbook_pro/select this 404s for me.

From experience, I think he just means he doesn't want to work on operations tasks. I don't think he has anything against people doing ops.
The NPM fiasco should no longer be possible

If you want to unpublish a package after 72 hours have passed, contact npm Support. For more information about why we don’t allow users to unpublish packages after 72 hours, see our unpublish policy.

https://docs.npmjs.com/unpublishing-packages-from-the-regist...

Re:Firefox 70 released for Firefox Quantum: Developer Edition on Wednesday August 28, 2019 @09:38AM (#20819626)
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.
Yeah, I hated that. Lunches are personal time, since I have to recover it anyway, I would prefer to have a few moments where I enjoy a meal and not have to think about work.

Older »