Pick a popular online service with a public API and write some scripts that integrate with them. Learn by doing.
Pick a popular online service with a public API and write some scripts that integrate with them. Learn by doing.
Everything in moderation, including moderation
This works until you scale the team beyond 1 person and someone else needs to decipher the 30 line awk | sed | xargs monstrosity you created. Give me a real programming language any day.
Mods of communities can already see votes in communities they moderate. Admins of instances can already see votes on all content.
For small apps, generating it in the backend, trying to insert it, and then catching the exception should be totally fine. The odds of collision are quite small.
I personally feel UUIDs are overused unless you happen to be running truly distributed systems that are all independently generating IDs.
In this case where the ID is also going to be in the URL, you’ve just added 32 characters to the URL that don’t need to be there. Since OP is apparently concerned with the look and feel of the URLs, I thought that UUIDs wouldn’t be the best option.
You could also just use a random non-numeric primary key. For example you could generate a string of 8 random characters + numbers. That would give you well over 2 billion possible IDs.
So long as you have robust data sanitization on the backend to prevent XSS and HTML injection attacks…
If you can get away with just using Markdown, you should definitely use that instead of full HTML.
It’s perfectly normal for your computer to have daemons.
You should definitely set up a DMARC record to prevent other people from using your email domain to send spam. If you don’t have DMARC configured, other email servers will give any senders the benefit of the doubt and accept mail that claims to be from your domain.
You can just set the DMARC record to reject 100% of unverified mail and call it a day. Since you aren’t sending anything it won’t affect you.
According to all known laws of aviation, there is no way that Dumbo should be able to fly. Its ears are too small to get its fat little body off the ground. Dumbo, of course, flies anyway. Because Dumbo doesn’t care what you think is impossible.
“Embargo” sure is a funny way to say “launching pirate raids and missiles”.
The term is metonym. It is when you use a characteristic or associated attribute of a thing as the name of that thing. A classic example would be “the crown” when talking about the monarch or “The Whitehouse” when talking about the president.
These ads only appear in the “promotions” section of Gmail, the section that is by definition for advertising emails. It’s not great, but this is the least intrusive place to put ads.
And then, because you were never in a classroom and never took a class on security, you probably have no idea what a buffer overflow attack is or how to use tools like valgrind to check for them.
Then you put your C code on the internet and get your server pwned inside of an hour.
Slightly hyperbolic? Yes definitely. But there is a reason we don’t teach C to beginners anymore. Generally you want them to understand the mindset of coding before throwing them in the deep end. And I would bet nothing has caused more people to quit programming then
Segmentation fault: core dumped