Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@asgs you could type everything in one Line in the command line and pipe it into the compiler
-
Because the average react/php/aspnet/servlet programmer can't cognate indirection
-
I've been trying to get my lead to understand that recently. He wants to cram everything into one file for all his projects. I just refactored a 3000 line shit show of a project for him because he asked me to do some maintenance on it and I couldn't look at the project without internally bleeding. It's just us two at the company now, I've been slowly introducing him to more oop practices, I hope he eventually gets what I'm putting down, he's in the end not a bad guy, just doesn't understand how not to build everything in one file.
-
rjedlin4515yI'll be honest, I think you *should* have one file for a component. Spreading it across multiple files doesn't really improve readability imo.
-
@rjedlin I think there's a time and place for both approaches of designing the applications, splitting up into tiny components and retaining the larger components.
Like if I'm working on a piece of code where it requires me to json an object and then place it in a file, and the file management side had some complexities that dealt more with file stuff, like maybe I had to flush buffers after a write and had to manage streams and what not.
It would be helpful to separate out the file management into its own file/class so that the overall functionality just basically says "json the object, then append that json string onto the file".
At least this is how I try to split up some of my work and programs when I'm working on them.
why does everyone always give me backtalk when i want to make my files smaller and more readable
"no you should put your scripts, style and template all in one file, theres no need to put it separate"
alright while we are at it, lets just write the entire project in 1 single file
rant