News for hackers. Stuff that matters.
Re:The boring technology behind a one-person Internet compan... by em-bee on Tuesday September 17, 2019 @09:52AM (#20995042)
how is that any different from a custom rails server with dozens of gems that need to be upgraded. how do you build a site without any of these risks and make it last for a decade or more?
Re:The boring technology behind a one-person Internet compan... by motogpjimbo on Tuesday September 17, 2019 @10:40AM (#20995656)
By choosing a language with a large standard library and then relying on that library rather than on frameworks of the day as much as possible.

For example, many vanilla PHP applications written 10 years ago will still run just fine today, whereas upgrading from one version of Laravel to the next version can be a major trauma.

Re:The boring technology behind a one-person Internet compan... by strken on Tuesday September 17, 2019 @11:10AM (#20996064)
From what I remember of php applications written around 2009, a lot of them had SQL injection and bizarre roll-your-own-security vulnerabilities. There were some pretty appalling things like the same (wrong) CSRF token validation code being copy-pasted into fifty different files, or passwords saved in plaintext, or customer credit card info sent over email, or every single site being mashed into joomla and drupal no matter whether it actually fit and then never updated.
Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @01:04PM (#20997477)
There are a large number of non-professionals and beginners coding in PHP, they start from say an existing WP plugin ,open it in notepad and start editing until it works,

it happens in JS land too, find some js package made by a newb and run a linter on it, I see issues on code that is written by coders with a few years of experience where they do not use properly the array functions, do not use correctly the lamda, they copy paste same code in 3 or more places.

Do you think that all js,Ruby or Pthon dev would properly use SQL without an ORM? I dpn;t think so, I found recently bugs in a JS codebase where file upload would fail if the file had non US characters in it's name because some parameter was not url encoded, so all developers make mistakes and ORMs were not popular at that time to prevent this kind of mistakes for SQL.

Re:The boring technology behind a one-person Internet compan... by kingdomcome50 on Tuesday September 17, 2019 @12:04PM (#20996813)
These are all examples of pretty amateur mistakes. This reads more like an argument for keeping senior devs on the payroll than a warning about not using a framework.
Re:The boring technology behind a one-person Internet compan... by strken on Tuesday September 17, 2019 @12:09PM (#20996876)
It can be both. Senior devs and frameworks are two complimentary ways of managing chaos and organising your code.
Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @01:07PM (#20997498)
A framework will not prevent things to become a mess, in the angular project I inherited in most places the rootScope is injected everywhere, I do not blame the developers either, the angular architecture is not great and when you have a lopt of new tasks for you to implement you don't always have the time to reimplement things, but sometimes the correct solution is not used , though you may want to claim that your favorite framework makes it harder to do the wrong thing.
Re:The boring technology behind a one-person Internet compan... by ficklepickle on Tuesday September 17, 2019 @12:16PM (#20996954)
Yes. I'm working with garbage legacy drupal stuff right now. It is so bad. Makes me die a little every day.
Re:The boring technology behind a one-person Internet compan... by em-bee on Tuesday September 17, 2019 @11:32AM (#20996391)
and yet, a lot of vanilla PHP is a mess of code whereas when i had to work on a laravel application i found it a pleasure to work with (even without having any prior PHP experience)

pick your poison i guess.

Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @01:12PM (#20997560)
I agree with you, but what sucks is that instead of 1 or 2 frameworks that are stable you get a large number of them that get deprecated, I was brought to work into 2 PHP projects, one was using yii1 and the second Silex , both frameworks were deprecated and some of the dependencies are deprecated too. I did not worked on Laravel, I hope when I will it won't be again on an unsupported old version.

Also it sucks when you search for help and you need to double check if the solution is for yii1 not 2, or angular1 not the others etc.

Re:The boring technology behind a one-person Internet compan... by em-bee on Tuesday September 17, 2019 @01:20PM (#20997667)
that is very true. at least angular1 was stable for quite some time i'd say, it was quite usable until they started working on angular 2.

that means when selecting a framework, don't pick the newest, but look for something that promises stability, and then stick with it. i picked aurelia to once angular 1 was no longer usable. and although i mainly chose it for other reasons, it looks like it will be a stable choice.

Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @01:32PM (#20997839)
It could be a good stable framework, though can you put yourself in my place, say in 5 years you are called to work on your current project, some new small feature must be added or some bug needs to be fixed. So I will have to learn to work with yet another old framework that is no longer populkar and the developers that wrote the code moved to the next cool thing.

It is what it is, I will have to learn and maintain others code like I always done but it would be better if we had some stability as I mentioned, some standard web framework built in JS and browsers that most developers would use and the devs that want new and shiny could ignore that and use whatever.

Re:The boring technology behind a one-person Internet compan... by em-bee on Tuesday September 17, 2019 @07:57PM (#21001265)
well, one of the key things of aurelia is to use standards as much as possible. so as javascript evolves aurelia will pick up on these things and remove any homegrown things to use whatever javascript provides instead. so it is up to javascript to grow a decent standard library.
Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @11:00AM (#20995943)
As the other mentioned there are other devlopment stasks that are stable, to give more examples but not for Web, you can get ther code for an old .Net,Java,Qt application, download the SDK used for that version and just build it. There are not 100+ things you need, the SDK contains the compilers, a huge standard library other build tools. If the project had other dependencies those are some standalone .dll or .jar files that you place in the application folder.

For web when I inherit an older project I need to spend a lot of time in finding the correct version of things, like for an older react project it was using an official jsx transpiler but today that package is deprecated you can't just npm install it, so I would have been forced to upgrade the entire build system to use the new thing , but at that moment I had to fix a small thing so I found a hack for the issue and postpone the fixing of that issue.

What I think Web needs is some standard framework, or a framework core maybe jsx or other template thing but something standard to be used in mst projects and for side projects we can toy with the shiny new frameworks and languages.

Re:The boring technology behind a one-person Internet compan... by NohatCoder on Tuesday September 17, 2019 @11:45AM (#20996578)
Try Vanilla.js.
Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @01:19PM (#20997659)
It is missing a lot of stuff, like I want a modal popup, I need to search the web for a solution,

I want a DataGrid with sortable and re sizable columns, i need to search the web, find something that is compatible and also make sure the license is compatible

I want a basic Dropdown widget that can do basic things like ex have a flag+country name or have a list of fonts where each font is using it's family to be rendered. Also the scrollbars can't be themed for when elements overflow in all browsers so you are forced to find something that reimplements the scrollbars.

When I give example of Qt,Net or Java I include the full SDK , if you did not worked with this kind of SDKs maybe you worked with Android one, basically you have the language STL plus anything you need from file I/O, Networking, Widgets, to the serial ports,screen, and a lot of things, you don't have to package install a new thing for each feature.

Re:The boring technology behind a one-person Internet compan... by NohatCoder on Tuesday September 17, 2019 @03:26PM (#20999104)
Sure it is not perfect, but it is still a lot better than any framework as a long-term viable foundation.

All the stuff you mention can be solved with simple libraries, maybe you could push for a library that solves such problems to be widely adopted. But frameworks always bring a new set of problems of their own, which is why no one is ever going to agree on the subject of those.

Re:The boring technology behind a one-person Internet compan... by simion314 on Tuesday September 17, 2019 @04:15PM (#20999581)
There was a lot of JS the language progress but nothing that adds this kind of features. Browsers need to fix those bare bone widgets like the select, the scrollbar, add GridViews etc otherwise developers will use some random, low quality ones .

There is no need that browsers select things that are agreed but 100% of people, it needs to satisfy the needs of a large majority that need to create boring and stabe websited or applications.

Re:The boring technology behind a one-person Internet compan... by em-bee on Tuesday September 17, 2019 @11:36AM (#20996451)
ok, so essentially the problem is the fragmented development and feature libraries. that is a fair point. let's hope that some javascript frameworks develop into that direction.