News for hackers. Stuff that matters.
Re:How Go mitigates supply chain attacks by coopierez on Friday April 01, 2022 @04:07AM (#30876136)
It's part of the culture of frontend programming.

In the past I've needed to display a timestamp as something like "n weeks ago" (in a mac app). My first instinct was to write a quick function to do the transform. Then I can tweak it and extend it later to fit my app's needs.

However when I asked the web app team at my company to see their code so I could use the same initial set of intervals, it turns out they use a library to do it. The first instinct of a frontend dev seems to be - even for very tiny, single function solutions - download a library.

Re:How Go mitigates supply chain attacks by PufPufPuf on Friday April 01, 2022 @07:08AM (#30876994)
To be fair, there are problems that look easy at the first sight, but turn out surprisingly difficult -- and working with time is almost always one of those problems.