News for hackers. Stuff that matters.
Re:Explain the first 10 lines of Twitter's source code to me by fefe23 on Friday February 25, 2022 @12:42PM (#30469874)
May I jump in to point out that this is not "Twitter's source code". It's their HTML.

Source code implies it's a programming language. This is not. This is HTML, which is a Markup Language (hence the ML in HTML).

There is probably some Javascript code there further down but you didn't look at it.

In common parlance, Twitter's source code is the source code to their web services and backend systems, which is not public.

Re:Explain the first 10 lines of Twitter's source code to me by hombre_fatal on Friday February 25, 2022 @06:41PM (#30473766)
I mean, right clicking my browser shows "View source code".

Are we going to giggle about how those dumb browser developers don't know that it's not actually the application server source code, or can we admit it's the source code of the rendered page, a different layer of the stack?

Is it really that much of a mistake to shorten "Twitter's [html] source code"?

Frankly, I think a bigger pedant could come in here and correct you.

Re:Explain the first 10 lines of Twitter's source code to me by disqard on Saturday February 26, 2022 @12:18PM (#30479557)
At least one major researcher studying programming (and how people learn to program) would agree with you!

Check out Alan Blackwell's "What is programming" paper from 2002. In it, he argues that we should not be asking "is writing html programming", because that question comes from an older (past overdue for revision) mental model of what programming is all about.

Re:Explain the first 10 lines of Twitter's source code to me by ZephyrBlu on Friday February 25, 2022 @07:56PM (#30474320)
I don't know what browser you're using, but in Brave it says "View page source" not "View source code".
Re:Explain the first 10 lines of Twitter's source code to me by tfvlrue on Friday February 25, 2022 @03:51PM (#30472207)
I tend to agree with this. My expectation from reading the headline was that it would be code from the backend (which admittedly seemed odd, since that's not public).

I can't recall ever seeing someone use the phrase "X's source code" to mean HTML. In my view it's data, not code. Just like you wouldn't call some XML file "source code" -- it's purely descriptive markup. When a browser's context menu says View Source, the word "code" isn't implied. It's the same usage of the word "source" meaning "origin" (as in "cite your sources").

Maybe I'm being overly pedantic, but the phrasing definitely read strangely to me regardless. Speaking as someone who's done a mixture of programming and web development for over two decades.

Re:Explain the first 10 lines of Twitter's source code to me by FatalLogic on Friday February 25, 2022 @04:43PM (#30472709)
Calling it "Twitter's HTML Source" or "Twitter's HTML Source Code" would be reasonably clear. But just saying "Twitter's Source Code" does imply something other than that, probably non-public backend code, you're right

That would make me wonder about the interviewer's experience. That's not a feeling you want to have at the start of an interview

Re:Explain the first 10 lines of Twitter's source code to me by chayesfss on Saturday February 26, 2022 @10:34AM (#30478375)
Agreed, if an interviewer asked me to look at source code and then opened this up I’d have a good laugh.
Re:Explain the first 10 lines of Twitter's source code to me by hoten on Friday February 25, 2022 @02:50PM (#30471532)
The browser ui to view this Html has been called View Source for decades.
Re:Explain the first 10 lines of Twitter's source code to me by paxys on Friday February 25, 2022 @03:58PM (#30472307)
If someone starts arguing about this in an interview it would be the quickest no-hire decision ever.
Re:Explain the first 10 lines of Twitter's source code to me by booleandilemma on Friday February 25, 2022 @03:07PM (#30471743)
“Sorry, we don’t hire pedants here”
Re:Explain the first 10 lines of Twitter's source code to me by ninkendo on Friday February 25, 2022 @06:45PM (#30473797)
"Have fun with your bootcamp graduates then"
Re:Explain the first 10 lines of Twitter's source code to me by jbki1121 on Friday February 25, 2022 @02:38PM (#30471336)
I'd say it's fair enough to consider markup as code ("code" in the sense of morse code)
Re:Explain the first 10 lines of Twitter's source code to me by fortran77 on Friday February 25, 2022 @06:47PM (#30473813)
To web people this is "source code." It's what you see when you say "view source."
Re:Explain the first 10 lines of Twitter's source code to me by grenran on Friday February 25, 2022 @07:52PM (#30474291)
Author needs clickbaits to get clicks
Re:Explain the first 10 lines of Twitter's source code to me by CPLX on Friday February 25, 2022 @03:14PM (#30471825)
It’s the code you see when you view source