News for hackers. Stuff that matters.
Re:90% of software engineering done today is integrating poo... by twblalock on Sunday May 01, 2022 @04:13PM (#31228248)
> "You don't want to write "raw" html/js/sql/Java" Uhm I thought that was my job.

It's not your job, any more than a firefighter's job is to be a hose operator, or a nurse's job is to be a syringe operator.

Your job is to produce software that meets the requirements of the business, as a member of a larger engineering organization which needs to be able to function well enough to deliver that software.

Why are frameworks popular? Because they provide a standardized way for multiple engineers, and multiple engineering teams, to collaborate effectively on the same product -- and they make it easy to hire people who already know the frameworks.

If everyone is writing "raw" JS/HTML/SQL/Java/whatever, they are actually building their own individual, unstandardized frameworks.

That's not good for supporting software when the author leaves, and it raises the barrier enormously for onboarding new people. Above a certain scale it's just not workable.

You can be cynical about this and say that it reduces engineers to interchangeable cogs in a machine. Or, you can understand why things are the way they are, understand how to succeed in this reality, and build a fulfilling career path for yourself by providing value that a mere cog cannot. I've worked with a lot of successful, happy engineers who are not cogs, and what separates them from the others is not coding skill -- it's that they all understand this reality.

Re:90% of software engineering done today is integrating poo... by wackget on Sunday May 01, 2022 @05:09PM (#31228692)
> If everyone is writing "raw" JS/HTML/SQL/Java/whatever, they are actually building their own individual, unstandardized frameworks.

That is only "technically" true, in the way that if you develop any kind of sufficiently complex program then you will have, by necessity, built something which could be called a framework.

Realistically, though, your point is invalid and misses the mark.

To say that programmers shouldn't write pure code without an existing framework is akin to saying that a house builder shouldn't use bricks and lumber to build a house; they should buy a pre-fab kit instead. Which is, of course, nonsense unless you want the shittiest quality most generic house possible.

Re:90% of software engineering done today is integrating poo... by jseban on Sunday May 01, 2022 @05:26PM (#31228833)
> then you will have, by necessity, built something which could be called a framework.

What they call "building your own framework" is simply what I think of as programming. You design a program, it will have a structure. Why is that "forbidden" and something that programmers are thought of as unable to do?

Re:90% of software engineering done today is integrating poo... by mattgreenrocks on Sunday May 01, 2022 @07:52PM (#31229874)
Because many (not all) devs use frameworks to cover for their own weaknesses in software design. There’s something deeply comforting in the faith that a few Very Smart Framework Authors have laid a gold-plated path of success for them to follow.

What they overlook is the time and energy wasted in the framework cottage industry: making dependencies talk to one another, aligning version numbers, major version upgrades being forced on them (or risk being insecure) and the time spent searching Google, SO, and GitHub issues for support.

Re:90% of software engineering done today is integrating poo... by ryanbrunner on Sunday May 01, 2022 @08:11PM (#31230009)
This really doesn't ring true to me. The biggest value of frameworks in my mind is that I don't have to waste time doing software design for things where my solution has no reason to be unique. Directory structure, how I interface with the database, how I write to logs, how I route HTTP requests to endpoints in my code are all certainly things I could solve, but I'd rather spend time on things that are unique to the problem I'm solving, and accepting a perfectly suitable standard for everything else.

As a bonus, I know that every dev I hire with experience with that framework is also going to know how these things are set up, and they can focus their onboarding time on what actually needs to be unique to the problem we're solving.

Regarding the downsides:

- a framework doesn't necessitate additional libraries any more than rolling your own does (arguably this is worse without a framework, because unless you don't use libraries altogether you have a hodgepodge of libraries to solve common problems that don't have a lot of incentive to be cross-compatible, and a framework really can't be incompatible with itself)

- Any half-way popular framework is going to ship security updates for past major versions (and again, if you're using libraries this is more of a headache than updating a single framework)

Re:90% of software engineering done today is integrating poo... by nh23423fefe on Sunday May 01, 2022 @09:38PM (#31230517)
Agree. I've never seen a poor dev reach for a framework to solve a problem. Poor devs do nothing for days and then ask a bad question at a stand up.
Re:90% of software engineering done today is integrating poo... by scarface74 on Sunday May 01, 2022 @11:56PM (#31231296)
I would much rather waste my time on a well documented industry framework that I can use when I leave than learning a framework written by the architect astronaut because he thought his problem was a special snowflake.
Re:90% of software engineering done today is integrating poo... by Tabular-Iceberg on Monday May 02, 2022 @04:02AM (#31232467)
> because he thought his problem was a special snowflake

I think this is the heart of the issue. Of course everyone thinks their problem is a special snowflake, otherwise they wouldn't invest resources into solving it. The job of us developers is to distill the essence of it and generalize the rest. But it's something I've always struggled to communicate with the business side. Either I "just don't get it", or they take generalization to mean I want to drown them in configuration.

Re:90% of software engineering done today is integrating poo... by hadlock on Sunday May 01, 2022 @08:36PM (#31230153)
Because someone else is going to come along behind you and need to maintain what you wrote. If you're using a standard, just about anybody can sit down and pick up where you left off within an hour or two
Re:90% of software engineering done today is integrating poo... by jseban on Monday May 02, 2022 @03:52AM (#31232419)
> If you're using a standard, just about anybody can sit down and pick up where you left off within an hour or two

Yeah it just doesn't work that way, you need to understand the domain and understand the system, and it takes a while to learn in a new job. This is just a fact, for every job, also software engineering. Stop this weird fantasy of replaceable cogs on the assembly line, you are not henry ford.

Re:90% of software engineering done today is integrating poo... by Handytinge on Wednesday May 04, 2022 @12:50AM (#31256887)
This may have been true at one point, however new frameworks are the "standard" every few years, and the pool for anything > a junior dev depletes quickly.

Documentation or (preferably and) built in language convention are the winners here as frameworks come and go.

Re:90% of software engineering done today is integrating poo... by codedokode on Sunday May 01, 2022 @05:37PM (#31228930)
Because if you move from one project to another you want to see a familiar implementation of Request class or ORM from a framework rather than reverse engineer custom-built undocumented untested replacement for this.

It may make sense if custom framework is a magintude order better, but if it is the same as a standard framework or worse then it is not worth to spend time on it.

Re:90% of software engineering done today is integrating poo... by scarface74 on Sunday May 01, 2022 @11:54PM (#31231286)
Because your framework eventually becomes a badly written, not as widely tested version of a known framework. When you leave, it will be a lot easier to hire someone who knows React than someone who knows jseban.js.

I’ve had to come in before and deal with someone’s custom ORM or logging framework.

I’ve made the mistake myself of writing something that was a cross cutting concern and then later found out that there was a popular third party package. I replaced my implementation as soon as feasible.

Re:90% of software engineering done today is integrating poo... by jseban on Monday May 02, 2022 @02:10AM (#31231917)
> Because your framework eventually becomes a badly written, not as widely tested version of a known framework. When you leave, it will be a lot easier to hire someone who knows React than someone who knows jseban.js.

Why are you assuming that everything a software engineer creates will always be bad? That's an unbelievably deprecating attitude. Do you ever see any other professions do this? UX? Product? Writers? "everything we always try to do will always be bad" and we have to try to safe us from ourselves? What?

And this "framework" would be custom made to solve exactly the use cases at hand, and nothing else by definition would be better at those specific use cases.

And why would you optimise so much for onboarding and hiring anyway, at the expense of so much continuous wasted time and less output?

When my product owner quit, the new guy was working in parallel for three months, because "of course, they have to learn the ropes". That's normal for every single job basically, except software engineering.

Why not just spend a couple of days, or a week, to give an introduction to your new hires, so that they understand and learn how you have structured your program?

The only "problem" with that, is that you have to stop acting out this farce of the computer genius with the superior intelligence, in your hiring and onboarding process.

Re:90% of software engineering done today is integrating poo... by Tabular-Iceberg on Monday May 02, 2022 @03:23AM (#31232260)
>Why are you assuming that everything a software engineer creates will always be bad?

Not necessarily, but it usually ends up badly. I have no doubts most of my peers could write a fine custom framework, but it's going to take a whole team of them at least a year to come up with something decently ergonomic, tested and documented. How often is the business side of the company going to be on board with spending that amount of resources on a solved problem?

Instead developers decide to fly under the radar and do it anyway, but then run out of steam while the framework is still an untested, undocumented prototype and the pressure to shift focus to features becomes too great to resist. And by that they have doomed the whole company to a bottomless swamp of technical debt, with seniors getting fed up and leaving, and being replaced with juniors with no clue of what's going on, making the onboarding problem magnitudes greater than it was in the first place. And if someone has the genius idea of a big rewrite, we all know where that's going, especially since the only people they have been able to retain the whole time are either inexperienced juniors and mediocre seniors, so the cycle repeats again.

Re:90% of software engineering done today is integrating poo... by jseban on Monday May 02, 2022 @03:38AM (#31232344)
> I have no doubts most of my peers could write a fine custom framework, but it's going to take a whole team of them at least a year to come up with something decently ergonomic, tested and documented.

No, because they would not make a framework, it would not require all of this work, because it's not designed to be generic and reused by others.

Simply write a program. Not a framework. Has this idea been completely lost? Solve your own use cases only. Don't try to generalise it and optimise it for reuse by someone else.

Re:90% of software engineering done today is integrating poo... by Tabular-Iceberg on Monday May 02, 2022 @04:06AM (#31232492)
An abstraction doesn't care what you call it, or how many times it gets used. It still needs to be carefully designed, tested and documented, and this almost never happens in industry.
Re:90% of software engineering done today is integrating poo... by scarface74 on Monday May 02, 2022 @04:43AM (#31232671)
It’s not about the person being a “genius”. A popular framework has been well tested, written by a group of people, it’s well documented, a community has grown up around it, their are books, training videos, etc.

Would you write your own operating system or programming language because it might be better suited to solve your particular use case or use a general purpose language?

Re:90% of software engineering done today is integrating poo... by codedokode on Sunday May 01, 2022 @05:39PM (#31228942)
> What they call "building your own framework" is simply what I think of as programming.

If you want an analogy, this is like a builder claiming that he is going to make all bricks and nails himself. You don't usually write your own standard library, why would you write your own framework?

Re:90% of software engineering done today is integrating poo... by jacoblambda on Sunday May 01, 2022 @09:49PM (#31230571)
I think there's a very prevalent and very real difference between "building your own framework" and "building your own bricks and nails". Programming isn't exactly equivalent to a construction worker. Rather your team are the construction worker, the structural engineer, and the architect all at once.

The framework isn't bricks and nails. It's a prefab house plan. You follow the instructions and you get a house out on the other end. If you need to go outside what the prefab covers, you have to fight the framework because now you are drawing over top of an already printed out structural plan to try and do something different.

The equivalent of bricks and nails in SWE is using libraries. Use a library to do a thing. You still need to design the program (drawing the floor plan), formalize how the parts interact (drawing the structural plans), and actually put the pieces together (building the actual house) but you don't need to worry about the small details like how to perform X algorithm (make the bricks), write a messaging standard (make the nails), or handle the intricacies of concurrency, distributed data structures, or drawing to a user interface (making the concrete and mortar). Your libraries do that for you. All you need to do as a developer is focus on writing neat functional kernels that do "the hard stuff", wrapping all your "hard stuff" and libraries together in some OO class to implement a certain functionality, and then stringing the bits together with some imperative glue to tell all the pieces to work together. Past that is orchestration & administration and that's Ops' responsibility.

Unless all you need is cookie cutter, don't use a cookie cutter. Fighting the cookie cutter will be far harder than using the tools for the job(cleanly separated, well documented, and interoperable libraries) to solve specific problems.

Re:90% of software engineering done today is integrating poo... by jseban on Sunday May 01, 2022 @05:47PM (#31229015)
Except it's not like that, software is not standardised, it's custom made.

And software engineers already have their toolset. The real analogy would be telling all the builders that they now have to use those shitty multi tools that are 10 screwdrivers and a hammer all in one.

Re:90% of software engineering done today is integrating poo... by cornel_io on Sunday May 01, 2022 @07:35PM (#31229768)
For 90% of SWEs (and closer to 99% of anyone doing front-end web stuff) it really isn't that custom. You're not solving problems that are difficult except those which your team creates for themselves by making bad choices as they service the fairly routine and unexciting feature requests that come in from product. And that's not to say that is a bad thing, all teams make bad choices and have to improve them over time, even when they are using highly opinionated frameworks. It's an unavoidable part of software development, even incredible teams and devs need to refactor.

The point of using frameworks is that you can be sure that many of the bad choices the people who wrote it made early on have by now been tidied up. You don't have to worry that Dougie the intern's custom HTTP router is actually all sorts of ballsed when you go to set up your first DELETE endpoint, because Dougie didn't get to touch anything that fundamental to the stack.

I do get off the boat when it comes to leftpad and stuff like that, don't ever pull external dependencies for trivial things. But an ORM or a UI framework? Those problems have been solved hundreds of times, absolutely no need for anyone to solve them again unless you're that good that thousands will move to using your solution instead of the existing ones.

Re:90% of software engineering done today is integrating poo... by delusional on Sunday May 01, 2022 @06:21PM (#31229295)
The analogy is now officially making the argument less clear
Re:90% of software engineering done today is integrating poo... by jprd on Sunday May 01, 2022 @07:15PM (#31229671)
you are limiting yourself to typing out code, rather than what is amazing about a human brain, the ability to see coherence in random shit and improve it.

If you feel your job is to find neat ways of writing Java or C# or wtfever, you are limiting yourself. You should be looking to offload any repetitive/tedious task to automation, and from there figuring out how to leverage ML to make it efficient.

The "work" you speak of is going to be obsoleted in the next decade, if it isn't cutting edge CS theory it should be done by the machine.

Re:90% of software engineering done today is integrating poo... by xmprt on Sunday May 01, 2022 @07:07PM (#31229617)
The house building analogy is pretty good and I think that frameworks are pretty close to how house building works right now. Pre-fab is like using cookie cutter components and throwing them together into a website using something like Wordpress or Squarespace. On the other hand, frameworks are like using common tools, foundations, scaffolding, and (literally) frameworks to build a custom architectured house.

Of course, building your own home is possible but that could be a shack made up of sticks and mud or a stack of bricks and mortar with no base/foundation which can fall apart at any moment.

Re:90% of software engineering done today is integrating poo... by jseban on Monday May 02, 2022 @03:01AM (#31232146)
> On the other hand, frameworks are like using common tools, foundations, scaffolding, and (literally) frameworks to build a custom architectured house.

This is exactly the problem, you are trying to use a standardised blurprint, to build a custom architectured house. Where you should probably make a choice here, either go standard or custom.

> Of course, building your own home is possible but that could be a shack made up of sticks and mud or a stack of bricks and mortar with no base/foundation which can fall apart at any moment.

Why would a highly skilled builder build a shack of sticks and mud, or a house without foundation? Why do we assume that every software developer is an incompetent clown?

Re:90% of software engineering done today is integrating poo... by rightbyte on Monday May 02, 2022 @02:26AM (#31231992)
I agree with your point but the analogy fails in that prefab house elements does not add complexity in the way software frameworks do which is the main problem in my opinion.
Re:90% of software engineering done today is integrating poo... by arinlen on Sunday May 01, 2022 @05:14PM (#31228727)
> To say that programmers shouldn't write pure code without an existing framework (...)

That's not what's been argued.

The overall thesis is that developers end up using higher-level abstractions, and between wasting time writing and debugging your custom high-level abstractions and simply adopting a feature-complete, stable, and standard high-level abstractions, you'd have a hard time trying to justify wasting time rolling your own when others already did all that work.

Re:90% of software engineering done today is integrating poo... by TuringTest on Sunday May 01, 2022 @05:28PM (#31228853)
> between wasting time writing and debugging your custom high-level abstractions and simply adopting a feature-complete, stable, and standard high-level abstractions, you'd have a hard time trying to justify wasting time rolling your own when others already did all that work.

That's only true when all the abstractions you need have already been implemented by others. Most of the time though, in addition to off-the-shelf abstractions, you need to build new abstractions which are specific to the business problem at hand; and shoehorning those abstractions on top of an existing framework which was not created with them in mind may be more work and may provide a less robust, way more complex solution.

Re:90% of software engineering done today is integrating poo... by arinlen on Sunday May 01, 2022 @07:35PM (#31229766)
> That's only true when all the abstractions you need have already been implemented by others.

Not really. More often than not, any framework already ships with far more features than the ones you'll be using, with the added benefit of already being production-ready and extensively tested not only by the maintainers but also by everyone else already using it.

When you roll your own... Well, good luck.

> Most of the time though, in addition to off-the-shelf abstractions, you need to build new abstractions which are specific to the business problem at hand (...)

You're confusing implementing higher-level abstractions which allow the low-level details to be ignored with actually implementing your own business logic.

Re:90% of software engineering done today is integrating poo... by ratww on Sunday May 01, 2022 @10:23PM (#31230771)
> You're confusing implementing higher-level abstractions which allow the low-level details to be ignored with actually implementing your own business logic.

The grandparent definitely isn't, and that's a bit of an uncharitable interpretation. I'm sure there must be a tiny minority of developers out there that doesn't ever have to write higher-level abstractions, but in the real world, writing both "business logic" and higher-level abstractions is the norm for most jobs. Only toy projects and the most menial development jobs escape that.

Even frontend, which someone erroneously claimed above that is "99% isn't custom" really is. The two major libraries, React and Vue, and the rising one, Svelte, really aren't frameworks at all, and require in practice not only a lot of custom stuff but also higher-level abstractions. Again, the exception is toy projects and menial dev jobs.

Re:90% of software engineering done today is integrating poo... by ryanbrunner on Sunday May 01, 2022 @08:05PM (#31229955)
Frameworks can be limiting, but I've never seen a framework that doesn't allow you to implement business logic on top of it. At the end of the day frameworks execute code that you write, and you can break out of the concepts your frameworks introduce and do whatever you want.

Just because 10% of your codebase is uniquely unsuitable to the 'standard' introduced by the framework doesn't mean that you can't use it for the remaining 90%. And even for that 10%, it's probably not so alien that some of the functionality provided by the framework is still relevant.

Re:90% of software engineering done today is integrating poo... by woojoo666 on Sunday May 01, 2022 @06:46PM (#31229474)
It's really just a cost-benefit analysis of whether it's worth it to build your own solution or build on top of somebody else's. I think a few years of experience gives everybody an idea of the general tradeoffs of each approach, some people will just tend to lean one way while others lean the other way
Re:90% of software engineering done today is integrating poo... by jjnoakes on Sunday May 01, 2022 @04:33PM (#31228399)
Not op but I have to disagree with this sweeping assessment. I think there is room for both approaches.

I for one believe that the best solutions I've produced over the years were things that side-stepped the popular or established frameworks and were more customized and focused solutions. They gave the business an undeniable edge over the cookie cutter competition, and by being well versed in the full stack, my team was able to implement new features at a fraction of the cost.

Anyone who knows the underlying technology can pick up our work in not much more time than learning any off-the-shelf framework simply because our solution has fewer moving parts and the relationships between the business logic and the bedrock are direct and intuitive.

Re:90% of software engineering done today is integrating poo... by twblalock on Sunday May 01, 2022 @04:39PM (#31228451)
> I for one believe that the best solutions I've produced over the years were things that side-stepped the popular or established frameworks and were more customized and focused solutions. They gave the business an undeniable edge over the cookie cutter competition, and by being well versed in the full stack, my team was able to implement new features at a fraction of the cost.

Yes but that's different from being a cowboy coder or a cynic who rejects the concept of frameworks in the first place. You built a new framework customized to your business needs. To do that, you needed to understand the context of the business and your tech stack, understand why existing frameworks didn't fit, and build a new one that works well. It's a good example of not being a cog, which is what I was encouraging in my comment.

Re:90% of software engineering done today is integrating poo... by jjnoakes on Sunday May 01, 2022 @04:51PM (#31228558)
That's just it though - I wouldn't call anything we've built a "framework" at all. All of the projects were much simpler at their core than most frameworks I've ever dealt with.

Of course, "framework" might have different definitions for different people. To me, by definition, a framework tries to be more generic than a custom solution, has more features that appeal to more than one use-case, and is designed to be flexible and fit multiple projects.

The solutions I've had major success with were none of those things because the benefits we got (deeper knowledge of our stack, faster iterations, and features no one else could touch) way outweighed any perceived benefits of using something mostly off-the-shelf.

Re:90% of software engineering done today is integrating poo... by onion2k on Sunday May 01, 2022 @04:53PM (#31228570)
I for one believe that the best solutions I've produced over the years were things that side-stepped the popular or established frameworks and were more customized and focused solutions.

No one can judge their own code. We all think we've written great stuff that other people hate working with. Even your team can be bad at judging it, because they can reach out to you if they get stuck. Those are awful ways to judge how good code is.

In my experience the best measure of good, robust, well-written code is the opinion of the team maintaining it a year after you've left. If those people are singing it's praises and happily working on it rather than complaining about tech debt and saying they want to do a rebuild, then you can say you did a good job.

Re:90% of software engineering done today is integrating poo... by breakfastduck on Sunday May 01, 2022 @06:26PM (#31229334)
You're confusing a developing thinking their code is well written with a tech team evaluating the value, reliablity and flexibility of a system.

The 'common framework' approach works great if you've solving a common problem. That's why we use libraries for certain modules or functions of a system. When your business is, even just operationally, different in some way, bespoke is often the best way. Make it good and it doesn't matter a sniff if it's an established public framework or not.

Re:90% of software engineering done today is integrating poo... by woojoo666 on Sunday May 01, 2022 @06:57PM (#31229554)
> When your business is, even just operationally, different in some way, bespoke is often the best way. Make it good and it doesn't matter a sniff if it's an established public framework or not.

There was a post recently on hackernews talking about how startups have an "innovation limit". That is, if you try to innovate too much, your scope grows beyond your reach. I think the idea applies here as well. Building everything yourself takes a lot of time. If you can position yourself to leverage the advancements of others, you can move much faster.

Re:90% of software engineering done today is integrating poo... by breakfastduck on Friday May 06, 2022 @06:07PM (#31290065)
Absolutely. I am a big force in my place of 'just buy' when others are all 'build everything in house'. If there's no genuine advantage of having something custom then don't do custom, buy something that works.
Re:90% of software engineering done today is integrating poo... by chii on Sunday May 01, 2022 @08:28PM (#31230107)
> When your business is, even just operationally, different in some way, bespoke is often the best way.

most business think themselves different, esp. in their IT infrastructure. It's closer to hubris imho.

If you have an internal/back office app, it doesn't require a custom UI framework to be created.

The only place where a custom framework should be created is if the domain of the software is custom.

Re:90% of software engineering done today is integrating poo... by breakfastduck on Friday May 06, 2022 @06:08PM (#31290071)
I'm not talking about back office admin systems. I'm talking about genuine business operations systems. And YES, most are more different than they appear on face value.
Re:90% of software engineering done today is integrating poo... by jjnoakes on Sunday May 01, 2022 @05:10PM (#31228698)
I'm not judging my own code. I'm basing my statements off of the results-oriented perspective of the businesses I've helped. And based on their positions in the market, both at the time my team implemented the projects I'm referring to, as well as long after most of us have moved on and the projects are in maintenance mode or retired, I would objectively say we were highly successful.
Re:90% of software engineering done today is integrating poo... by chii on Sunday May 01, 2022 @08:24PM (#31230083)
> I'm basing my statements off of the results-oriented perspective of the businesses

there's different criteria for judging. Business criteria and business success is one (good) criteria, but there's also the criteria of good craftsmanship (which may contribute to business success indirectly by making future maintenance easier). This criteria is hard for a non-technical business stakeholder to judge, but easy for the maintainers.

Re:90% of software engineering done today is integrating poo... by breakfastduck on Sunday May 01, 2022 @06:28PM (#31229349)
People often seem to overlook how different businesses operating in the same space can be purely because of a particular specialization or culture.

Custom is best sometimes. And that's ok. A well thought though and implemented 'bespoke' framework (literally just a system) has no value based disadvantage over a public, well known, framework / approach.

Re:90% of software engineering done today is integrating poo... by jseban on Sunday May 01, 2022 @04:59PM (#31228617)
That's some seriously self deprecating attitude, that can never be a healthy working environment.
Re:90% of software engineering done today is integrating poo... by scarface74 on Sunday May 01, 2022 @11:59PM (#31231309)
They gave the business an edge until someone else had to use your framework instead of a popular well documented one
Re:90% of software engineering done today is integrating poo... by com2kid on Sunday May 01, 2022 @07:28PM (#31229730)
> If everyone is writing "raw" JS/HTML/SQL/Java/whatever, they are actually building their own individual, unstandardized frameworks.

It depends.

If you have a nail, and you are using a jackhammer of a framework to pound it in, every developer that comes after you has to learn how to use that jackhammer unless they have previous experience with it. And honestly, most complex frameworks have so many different potential usage patterns that future developers will still have a heck of a learning curve. (I've never seen two uses of redux that remotely resembled each other! After using redux for 3 years I can easily find redux code that I have literally next to no idea what it is doing!)

If you use a hammer, even if it is a bespoke hammer, future developers just have to learn how to pick up that hammer.

Obviously at some point it pays to switch to using an Industry Standard(tm) solution, but for many problems plain old JS or HTML may very well be appropriate.

For example, I was making ad campaign landing pages for my now defunct startup. To ensure speed I wanted them to all be static HTML. I could have used a static site generator of some sort, configured templates and all that jazz, or, instead, I could just write HTML + CSS for 3 landing pages. (Actually I only had to write the CSS once).

Now if I needed to programmatically generate dozens of landing pages, then sure, adopting some static site generating framework may have been worthwhile. But in my case it wasn't. Raw HTML was the correct solution.

Re:90% of software engineering done today is integrating poo... by explaingarlic on Sunday May 01, 2022 @08:56PM (#31230275)
> To ensure speed I wanted them to all be static HTML

Feels like people shoehorn Gatsby too much into those kinds of situations. Bless you for keeping the dream alive - every time I see well written and small HTML/CSS/JS code on a landing page I want to scream.

Despite knowing React and being familiar enough with Vue, Angular etc. I still get imposter syndrome when I see a site's markup and see weird artefacting that comes from some framework that I have never heard of.

Re:90% of software engineering done today is integrating poo... by chii on Sunday May 01, 2022 @08:19PM (#31230057)
aka, right tool for the job.

there's no mantra that should be followed without thought in software engineering. Frameworks helps in a lot of cases, and should be used - but this decision require someone with experience to make, and this experience has to have been hard earned from previous failures or projects.

Re:90% of software engineering done today is integrating poo... by emsy on Sunday May 01, 2022 @04:38PM (#31228445)
I don’t think you have a lot of experience with long software projects. The pros of frameworks are outweighed by their cons pretty quickly. This effect is accelerated by shorter support times and an ever growing number of frameworks.
Re:90% of software engineering done today is integrating poo... by tluyben2 on Sunday May 01, 2022 @05:01PM (#31228635)
Maybe depends what tech you work in? In the Java and .NET sphere things are pretty much stable over many years. We hardly had to do any work to to move our systems (quite large ones) across the same well supported frameworks to new versions the past decades and the fact everyone in these ecosystems know the popular frameworks well and the design patterns, it scales well to many and new people.
Re:90% of software engineering done today is integrating poo... by woojoo666 on Sunday May 01, 2022 @07:13PM (#31229659)
Do you have any examples of web apps or websites with millions of users, and don't use any frameworks? The only one I can think of is HackerNews, funny enough.
Re:90% of software engineering done today is integrating poo... by robocat on Sunday May 01, 2022 @08:58PM (#31230294)
The more users, the less likely you are to use an off-the-shelf framework.

Netflix: https://netflixtechblog.com/building-the-new-netflix-experie...

Facebook: https://blog.risingstack.com/the-history-of-react-js-on-a-ti...

Edit: find out what framework (although it didn’t work on some urls I tried): https://www.wappalyzer.com/

Re:90% of software engineering done today is integrating poo... by woojoo666 on Monday May 02, 2022 @12:58AM (#31231612)
I may be wrong since this article is from 2018 but it seems like Netfix uses React for everything but their homepage [1]. Facebook uses it's own framework since, well, that framework is React. But their framework isn't some special-purposes framework built for Facebook's purposes either, it's a general purpose framework, used by tons of companies including Netfix. So I don't think many web tech companies are going to find success building their own special-purposes front-end frameworks, like some earlier comments seem to suggest.

[1]: https://medium.com/dev-channel/a-netflix-web-performance-cas...

Re:90% of software engineering done today is integrating poo... by twblalock on Sunday May 01, 2022 @09:14PM (#31230390)
It's really more about the size of the company -- those companies have enough engineers to have large teams dedicated to their various frameworks and build systems.

Some of the popular open source frameworks are derivatives of what these companies had already developed internally for themselves, e.g. React.

Re:90% of software engineering done today is integrating poo... by atotic on Sunday May 01, 2022 @10:42PM (#31230881)
I think that the decision on whether to use a framework is very hard.

When using a framework, you get most of the benefits right away, and most of the costs happen much later, when abandoning the framework is costly.

Besides pure technical quality, you have to consider more murky issues: who wrote the framework? how long will they be around for? Does their problem match your problem? Will your interests remain aligned in the future? Is there a succession plan? Will new hires be familiar with it? What's the learning curve? Does it integrate with the other N tools you are using?

Ideally, the decision to use the framework or not should be made by someone who has used it before. This is often not the case.

My personal preference is to always use simplest tools that get the job done.

I wish that hiring technical writers to write docs was more common. Most of the new libraries I have to use have documentation that is so poor, I have to use stack overflow + write test cases.

Currently, I am in the middle of taking over a go code hairball from someone who left, and who loved external dependencies. Out of 31 direct dependencies, 11 are not at release 1.0 yet. Many have poor documentation. I believe that when I am done with it, our code will have fewer dependencies, and be half the size.

Re:90% of software engineering done today is integrating poo... by belter on Sunday May 01, 2022 @06:44PM (#31229454)
And how to avoid ending up with a:

"General-Purpose Tool-Building Factory Factory Factory"?

"Why I Hate Frameworks": https://www.gwern.net/docs/cs/2005-09-30-smith-whyihateframe...

Re:90% of software engineering done today is integrating poo... by hkt on Sunday May 01, 2022 @10:56PM (#31230966)
I agree with most of this, but

> it raises the barrier enormously for onboarding new people.

is.. a little ironic. I've never met any of the gazillion frameworks out there that have made it easier to get people up to speed, despite promises to that effect.

Re:90% of software engineering done today is integrating poo... by marcosdumay on Sunday May 01, 2022 @05:11PM (#31228704)
> Why are frameworks popular?

Because they make it very quick to get a 70% working system that you can sell to people (internally too) before the people with the capacity to get a 100% working system gets their first version.

Re:90% of software engineering done today is integrating poo... by jseban on Sunday May 01, 2022 @05:51PM (#31229052)
In other words: they make sense for making prototypes.
Re:90% of software engineering done today is integrating poo... by marcosdumay on Sunday May 01, 2022 @07:18PM (#31229689)
And then your prototype gets into production, and you can never rewrite it.

So, no, they do not make sense for making prototypes. They do make work when you want a 70% solved problem and won't care about never reaching 100%. On the other cases, you still need to use them, because if somebody gets those 70% first, you will have problems, but they make no sense at all.

Re:90% of software engineering done today is integrating poo... by commandlinefan on Sunday May 01, 2022 @06:26PM (#31229330)
> Your job is to produce software that meets the requirements of the business

In “raw" html/js/sql/Java.

Re:90% of software engineering done today is integrating poo... by thewarrior on Sunday May 01, 2022 @06:37PM (#31229411)
Honest question - how does one provide value in this reality. It’s something I’m trying to understand
Re:90% of software engineering done today is integrating poo... by closeparen on Sunday May 01, 2022 @07:39PM (#31229797)
The business itself is like a computer process. There are flows of information and resources. There is state. There are subroutines. There are bottlenecks and bugs and wasted efforts and errors that may or may not be getting detected or mitigated. There are various intents that customers and stakeholders might have that are unreasonably difficult to fulfill under the current layout of things.

You add value when you optimize, debug, and refactor the business operation. Increasingly in old-economy companies, but especially in Silicon Valley companies, the business operation is largely defined in code. So this is something software engineers can do, through well-chosen code changes.

Outside of startups, engineers rarely do this alone. There are executives, business analysts, product managers, data scientists, etc. with very similar tasking. But you want to get into a position where these people see you as a full intellectual partner, not as an implementation resource to type in their already-baked ideas.

Re:90% of software engineering done today is integrating poo... by john567 on Sunday May 01, 2022 @06:48PM (#31229492)
Start simple. Educate co-workers on why a specific approach is good. Build culture. Slowly but surely you should all be working towards the same goal. It's a slow process but with many moving parts. Take on a single piece at a time. That's the only thing that works.
Re:90% of software engineering done today is integrating poo... by jseban on Monday May 02, 2022 @06:14AM (#31233225)
This is the worst type of working environment, when everyone on the team is trying to "educate" and evangelise and "build culture" which is nothing but sucking up to the manager, instead of trying to be realistic about solving issues and delivering value.
Re:90% of software engineering done today is integrating poo... by woojoo666 on Sunday May 01, 2022 @06:41PM (#31229431)
At least if I'm understanding your question properly, frameworks only provide the frame, you have to fill in the rest
Re:90% of software engineering done today is integrating poo... by x-shadowban on Sunday May 01, 2022 @05:39PM (#31228946)
His argument was more that that there are hose-operating-tooling (and tooling for that tooling) that many fire departments are using but if you want to adjust the nozzle aperture well that's not implemented yet and you need the schematics
Re:90% of software engineering done today is integrating poo... by KronisLV on Monday May 02, 2022 @06:05AM (#31233161)
> Why are frameworks popular? Because they provide a standardized way for multiple engineers, and multiple engineering teams, to collaborate effectively on the same product -- and they make it easy to hire people who already know the frameworks.

Hmm, i'd say that there are frameworks that actually make things easier and better, and some that are much like the incomprehensible Rube Goldberg machines that the previous poster complained about.

For an example of this, you needn't look any further than the Spring framework in Java, perhaps the ultimate example of enterprise bloat of poorly understandable (unless you spend all your time digging into the internals) and overly abstracted non-solutions for problems, and that's even before you pull in 50-100 dependencies for making your dated monolith do whatever the business wants.

There is an absurd amount of XML configuration needed, except that sometimes you need to mess around with annotations in your source code as well, except for those cases when instead you'll want to just overwrite some class with your custom logic inside of the methods, which will be initialized by some Eldritch abomination of class loading and reflection, or maybe you'll need to change a bunch of properties in a config file, with all of this leading to long and arduous error messages that will make you waste hours digging through Stack Overflow.

I was in charge of migrating an older Spring app to Spring Boot, which attempts to alleviate some of these issues (and there was also the fact that the particular Spring version was EOL at that point) and after wasting more time than i'd like to admit of an error after an error after an error, it was decided to just update Spring itself as far as possible and let it chug along in a barely alive state.

The framework wasn't a way of managing risks or "getting things done", it ended up being a risk in of itself and was a massive pain once the system needed to be supported, maintained and also have new functionality developed for 5-10 years or so. That's not to say that there aren't better frameworks out there, but there definitely are some that will be more trouble than they're worth, unless you want to have a person or two full-time just to wrangle them in order and continuously maintain and update them, which for many of the smaller orgs out there is unacceptable.

> If everyone is writing "raw" JS/HTML/SQL/Java/whatever, they are actually building their own individual, unstandardized frameworks.

I've also seem bespoke frameworks be used and those were generally worse - while there was the occasional good idea in them and they could be decent to work with in a limited set of circumstances, getting help when something goes wrong with them was impossible and you were stuck reading the source and mucking about in it. Why is that bad? Because with the larger and more popular frameworks out there you can instead look up solutions for problems or integrations that someone else has written.

I'll admit that pulling in dependencies carries certain risks in of itself, but you'll very quickly realize how nice it is to let someone else step on rakes before and learn from their problems and mistakes, instead of attempt to translate code comments from Lithuanian to your own language when prod is running into issues, because the original devs are long gone and there is no documentation, nor examples of how to use anything in place.

Thus, it is better to use frameworks that have tens of thousands of collective man hours put into them, or even more, as long as they don't suck.

So, in the end, it's probably better to use frameworks that keep you closer to the code that is actually running, like Spring Boot (where at least parts of the config can be done in plain Java), or even look at ones like .NET (the newer ones are a bit like Spring Boot), rather than DSL hell.

You can put a breakpoint in your Java code and see why something isn't initializing properly. You cannot put a breakpoint into your .properties, .xml or .yaml file (or even feasibly find where to put into the over-abstracted configuration read mechanism, or find how it connects to the bit that is actually initializing your data).

Re:90% of software engineering done today is integrating poo... by explaingarlic on Sunday May 01, 2022 @08:42PM (#31230186)
> Why are frameworks popular? Because...

That's an extremely open question, and I wouldn't agree that frameworks, in any way, "provide a way for people to collaborate" any more than a whip does. They seem to me to limit the ability to write the code you want for no value other than providing confirmation bias.

The idea that the same thing being outputted on the screen will have two implementations by two uncommunicative engineers that vary in such a way that they become impractical, impossible or even at all harder to debug, is simply a myth. I highlighted the word "engineer" because that's the key point - if you are hired to solve a problem, you are probably going to solve it the easiest and most convenient way. You are trusted to write code, not use an API. I find it hard to buy the idea that 20 year old aspx code is any easier to debug than pure JavaScript written around that time.

As far as why frameworks have become the norm, I would personally put it down to, in no particular order, the following ideas:

- Some are genuinely useful - functionality is limited in the parent environment's API and must be implemented in some way. This is rare, in my (mild) experience.

- The company had learned the lesson that contractors (especially ones that win the bidding wars) write horrific and unmanageable code. Therefore, it decided that a cost-free way to alleviate this issue is to force all engineers, permanent or on-contract, to use a specific framework.

- The above point spread between companies as people (directors of engineering) shifted around, word spread that someone was able to make significant cost savings etc.

- They are in place to allow one to follow idioms better. I recently interviewed for a company that followed, quite closely, the clean architecture book by Martin Fowler, with their own internal framework. They had a good plan in mind - they wanted components to be interchangeable, usually at compile time, and needed to ensure that they followed procedure in order to write code that was manageable at scale in order to achieve this. They made their own framework and have used it for 10+ years. This proper, elegant use of a framework is very rare.

I do not mean to say that frameworks are useless - however, JQuery has always been absolutely worthless to me in my personal endeavours - which often included quite bespoke DOM manipulations - the exact place that JQuery is meant to shine. To me, it is a great example of something that was phased in as a Band-Aid solution to people writing terrible code as they had no ownership of the product.

I will admit that I use little helpers, such as

  function $(usuallyASwearWord){
      // Yes I really use element by id for this when writing my own fun code. Not query selector. 
      return document.getElementById(usuallyASwearWord);
  }

and I wouldn't be using these if JQuery never exploded in popularity - but it's just a skeuomorph. A cute little oddity that has some minor, pointless, boring history/flavour behind it. I don't think that JQuery has provided the world with any significant net effort savings, and that it is far from the only framework that will have this legacy.