Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Terse languages are a must for single or few-user experiments, e.g. research. Not everyone is implementing a commercial website that needs to be understood by 50 people.


I still use good variable names in projects where I'm the only person reading the code. I wouldn't remember what things mean otherwise.


We have a different definition of terseness.


What do you mean?


I mean that programming in a terse language has nothing to do with obscure variable names. The point of terse languages is that knowing the primitives allows you to write concise programs comfortably. It doesn't mean you have to use single letter variables which in opposition to primitives do change between programs.


Isn't the way those languages make concise programs by having short symbols instead of descriptive names?

Comparing NumPy to APL it looks that way.

https://analyzethedatanotthedrivel.org/2018/03/31/numpy-anot...


Well yeah, referring to my above comment the primitives are symbols and it's expected that the user knows them, just as you're supposed to know the keywords in any language.

Good (professional) APL though, will intersperse those primitives with meaningful variable names.

Whether one thinks it's worth the effort to know the symbols vs know the keywords is matter of opinion. But if one dares calling oneself let's say a python programmer, I'd argue that anybody would expect that you'd know the keywords anyways.


Indeed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: