this post was submitted on 01 Sep 2023
8 points (100.0% liked)

Programming

23023 readers
368 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 2 years ago
MODERATORS
(page 2) 21 comments
sorted by: hot top controversial new old
[–] NBJack@reddthat.com 0 points 2 years ago* (last edited 2 years ago) (1 children)

Oh boy, here we go (inhales):

Agile isn't that bad. People just believe they are more productive if they are "heads down" and not held accountable for what they write/do.

Functional programming isn't that great and doesn't solve all of the world's problems; it just pushes the issues with state to other parts of your design, and doesn't scale well in deeply nested solutions.

IDEs with proper code support (i.e. automatic structure analysis, autocomplete, etc.) are one of the best ways to deal with a large codebase that needs refactoring. Doing widescale refactors without one is asking for trouble. If you believe you don't need it, either your codebase is just that small (which is fine) or playing with fire.

Much of the advice out there on architecture and tooling isn't properly contextualized on the codebase, market, and team situation. If you believe you have the One True Architecture Solution, you are naive. (Ex. Microservices, large complex code pipelines, monorepos, etc.) Be especially wary of anything from FAANG engineering blogs unless you are also in another letter of FAANG.

There. Got it out of my system. Have fun dissecting it.

[–] SpaceCowboy@lemmy.ca 0 points 2 years ago (1 children)

The biggest problem with Agile is bad managers fucking it up. But bad managers will fuck things up no matter which way you do things.

But they're going to want to somehow see progress, and they'll leave you alone if they see some cards moving on a board. Even if they have no idea what the cards mean.

Whatever, it's better than having to do status update meetings.

[–] NBJack@reddthat.com -1 points 2 years ago

I can't speak for your managers, but my past managers didn't need Agile to f things up. They can do that with anything!

[–] csm10495@sh.itjust.works 0 points 2 years ago (1 children)

GNU make is confusing as hell and shouldn't be used in today's world.

load more comments (1 replies)
[–] eeleech@lemm.ee 0 points 2 years ago (1 children)

I find that S-expressions are the best syntax for programming languages. And in general infix operators are inferior to either prefix or postfix notation.

[–] Andy@programming.dev 0 points 2 years ago (1 children)

In case you haven't heard, Factor just had a new stable release, and is tons of fun for postfix enthusiasts.

[–] xigoi@lemmy.sdf.org 0 points 2 years ago (1 children)

I never understood how concatenative programmers can hold the current state of the stack in their head and never get confused about what is where, especially when changing complex code.

load more comments (1 replies)
[–] BrotherL0v3@lemmy.world 0 points 2 years ago (3 children)

Tools that use a GUI are just as good (if not better) than their CLI equivalents in most cases. There's a certain kind of dev that just gets a superiority complex about using CLI stuff.

load more comments (3 replies)
[–] phoenixz@lemmy.ca 0 points 2 years ago (1 children)

Go with what works

Error messages should contain the information that caused the error. Your average Microsoft error "error 37253" is worthless to me

Keep functions or methods short. Anything longer than 20 - 50 lines is likely too long

Comment why is happening, not what

PHP is actually a really nice language to work with both for web and command line utils

Don't over engineer, KISS. Keep It Simple Stupid

SOLID is quite okay but sometimes there are solid reasons to break those rules

MVC is a PITA in practice, avoid it when possible

[–] Omgpwnies@lemmy.zip -1 points 2 years ago* (last edited 2 years ago) (1 children)

Your average Microsoft error “error 37253” is worthless to me

This is a security thing. A descriptive error message is useful for troubleshooting, but an error message that is useful enough can also give away information about architecture (especially if the application uses remote resources). Instead, provide an error code and have the user contact support to look up what the error means, and support can walk the user through troubleshooting without revealing architecture info.

Another reason can be i18n/l10n: Instead of keeping translations for thousands of error messages, you just need to translate "An Error Has Occurred: {errnum}"

[–] BatmanAoD@programming.dev 0 points 2 years ago (1 children)

Those benefits both make sense, but are those really the original motivation for Microsoft designing the Blue Screen of Death this way? They sound more like retroactive justifications, especially since BSODs were around well before security and internationalization were common concerns.

load more comments (1 replies)
[–] Crisps@lemmy.world -1 points 2 years ago

Dynamically typed languages don’t scale. Large project bases become hard to maintain, read and refactor.

Basic type errors which should be found in compilation become runtime errors or unexpected behavior.

[–] hellishharlot@programming.dev -1 points 2 years ago (1 children)

Using single character variable names is always bad practice

load more comments (1 replies)
[–] onlinepersona@programming.dev -1 points 2 years ago

Composition over inheritance has become a meme that people repeat without understanding. Both have their uses, but if composition is all you use, then you're using a hammer on everything. There is no silver bullet in life and most undeniably not in programming.

Also, electron has a reason for existing. If it didn't have a use, it wouldn't have the number of users it has. You can't tell me in all seriousness that Qt, Gtk, Swing, Tkinter is easier to use than electron for the common developer.

[–] qwerty@discuss.tchncs.de -2 points 2 years ago

Internet would be better if javascript was never invented.

load more comments
view more: ‹ prev next ›