8 ms·
The code on the laptop in the stock photo at developer.bbc.com is user-editable
- hactually 5y ago10 PRINT "BBC Developer Portal" 20 GOTO 10 Very nice Easter egg
- exporectomy 5y agoThey're all jokes: C:\> C:\> DOS C:\DOS> RUN RUN, DOS, RUN
- aarchi 5y agoSeveral are just ordinary code from BBC repos: https://github.com/bbc/res/blob/master/lib/res.rb https://github.com/bbc/res/blob/master/lib/res.rb https://github.com/bbc/audiowaveform/blob/master/src/SndFileAudioFileReader.cpp https://github.com/bbc/audiowaveform/blob/master/src/SndFile... The JavaScript one is some usage of this library: https://github.com/bbc/http-transport-circuit-breaker https://github.com/bbc/http-transport-circuit-breaker
- aarchi 5y agoOne of the snippets prints Fibonacci in the Chef programming language via a caramel recipe. https://www.dangermouse.net/esoteric/chef_fib.html https://www.dangermouse.net/esoteric/chef_fib.html
- lovemenot 5y agoSurely that's BBC BASIC https://en.m.wikipedia.org/wiki/BBC_BASIC https://en.m.wikipedia.org/wiki/BBC_BASIC
- II2II 5y agoAnd serious software developers having serious fun. They included the opening scene of Infocom's version of The Hitchhiker's Guide to the Galaxy.
- sharken 5y agoProbably since it was broadcast on BBC back in 1978. Six years later the game was released in 1984. https://en.m.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy https://en.m.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_th...
- montroser 5y agoVery clever! Needs more syntax highlighting, though... For anyone still confused, you can click into the code on the laptop screen there and edit like normal. They have applied matrix transform and blur via Cascading Style Sheets to make it all look cohesive.
- mistersys 5y agoOkay Cascading Style Sheets :)
- philips4350 5y agoWonder if the site used HyperText Markup Language too
- sertworks 5y agoIt also changes on page refresh!
- Firerouge 5y agoI got a section of Jenkins' rebuild-plugin's rebuild action for the sony ericsson. There's a spelling mistake in one of the comments, is it bad form to pull request a one word change on a 9 year old comment?
- dylan604 5y agoyes
- chris_wot 5y agoWhy?
- dylan604 5y agoBecause it's a comment that has no bearing on how the code works. If you make another change to that same file, feel free to update the comment as well. PRs that do nothing but fix a typo in a single word in a comment are useless. Maybe if your PR has several cosmetic/docu type changes throughout once the codebase is stable and working, I could see a pass going through to clean up things like this. However, as asked, no, it is not useful.
- chris_wot 5y agoMany people dislike commits that make changes to code that has no relation to the thing being done.
- TheDong 5y agoTo quote rob pike, patron saint of unix and go: "Syntax highlighting is juvenile. When I was a child, I was taught arithmetic using colored rods. I grew up and today I use monochromatic numerals." - https://groups.google.com/g/golang-nuts/c/hJHCAaiL0so/m/kG3BHV6QFfIJ?pli=1 https://groups.google.com/g/golang-nuts/c/hJHCAaiL0so/m/kG3B... Syntax highlighting is clearly not a universally agreed upon need, nor universally agreed upon as good (see also http://www.linusakesson.net/programming/syntaxhighlighting/index.php http://www.linusakesson.net/programming/syntaxhighlighting/i...)
- vmception 5y agoPretty sure Covid got everyone that didn't agree it was good. Statistically.
- lamontcg 5y agokind of impressive really that you out-asshole'd the comment you were replying to
- theshadowknows 5y agoMan what did these guys say!
- jolmg 5y agoYou can go to your profile and enable the "showdead" option to see the comments.
- flareback 5y agoThat is brilliant
- SMAAART 5y agoThat's awesome!
- nyanpasu64 5y agoSadly 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/live/client/main.8dc76bdd.js https://s3-eu-west-1.amazonaws.com/developer-portal-assets/l...
- mgmgmgmgmg 5y agoit's almost like they used a js compressor
- tyingq 5y agoPrettified: https://raw.githubusercontent.com/tyingq/devbbcjs/main/main.js https://raw.githubusercontent.com/tyingq/devbbcjs/main/main....
- quicklime 5y ago> 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).
- dannyw 5y agoThe colour space of a photo, is nearly always not the same as the colour space of a photograph.
- 5y ago
- strictnein 5y agoI ended up with text from The Hitchhiker's Guide to the Galaxy game: THE HITCHHIKER'S GUIDE TO THE GALAXY Infocom interactive fiction - a science fiction story Copyright (c) 1984 by Infocom, Inc. All rights reserved. Release 59 / Serial number 851108 You wake up. The room is spinning very gently round your head. Or at least it would be if you could see it which you can't.
- xbar 5y ago>look at bulldozer It's one of those really big bulldozers that can actually crush other bulldozers, let alone houses.
- deleted 5y ago[deleted]
- runald 5y agoHere's all the possible code that are shown https://pastebin.com/YyQwU7XZ https://pastebin.com/YyQwU7XZ
- tasogare 5y agoWorks until you zoom on the page, then the text is not correctly positioned anymore.
- Semaphor 5y agoZooming in works fine for me: https://i.imgur.com/5QVBN7i.png https://i.imgur.com/5QVBN7i.png
- deleted 5y ago[deleted]
- chris_wot 5y agoThe code is this: https://pastebin.com/LskrDWzw https://pastebin.com/LskrDWzw
- Evidlo 5y agoIt can be one of several strings.
- deleted 5y ago[deleted]
- beardyw 5y agoThe person at the other desk, opposite, has one of those holes cables disappear into at a moment's notice. I used to carry a kitchen bag clip for that!
- globular-toast 5y agoThis is the kind of clever stuff that really got me into computers back in the early 2000s. Back then some people would have clever stuff like this in their forum sigs. You don't see it so much any more. Everything is so serious and corporate.
- eps 5y agoThat's the page - https://developer.bbc.com/login-required https://developer.bbc.com/login-required
- neals 5y agoConfession: I used to work for one of the larger "flash game studio's" back in 2008-ish. I coded one of their main titles and added various cheats and easter-eggs in the game without anybody knowing. I remember one code making one of the characters go off on a rant on how "game development is a grind, don't do it, I hate my life." Something like that.
- mkoryak 5y agoThey stole the idea from the laptop on https://browsersack.com https://browsersack.com (desktop only)
- Ayesh 5y agoThey also disabled the tab navigation into the textarea element. Very nice.