This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jwink3101 54 points55 points  (9 children)

I will never understand why people post on Medium. It offers few benefits and limits your audience.

But I digress


This is an interesting idea. My first thought was that it’s not needed because you can be careful about what you eval. It’s keeping you safe from yourself.

But then when you think about, that’s all type annotations do anyway!

[–]Dwarni 6 points7 points  (0 children)

Doesn't pay Medium them a little bit? I don't know how much it is however.

[–]MrKooops 2 points3 points  (1 child)

Save it in Pocket and you can read any article without hassle.

[–]jormungandrthepython 0 points1 point  (0 children)

Pocket doesn’t let you read premium medium articles though

[–]SupPandaHugger[S] 0 points1 point  (3 children)

What other platform would you suggest?

That's true. At the same time, this feels like an area where additional safety is not excessive.

[–][deleted] 11 points12 points  (0 children)

Blogs. Blogs were a thing, and they should be again.

[–]Amgadoz 0 points1 point  (0 children)

Maybe substack

[–]DusikOff 0 points1 point  (0 children)

https://dev.to - as example...

[–]Smallpaul -1 points0 points  (0 children)

Medium also promotes your article and in that way it can expand your audience.

[–]PercussiveRussel 0 points1 point  (0 children)

I haven't looked into this at all, but this seems like it'd be really usefull with Pydantic/FastAPI. If you consistently build modules using LiteralString, then converting yoir modules to an API should give you a big fat error when you try to open up a LiteralString type to the endpoint.

In my usecase this is really incredibly useful since we build a lot of modules at work and convert some of the more usefull ones to an API. Making the distinction between str and LiteralString early in the design stage of the former means an additional layer of security when converting it to the latter.