Ask HN: How would a programming language look if designed by non-programmer
31–40 of 132 posts
Re: Ask HN: How would a programming language look if designed by non-programmer
#32Re: Ask HN: How would a programming language look if designed by non-programmer
#33Re: Ask HN: How would a programming language look if designed by non-programmer
#34It would look like GPT-3, you enter text and the system translates that to code machines can understand. A programming language will never be a solution for people who can't program, break down problems to smaller chunks and be able to generalize and create abstractions. Think about someone who can't drive. To them no matter how good a car is, a car alone will never be the solution to move around (ignore self driving…
Re: Ask HN: How would a programming language look if designed by non-programmer
#35Re: Ask HN: How would a programming language look if designed by non-programmer
#3650 years ago, these people were quite common. There were only mathematicians and engineers, but programmers didn't exist yet. The good: Excel, Dataflow Diagrams (commonly found in game, music and arts), SQL, Declarative Dataflow Paradigms in general. Mutablity is counterintuitively counterintuitive if you don't have a model of the underlying execution system. The weird: Prolog, APL, languages done by mathematicians a…
I'm struggling to think of an aesthetic reason why SQL would be "good" yet R, "ugly".
There is no world in which listing the columns before the tables in a SELECT statement is a good idea. It makes intellisense/autocomplete awkward.
Re: Ask HN: How would a programming language look if designed by non-programmer
#37Re: Ask HN: How would a programming language look if designed by non-programmer
#3850 years ago, these people were quite common. There were only mathematicians and engineers, but programmers didn't exist yet. The good: Excel, Dataflow Diagrams (commonly found in game, music and arts), SQL, Declarative Dataflow Paradigms in general. Mutablity is counterintuitively counterintuitive if you don't have a model of the underlying execution system. The weird: Prolog, APL, languages done by mathematicians a…
I'm struggling to think of an aesthetic reason why SQL would be "good" yet R, "ugly".
Re: Ask HN: How would a programming language look if designed by non-programmer
#3950 years ago, these people were quite common. There were only mathematicians and engineers, but programmers didn't exist yet. The good: Excel, Dataflow Diagrams (commonly found in game, music and arts), SQL, Declarative Dataflow Paradigms in general. Mutablity is counterintuitively counterintuitive if you don't have a model of the underlying execution system. The weird: Prolog, APL, languages done by mathematicians a…
Re: Ask HN: How would a programming language look if designed by non-programmer
#40I got there by thinking 'probably not that far off python, but even more pseudocodey, a load of redundant keywords like `for every item in` instead of `for v in`' -- and such constructs probably wouldn't bind variables, you'd repeat yourself referring to `the item` or something.
I also think there'd probably be a lot of focus on (high school) mathematical functions (since that would be the expectation of what computers must be like) and graphics (because that's what computers look like). So everything would be about identifying pixels on the screen and colouring them, locating the cursor by position, that sort of thing.