3 ms·
There's a reason why people draw in photoshop instead of typing the values of pixels in an array. I think the biggest problem with textual programming isn't th
by pseud0r 10y ago
There's a reason why people draw in photoshop instead of typing the values of pixels in an array.
I think the biggest problem with textual programming isn't the text per se, but that text is used as the underlying format. I'd rather have projections of an abstract syntax tree that I could manipulate as text with different types of syntax or as various visual objects when that would be more useful.
- icebraining 10y agoFrankly, I never understood this objection; what's the problem with using text as the stored format? You can still parse it to an AST, render it in a visual way and then serialize the AST back to text. I think the main issue is that code syntax is too flexible, so code generation tools create large diffs when updating manually written code. A simple solution to that is having a formatting tool like "go fmt" to adjust the latter before committing.
- collyw 10y agoAt the end of the day, text is just an intermediate format that we understand. Its all stored in a binary representation. Yes, I agree. Text is too flexible (allowing you to do clever things you couldn't do in a drop down menu). A drop down menu won't allow you to make the same mistakes that a text option will, but is way less flexible.
- seanmcdirmid 10y agoFlow and rhythm are a thing in progrsmming, which is why structured editing continues to feel "stilted" to many people. Heck, many people don't even like static typing for similar reasons...without heavy doses of inference, it forces you to write your code in a certain order or suffer from a bunch of distracting spurious tyoe errors.