3 ms·
This is a great idea! I wonder, though, if it would be easier if you avoided computerese in your naming? Keywords like "func", "subr", and "str_chars" are part
by thewebcount 7y ago
This is a great idea!
I wonder, though, if it would be easier if you avoided computerese in your naming? Keywords like "func", "subr", and "str_chars" are part of what makes people's heads spin when they first look at code. If they were just named "function", and "subroutine", and "character_string" (or just "string" or "characters") it would be a little harder to type, but much much easier to read. And you know what they say – you'll read a lot more code than you write.
Other than that, this looks really nice. Nice work!
- chkas 7y agoFor example, "func" is also used in other programming languages. I think frequently used keywords should be shorter. It is then less to type and IMO the code is then also more readable.
- empath75 7y agoYeah but the point here is to introduce people to programming concepts and using ‘plain English’ words reduces a little friction for people.
- chkas 7y agoYoung people quickly find abbreviations for things they often write: BTW, LOL, IMHO... So it should be no problem to understand "func" as "function".
- empath75 7y agoKids are unlikely to know what a function is, anyway.
- skanga 7y agoJust allow BOTH. In the documented examples shown print the whole word like FUNCTION. But also allow it to be abbreviated to FUNC, FUNCT or FUNCTIO!
- chkas 7y agoI generally don't think this is a good idea. However, it does exist in easylang: pr is an abbreviation for print and the dot is one for end.