this post was submitted on 01 Sep 2023
254 points (96.4% liked)

Programming

17507 readers
11 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
(page 11) 50 comments
sorted by: hot top controversial new old
[–] TerrorBite@meow.social 1 points 1 year ago (7 children)

If your code files don't contain more lines of comments than lines of actual code, then you're doing it wrong. (For Python, docstrings count as comments)

And your comments shouldn't say what each line of code is doing. If you can code, then you can already tell what each line is doing by just reading the code. The comments should explain WHY it's being done this way, or HOW it's being done, or highlight some pitfalls that might snare a future developer, and generally just give some higher level context to a line or block of code.

@257m @programming

load more comments (7 replies)
[–] Feathercrown@lemmy.world 1 points 1 year ago

Pure text is probably not the best way to write code, even if it is the most interoperable format

[–] hblaub@programming.dev 1 points 1 year ago

There are two many programming languages and frameworks. There is a lot of doubling. Why the heck is there Dart/Flutter? Just use Javascript/TypeScript. Why Swift, when you have D, Go, Rust, Python with type annotations, etc.? In my opinion, just too much waste. Of course, in a niche, like OS development or embedded, there can be actually a need for hyper optimized special solutions. But the "mainstream" rest?

[–] 0xE60@hexbear.net 1 points 1 year ago (1 children)

JQuery was just Javascript for lazy people.

[–] StudioLE@programming.dev 1 points 1 year ago

jQuery was an essential stepping stone back when JS was lacking a ton of features that people take for granted these days.

Sure everything could have been done with Vanilla JS but it was verbose and difficult to follow. jQuery made it possible for any developer to quickly make a page dynamic

load more comments
view more: ‹ prev next ›