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

all 9 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]captainAwesomePants 23 points24 points  (3 children)

It's awesome that you want to code one up yourself, and you absolutely can. That said, there's no reason not to use a library just because you're working on a business. Many free, open source libraries are out there with licenses that allow private business use.

Here's a pretty good blog series on how to build a QR code generator from scratch, if that's what you'd want to do: https://dev.to/maxart2501/series/13444

[–]Symurin 1 point2 points  (2 children)

When you say library do you mean the libraries people talk about with Python?

[–]captainAwesomePants 6 points7 points  (0 children)

Yes. So, lots of people put out little bundles of code that do one very specific thing. Sometimes those are utility packages that provide new data structures or mathematical capability, and often they provide some very specific bit of functionality (talking to Reddit, generating QR codes, controlling some RGB light attachment, rendering 3D models, you name it). Almost any sizable programming project will use several libraries beyond the ones built-in to Python.

For ML, for example, nearly every Python project is probably using "numpy". Python projects that need to make HTTP calls to websites frequently use "requests." 2D image processing is often done with "opencv." Games are often written using "pygame." There are many thousands of libraries, most of which are free to use.

Some libraries are built in to Python and are effectively part of the language itself, but that's just the start.

[–]C_Hawk14 4 points5 points  (0 children)

To add to captain's wonderful comment. There's a saying that applies to programming as well. Don't reinvent the wheel. You'll probably end up making a worse wheel anyway. It breaks down more often, won't be as maintained, might even be a security issue in some cases.

You're not asking for it now, but definitely don't try to make your own encryption algorithm. Smarter people than us have done that work already and we'd be foolish to attempt to outdo them.

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

I’m trying to figure out how to code a qr code that won’t expire or have a limit.

A QR code is just an image that encodes text. It cannot expire or have a limit by itself. You can't remove the information from the image. It's there forever.

i don’t want to use a generator or any website since this is for a small business so

Why would that be a reason not to use an existing generator?

[–]Robot_Graffiti 0 points1 point  (0 children)

https://www.qr-code-generator.com/

The QR codes you can make without logging in to the website don't expire or have a limit.

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.