3 ms·
Right now, this isn't really any better than looking at an individual language's site for syntax, this just offers a common user interface. For example, the si
by mywittyname 10y ago
Right now, this isn't really any better than looking at an individual language's site for syntax, this just offers a common user interface. For example, the site has no idea what a list comprehension is, yet that's a fundamental component of python.
I think a transpiler would be absolutely awesome -- even if it only works on curated code samples on the site. Something that shows how a piece of code can be expressed in many different languages. This would be extremely useful for things like Regular Expressions (also, no results found for regular expressions on the site), which are in just about every language, but are treated very differently.
Personally, I think that's your killer idea. It will be damn hard to do, but if you can make it work, I think you'll end up with a lot of visitors. Knowing the language idioms is key to understanding a language.
- thenipper 10y agoWould a transpiler kind of be like rosetta code?
- mywittyname 10y agoYeah, I mean I use that word because it conveys the result I'd like to see. A syntax database is not terribly useful. A concept database is where the real value is. The idea is that a language is much more than just raw syntax. C++, Python, and awk are all so fundamentally different that explaining the differences in terms of syntax is ultimately worthless. Even something like "array in C++" vs. "arrays in python" is not very valuable because they really mean totally different things. There's a lot of unknown-unknowns for a Python programmer whose never seen C++ code in their life. They would never think that arrays are fixed length and accept only one data type because lists in Python have neither limitation, likewise, a C++ programmer might be looking something to that behaves like std::vector not understanding that Python lists are perfectly appropriate. It would be perfectly acceptable to have people write the "same" (ideally, non-trivial) code in different languages and link them together. In fact, that's probably what they should seek to do.
- thenipper 10y agoYou might not see this but I totally get what you mean. It'd be interesting to see something that broke programming down to that sort of core level. I'm sure it exists somewhere in some CS lab right?