4 ms·
I wonder if you could use this to tell programming languages apart.
by timando 5y ago
I wonder if you could use this to tell programming languages apart.
- djrockstar1 5y agoI think you absolutely could. Here's a few files I had lying around, take a guess: https://imgur.com/a/iTNJ8zw https://imgur.com/a/iTNJ8zw
- qsort 5y agoFair enough, I'll play :) The first one looks like some kind of configuration language, most likely JSON due to lots of matching { and }, colons and no semicolons. The second one I really can't tell. It's most likely some sort of curly brace language, Typescript? Java? The third one really looks like Python: no semicolons, no braces, [ and ] for list/dict access, # for comments, @ for decorators. The fourth is also tricky. I want to say HTML-ish because of the </> sequences, but it also looks like a curly brace language! I'm going to guess it's a JSX React file.
- djrockstar1 5y ago1. JSON 2. Typescript (Angular) 3. Python 4. Javascript (React) Spot on with the guesses!