1
hobblin
3y

The more I work with programming languages the more i feel like it's a big mistake to build functionality into the language. Especially functionality to extend the language, we developers have no fucking clue of how to write DSL languages that interact well with other developers code. We can not deal with the power!

Keep languages simple and extensibility very restricted, domain functionality belongs in libraries.

Also #deathtoframeworks

Comments
  • 1
    Frameworks are fine as long as you write them yourself.
  • 1
    My entire workflow is based on creating Domain Specific Frameworks, so that adding in and removing features is a breeze for my coworkers, but that only works if you know your "audience".
    Also even if you do create a Framework for a specific set of applications you shouldn't reinvent the wheel, reuse tried and tested patterns so that 99% of devs can see at a glance what is happening.
    Prioritize ease of use and explicidity in your framework so that people don't have to deal with "magic properties" and unknown/unplanned behaviour. Also for gods sake write descriptive comments, or even better, write clear and obvious code.
    If you follow these guidelines then you can build a DSF without making it incompatible with other peoples code.
    It's not the tools that are bad, it's the people that use them.
  • 1
    @EdoPhoenix writing a dsl or framework for your own code is perfectly fine, it's when you distribute it to others that you are adding to the world of hurt.
    The problem with all code is that it's by and for people and people are limited. By utilizing and writing libraries instead of frameworks we can actually use humans tendency to compartmentalize stuff.
  • 1
    @hobblin well you're clearly thinking of very opinionated frameworks, in a sense a library is just an unopinionated framework for doing a specific task.
    Although you are right that heavily opinionated frameworks like laravel or react are a bane on our existence.
  • 1
    @EdoPhoenix well yes, and a motorcycle is just a very unopinonated car.
    Libraries are building blocks, frameworks are frameworks. Trying to equate them to justify promoting frameworks seems a bit unreasonable tbh.
Add Comment