DEV Community

Discussion on: 🔧 Advanced JavaScript Performance Optimization: Techniques and Patterns

Collapse
 
htho profile image
Info Comment hidden by post author - thread only visible in this permalink
Hauke T.

I am sorry, but when I read your articles I get a strong AI vibe.
If you used AI to to write this article you need to state that.

All your articles lack links to additional and deeper information on the topic.
Also this is a community targeting developers, as such one of the most basic editing features is syntax highlighting. These articles are not syntax highlighted. Why is that?

If an author has a deep understanding on programming (as needed to learn and use the methods in these articles), they should be experienced enough to know that syntax highlighting and links to additional resources are basic requirements for a technical article.

On the other hand, Copy&Paste from ChatGPT would probably look like this.

Collapse
 
kevinweejh profile image
Kevin

I'm not the OP, so I'm not in the position to comment.

But can I just say, your comment reminded me that syntax highlighting is a thing, and so I have gone back to update my own posts to include them. Just wanted to say a big thank you! Cheers

Collapse
 
joao9aulo profile image
João Paulo Martins Silva

Is there any tutorial on how to make syntax highlighting on dev.to?

Thread Thread
 
jitendrachoudhary profile image
Jitendra Choudhary
<h1>This is pretty easy. You can do like this</h1>
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
kevinweejh profile image
Kevin • Edited

@joao9aulo

First, wrap code in triple backticks (`) to turn them into code blocks:

Use of backticks

Standard code blocks without syntax highlighting

Next, append the opening triple backticks with the language of your code block to add syntax highlighting (keywords are highlighted accordingly):

Adding syntax highlighting

Code blocks with syntax highlighting

Reference: You can check here for a full list of languages - you want to be using the short name in the third column - typically supported. Of course, this might vary depending on the markdown implementation on dev.to, but common languages should work just fine.

Collapse
 
ayush-pr0 profile image
Ayush

I also feel the same. It's like AI-generated and not particularly helpful to me as well. Instead of copying and pasting from ChatGPT, people can add a deep understanding with relevant examples to maximize learning if they have.

If we all have access to ChatGPT, then why are people posting ChatGPT's responses here?

According to me, this platform is for developers who want to learn, share some experience, and contribute. Always provide useful information that can assist others and add value.

Some comments have been hidden by the post's author - find out more