Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 14, 2022 07:23 pm GMT

Top Five WORST posts of the year

I've found some seriously terrible posts written by some members on DEV, and decided to bring them together here and give 'em each a roast

Note that this is a joke, and not meant to offend anyone. If your post was in here and you'd like me to take it down, I'll gladly do so.

Info aside, let's get started.

5. Obvious Advertisement

Post link: https://dev.to/oncasinosite77/which-poker-set-is-the-best-1ioe

Post author: @oncasinosite77

Dude, this isn't even a programming post. Have you even read what dev.to is about? Take your garbage elsewhere!!

Guess what his buddies (or bot accounts!) are doing to help this post trend?

Three unsmart ppl

Let's take a look at what all of you devs gotta say to you! Give this guy some of his own medicine for me!

4. Got your languages wrong, boy

Post link: - https://dev.to/bhaggu/html-tips-3o0o

Author: - @bhaggu

"HTML tips". Taking a look at your code, it's javascript, and you are using some of the worst and most inefficient ways to do things.

Never ever hide something based on its HTML inner text content. Always use classes, ids, or custom attributes.

Code hanging on for dear life

Did you think about what happens if the text content in the "menu" should be changed?

And take a look at your code, it's all hanging off the wall for dear life!! Start coding in python and do the same for me, will ya?

Taking a look at your second example, you're using Jquery whereas all your other stuff are using vanillaJS. You do know that jquery is outdated and deprecated, right?

In your setCSS function, you're setting classes, not CSS styles.

And as for your other examples, they are fair enough except the ones that use jquery, but man, change the title and format your code for crying out loud!

(no offense )

3. 12-year-old detected?

*Post Link: * - https://dev.to/andrei12333/hosting-your-projects-without-paying-a-penny-25f2

*Author: * - @andrei12333

Man, what grammar!! This post looks like it was written by a twelve-year-old! I see two periods in your entire post, one to end it and one in a domain. How can you write such a large run-on sentence? Can you imagine what your english teacher would say?

Grammar Vomit

One cool fact I thought I'd inform you is that you should use vscode instead of github codespaces. And guess what? https://github.com/codespaces/new returns 404!

If you are going to make your project open-source create a repository first, Else then just go ahead and choose the repository "ANDREI12333/Empty" it is a blank repository, And now click on create codespace, Afte...

Not everyone on github is named ANDREI12333, and did I mention how childish that username is?? 123 in any username signifies kids, usually when they can't think of text to put in their name.

And also, you don't host your stuff on IPs designed to host minecraft servers!! Playit.gg is for minecraft servers, not production-level web hosting!

2. Performance Degrade + Worst way to code

*Post link: * - https://dev.to/codewithsnowbit/how-to-protect-your-javascript-code-2c3b

*Author: * - @codewithsnowbit

Take a look at the comments section for a laugh. Yeah, it might be harder to read your javascript code, but can you imagine how much of a degrade in performance that is?

Why would you ever put sensitive credentials on the client side? There is something called environment variables.
As for hiding functions, you won't need to do any of that unless it's api calls or websocket functions. Ratelimits do the job.
As for copying code, you do understand that they can copy your obfuscated javascript code, and do the same thing with it.
And of course it will be large, more difficult to understand, and cause major performance issues.

After scrolling down in the post a bit, I see something outrageous. https://obfuscator.io/ - Who would create such an abomination? A useless tool to expand, degrade, and corrupt javascript code. I'm not blaming you for this, but the creator of that's gonna get yelled at real soon!

I love your posts, man, but this one just doesn't fit with me - or anyone.

1. "It works on my machine"

*Post link: * - https://dev.to/raaj/how-to-solve-cors-error-in-frontend-5630

*Author: * - @raaj

Installing a chrome extension to make stuff work on your machine is not a fix!! It's like a cough drop to cover up coughing, or something temporary.

I remember a developer on twitter ask others to post four words to make a developer cry, and one of them was "it works on mymachine". This post literally made me cry and shed tears of dread and anguish on my keyboard!!

Never, ever do something like this. Have you heard of making your own backend server to fetch things and proxy api requests via a special api route?

Pushing aside the fury that your post has caused in me, you're an amazing dev, your stuff is cool, but this post really jarred me. You were the inspiration of this post, if anyone reading this post enjoyed it, they've got you to thank.

I'd love to hear y'alls thoughts! If you find any cringe posts that you'd like me to write about, I'll happily create another post.

Once more, I don't mean to offend anyone.

Thanks for reading, happy coding, and don't forget to follow me here and on twitter!!


Original Link: https://dev.to/ironcladdev/top-five-worst-posts-of-the-year-1dhn

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To