News for hackers. Stuff that matters.
Re:The code on the laptop in the stock photo at developer.bb... by nyanpasu64 on Saturday June 12, 2021 @09:02PM (#27488854)
Sadly the .js file[1] backing that page is 860 kilobytes of minified unreadable gibberish, containing the various strings that can appear in the code editor hard-coded in the same line of text as minified React. I don't know how much of the file is frameworks and how much is responsible for making editable code, but shipping nearly a megabyte of JS to the browser feels sad.

I've noticed that the editable text in the laptop screen isn't as overexposed as the rest of the laptop's screen.

On that note, why is it so hard to photograph a screen with the right exposure? Automatic exposure always gets the brightness wrong, and even if you manually fix the exposure level, it's hard to reliably map black to near #000000 and white to near #ffffff and gray to near #808080.

[1]: https://s3-eu-west-1.amazonaws.com/developer-portal-assets/l...

Re:The code on the laptop in the stock photo at developer.bb... by quicklime on Saturday June 12, 2021 @10:48PM (#27489351)
> I don't know how much of the file is frameworks and how much is responsible for making editable code

I don't think very much. This is a contenteditable <textarea> element with a CSS transform to project it onto the screen in the photo.

From digging through the minified js, there's just a small amount of code that sets it up and puts some canned text in there (of which there are a few choices, but still not a huge amount).

Re:The code on the laptop in the stock photo at developer.bb... by orf on Sunday June 13, 2021 @02:41PM (#27495102)
You’re going to have a heart attack when you try to cat an executable on your local machine!
Re:The code on the laptop in the stock photo at developer.bb... by tyingq on Saturday June 12, 2021 @10:42PM (#27489325)
Re:The code on the laptop in the stock photo at developer.bb... by mgmgmgmgmg on Saturday June 12, 2021 @09:51PM (#27489100)
it's almost like they used a js compressor
Re:The code on the laptop in the stock photo at developer.bb... by dannyw on Sunday June 13, 2021 @01:50AM (#27490111)
The colour space of a photo, is nearly always not the same as the colour space of a photograph.
Re:The code on the laptop in the stock photo at developer.bb... by antientropic on Sunday June 13, 2021 @02:09AM (#27490194)
What's the difference between a "photo" and a "photograph"?
Re:The code on the laptop in the stock photo at developer.bb... by sharken on Sunday June 13, 2021 @03:34AM (#27490578)
> The word ‘photo’ comes from the Greek word for light.

> A photo may also be referred to as a ‘photograph’, this is a combination of the Greek words for light and drawing; A photograph is a drawing made of light.

Source https://shuttermuse.com/glossary/photo/

According to Wikipedia the two words mean the same thing:

https://en.m.wikipedia.org/wiki/Photograph

Photo seems to be the more popular version lately which is hardly surprising:

https://books.google.com/ngrams/graph?content=photo%2Cphotog...

Re:The code on the laptop in the stock photo at developer.bb... by scrollaway on Sunday June 13, 2021 @08:07AM (#27491851)
Trying to assume as much good faith in the original comment, GP may have been talking about the difference between the original photo and the resulting published jpeg file.