Email or username:

Password:

Forgot your password?
7 comments
Blue

@drq@mastodon.ml quite nice, I like it! Do you think it's a problem that it's not clear of what it does? Definitely not for me, but I heard some people recommend avoiding it

Dr. Quadragon ❌

@blue hard to say, but I'm a fan of creative names. Music converter named "Music Converter" tells nothing to me. Music converter named "Sound Juicer" makes me like "ah, THAT music converter".

Alexey Skobkin

@drq @blue
It's different when it's a library and when it's a project.

When you're checking your 'dependencies.json', there are a lot of stuff there. So the clearer names are the better.

When other people check your code it could be hard to understand too.
Why the fuck do you 'import starlight'? What does it do? Lights the party up?

Ale xyū̀ thī̀ Krungtheph!

@skobkin @drq @blue You can get away with it though if it's a framework (Django, Flask, Rails) or is likely to be a center piece of software (Pandas, PyTorch, or more obscure Pedalboard, Satchless)

And even for “boring” libraries, you have certain room for creativity – the name could be a pun on the kind of thing you're building, for example

Ale xyū̀ thī̀ Krungtheph!

@skobkin @drq @blue
Finally, what you say is true for dependencies file, but in code is actually fine:

from starlette.applications import Starlette
from starlette.responses import JSONResponse
from starlette.routing import Route

already gives you a rough idea what Starlette might be, even if you're not familiar with it.

Alexey Skobkin

@ale @drq @blue
1. In Python.
2. 'from starlette.applications import Starlette' says nothing to me, sorry.

Ale xyū̀ thī̀ Krungtheph!

@skobkin @drq @blue
1. And other languages with a similar import system. JS and Haskell come to mind, but I'm sure there's a lot more like that.

2. Yeah, out of context it doesn't mean much. It's unlikely that it would be the only import in that file, though.

Go Up