Skip to content

Conversation

@Kaamkiya
Copy link
Member

I Am Adding a New Project

This was discussed in the Discord server.

I am willing to make changes if they are needed :)

Copy link
Collaborator

@rzuckerm rzuckerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. However, I'll hold off merging this until the article is ready. I'm not sure what would happen with the README automation if there is project here that doesn't have a corresponding article

@rzuckerm rzuckerm added the enhancement Any code that improves the repo label Feb 24, 2025
@rzuckerm rzuckerm changed the title Add new project: base64 Add new project: base64 encode decode Mar 22, 2025
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

- " *"
transformations:
- "splitlines"
base64_encode_decode:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am so thankful we moved to a config file format for the tests. I will say: I deleted my twitter account for good, and part of the reason was that tech bros constantly post rage bait. I recently saw multiple people claiming YAML is a terrible config file format, and I just don't really get it. There really was one guy going on this huge crusade about it not being typesafe, and that a turing-complete language is better for configurations. In my mind, I was thinking: wasn't setup.py one of the most painful files to setup for a project? I'll stick to my simple YAML, JSON, TOML files.

I will say the folks I've seen complaining about YAML use it in K8s, and I guess that can be annoying. I also find the GitHub Actions use of YAML to be a bit finicky. Anyway, thanks for reading my late night thoughts 😆

from typing import NoReturn


def usage() -> NoReturn:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have never actually seen this before. Is this because the function exits no matter what, so it has no chance to return None?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, NoReturn means what it says: the function never returns. The program just exits.


def is_prime(x):
if (x % 2 == 0 and x is not 2) or (x == 1):
if (x % 2 == 0 and x != 2) or (x == 1):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

container:
image: "python"
tag: "3.7-alpine"
tag: "3.12-alpine"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a wonderfully good jump!

@rzuckerm rzuckerm merged commit 3e36485 into TheRenegadeCoder:main Mar 25, 2025
16 checks passed
@Kaamkiya Kaamkiya deleted the project-base64 branch March 29, 2025 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Any code that improves the repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New project base64 encode decode

3 participants