Say what you mean
dev.to·19w·
Discuss: DEV

Use your words

Most programming languages today, barring EsoLangs and the APL family of languages, use English for their APIs.

Some languages’ designer, like for Python and Ruby, went to great lengths to make those languages’ APIs read like a valid English sentence (more or less.)

The thing with using a spoken language for APIs to be consumed by a computer, is that sometimes the meaning of words in the natural language get hijacked into meaning something not quite the same.

A great example for that is the word ‘private’.

In English, the word ‘private’ means one very particular thing: something that is personal, not to be interacted with by anyone other than its owner. Not quite, but not too far removed from a secret.

What’s the point?

Lately, as part of my Elixir-to-F...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help