veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

283
active users

#pycharm

4 posts4 participants0 posts today
Continued thread

Also this is the first time I've done anything in #python in probably a decade? I'm pretty sure this is the first time I've used Python 3.

Is it really this easy? It's almost like writing English.

Hmm I also need to make sure the packages I'm using are all the right things for the job. I know #LLM hallucinations end up with malicious packages.

Anyway that's enough for tonight. I spent most of the night making #PyCharm and #SSH work on a #windows box (I know, I know 🙄... Switch to #Debian)

This screencast shows the result of a one day vibe coding session with #PyCharm #Junie and GPT-5...a small PoC for monitoring URLs, their response time and cert validity.

The complete #Python codebase has been generated. I did not touch a single line of code.

91% test coverage. The backend is backed by Sqlite...and it has a dark mode :)

Current project name is "Endpoint Pulse".

The primary purpose was building a PoC using vibe coding..

Continued thread
def is_valid_key(obj) -> TypeGuard[Key]:
return (
obj is None
or isinstance(obj, (str, int, float))
or (
isinstance(obj, (tuple, frozenset))
and all(is_valid_key(elem) for elem in obj)
)
)


class KeyClass:
def __new__(cls, that: Key) -> Key:
return that

def __instancecheck__(self, instance) -> bool:
return is_valid_key(instance)

Having to pick whether to use Key or KeyClass kinda sucks and I want to use just the class everywhere, but it seems like #PyCharm 's type checker can't tell that, when I annotate something KeyClass, that means it shouldn't complain when I pass in a string.

Is this a PyCharm limitation, or am I using types wrong?