DEV Community

Cover image for Top 5 DEV Comments from the Past Week
Peter Kim Frank Subscriber for The DEV Team

Posted on

13 4

Top 5 DEV Comments from the Past Week

This is a weekly roundup of awesome DEV comments that you may have missed. You are welcome and encouraged to boost posts and comments yourself using the #bestofdev tag.

@ryansmith left a great comment in the React vs Vue: Compare and Contrast thread:

Here's my take on it:

React

  • Aims to be a library concerned with rendering UI and it stays true to that purpose. It is unopinionated on how to build apps.
  • In most use cases, having just a library for rendering UI is not enough, so other packages are typically added (create-react-app with routing, CSS-in-JS, state management, etc.) to improve the experience. With the add-ons, a React app becomes more framework-like.
  • Templating is done with JSX which are HTML-like elements plus standard JavaScript to create conditionals or loops.
const todoItems = todos.map((todo, index) =>
  <li key={index}>
    {todo.text}
  </li>
);
Enter fullscreen mode Exit fullscreen mode
  • Less domain-specific language as most constructs use standard JavaScript. This can steepen the learning curve but will help improve JavaScript language skills.

Vue

  • Its purpose is also to render UI, but it has added convenience as official parts of the ecosystem (Vue CLI, Vuex, Vue Router). It is not necessarily opinionated or rigid, but it gives more guidance and convenience to build apps.
  • By default, Vue components are separated into a template, scripts, and styles to separate concerns.
  • The templates use directives, which are custom Vue attributes added to HTML elements to output dynamic content that requires an if-statement, loops, etc.
<ul id="example-1">
  <li v-for="item in items" :key="item.message">
    {{ item.message }}
  </li>
</ul>
Enter fullscreen mode Exit fullscreen mode
  • More domain-specific language to learn, which can lessen the learning curve but you may not pick up as much JavaScript knowledge.

@madarsbiss shared their 80/20 rule derivation in What are your worst habits as a developer?:

Hofstadter's Law:
Showing client the project at 80% and forgetting the remaining 20% takes 80% of time.

In the same thread, @botanical followed up with their habit:

One of my worst habits as a developer is being too much in my head and forgetting about my body. By that I mean ignoring my need to use the restroom, having bad posture, and forgetting to eat at times >_<

@mrrcollins tugged at the nostalgia heartstrings with this still-functional submission to Workspace Wednesday: Show me pics of your at-home setup:

@jakesweb offered their take in Should remote workers be paid differently based on location?:

Workers should always be paid for their work. I believe it to be as simple as that. When you are paid a salary, you are paid for the skills, knowledge, and time you invest in the work. Someone working from New York would have the same working experience as someone living in any other part of the world.

See you next week for more great comments ✌

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (4)

Collapse
 
peter profile image
Peter Kim Frank

Congrats to @ryansmith , @madarsbiss , @botanical , @mrrcollins , and @jakesweb for making the list this week!

Collapse
 
ryansmith profile image
Ryan Smith

Thank you!

Collapse
 
madza profile image
Madza

thanks :)

Collapse
 
salihbezai profile image
salihbezai • Edited

Alt text of image
A lot

DEV is built on open source software called Forem!

GitHub logo forem / forem

For empowering community 🌱


Forem 🌱

For Empowering Community

Build Status Build Status GitHub commit activity GitHub issues ready for dev GitPod badge

Welcome to the Forem codebase, the platform that powersdev.to. We are so excited to have you. With your help, we canbuild out Forem’s usability, scalability, and stability to better serve ourcommunities.

What is Forem?

Forem is open source software for building communities. Communities for yourpeers, customers, fanbases, families, friends, and any other time and spacewhere people need to come together to be part of a collectiveSee our announcement postfor a high-level overview of what Forem is.

dev.to (or just DEV) is hosted by Forem. It is a community ofsoftware developers who write articles, take part in discussions, and buildtheir professional profiles. We value supportive and constructive dialogue inthe pursuit of great code and career growth for all members. The ecosystem spansfrom beginner to advanced developers, and all are welcome to find their place…

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay