Cooper Gidge
Software and website developer, etc. 💻📱🌐
I keep seeing companies using AI for things that shouldn't need AI. It's pretty good when it comes to tasks that require some creativity, like write poetry. But when it comes to anything formulaic, don't use AI.
Instead, use an algorithm. It is faster, more efficient, doesn't use any external API requests, doesn't require an OpenAI subscription, and uses virtually no power compared to AI.
Don't use AI because your corporate boss saw an article saying it's good. Try and explain to them that a traditional approach is better.
When using oEmbed on Discord, make sure you include your website domain in the discovery URL. In my <head>
element, I specified my oEmbed support like:
<link type="application/json+oembed" href="/path/to/oembed.json">
But Discord (truth be told, they're all I checked) wasn't including it in their embeds until I changed it to:
<link type="application/json+oembed" href="https://www.example.com/path/to/oembed.json">
So maybe it's not a bad practice to include the site domain in all href
attributes.
Today I learned that print statements cost more than you think. I had a program that needed to perform a calculation...100 million times. I, in my wisdom, had it print what it was doing...100 million times.
When I ran it with print statements, it took over an hour to complete. When I removed the print statements, it took seconds.
It turns out even tiny bits of inefficiency can add up. Who would've guessed?
Introducing...Bits! I said that I was considering this feature when I launched this site a few days ago, and now I've gotten around to adding it!
This post type will be for short, few-sentence bits of information that we learn, but nothing long enough to fit in an entire article.
Along with this change, we now have more RSS feeds! Now, you can choose the feeds you like best and not get bombarded with everything we post.