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
-
karelian3686yReact + Redux + Flow (or whatever, just gimme types), because the ELM/Redux pattern is 30yrs-old proven tech: https://goodreads.com/book/show/...
-
@C0D4 I use jquery often since i can spend my time better than learning front end JavaScript since I'm not a frontender at all haha
-
C0D4669026y@linuxxx i use it too, it gets the job done, plus with front ends not being changed too often why fix what ain’t broke?
I tried migrating to angular but ended up giving up. Was more of a pain in the ass then it was worth. -
rant1ng44626yIm vue laravel
@PrivateGER Vue feels so much like laravel I wonder if it's Taylor's alter ego.
Maybe he's Batman. -
I had one week of research Vue vs Angular vs React. Vue won 4us with no dilemma. It's the best framework in 2018.
-
@linuxxx
Checkout stimulusjs It's made by Basecamp
Instead of recreating the app on the front end like you do when using angular react Vue.
It just adds a async layer
Instead of sending json you'll send, rendered HTML with data.
Only difference instead of through the backend controller to page pipeline you'll send it through a stimulus controller.
https://stimulusjs.org/handbook/... -
@bittersweet I disagree. Refreshing the page always and "jumping" around reloading is not user friendly. SPA's are elegant solution to a common problem. Also, if done right are snappy as hell. We rolled out two single page application and honestly I wouldn't come back to building multi page. It's just uncompearable.
-
@DanijelH
If done right, sure. I'm not convinced Angular, React or Vue are necessary.
So far, I've seen very few SPAs done right, they're just shipping megabytes of js to the frontend, make the website unstable with cryptic errors, and a pain to use on many devices.
I feel like we need a bit of a counter movement, stripping websites of all unnecessary crap.
Plus, if you think about what a user truly NEEDS on a specific page, you can design minimalist views which are incredibly cheap to refresh. -
@bittersweet Well it shouldn't be like that. Vue with it's core libraries is around 30kb when built for production. I don't see it as a "heavy" dependency considering jquery is about the same. Maybe you're just moving in the wrong circles :)
-
xecute3776yReactJs with Redux/Flux if app is data intensive. Reasons - Native JS, integration with other nice libs, intuitive architecture.
-
@DanijelH
Vue is the least offensive, and react has gotten a bit better.
But 90% of frontend devs don't have any love for the craft of optimization, they just throw in library after library on top of the framework. Of course, this was also true for Jquery.
I'm not proposing to lead all frontend devs to the guillotine.
I'm just proposing that some awareness of the old "less is more" rule is necessary, that a minimalist website which loads within 100ms is more likely to satisfy end users than one which loads sticky menus with animated sparkling glitter fountains of cum.
https://brutalist-web.design/
https://pxlnv.com/blog/... -
@bittersweet Of course, I agree, any good dev will test it's site load time and framerate. I get what you're saying but you can do a shitty website even the "old" way. It's up to a developer :) I built my personal website with Vue. It's pretty fast even on mobile.
Try navigating.
https://danijelh.github.io -
@DanijelH I hope you are aware of the fact that the default "cursive" fallback font on windows for Architect's Daughter is Comic Sans? π
Other than that, it's a very nice SPA portfolio.
But I still don't see why you would need it to be a single page app, the total textual content of all pages added together is much smaller than the JS libraries which must be downloaded on the first request. Granted, in your case it happens pretty much instantly regardless of whether it would be SPA or classical HTML.
Apart from dynamic loading, the other use case of JS is animating.
The menu at the top of your website is nicely animated and very usable, but personally I do have a problem with such UI elements. They tell a user "take a second to learn how to use my website" instead of "this is the information you need". -
@DanijelH
I know it comes down to personal taste, but I much prefer websites to be documents instead of applications. If they must be applications... they should be binaries written in a systems programming language instead of javascript running in a browser.
Probably a lot of people disagree with this stance, but for me, the web is informational. Using it as a platform for applications always ends up feeling hacky, forced and unstable. -
@bittersweet I know, I usually use only international characters but had to show someone the site in my country so changed it, gotta change it back :D
I see, well my recent projects were very feature rich and heavy on data processing with real-time. Without JS framework it would be a million times harder to make it work. I know because I haven't used it before.
You should look into blazor, I think it will be interesting for you.
To sum up, let's just agree that it depends on the project and selecting the right tools for the right job π -
mishaor17696yReact - it's fancy and eventful JavaScript UI library with rich set of plugins and components to use.
-
@mishaor React is fancy? ..React is a baby who you need to nourish for everything and who with other libraries that are btw. not developed by Facebook but by some other people turns into frankeinsteins monster.
-
mishaor17696y@DanijelH I'm not spending my time on adding events handlers for elements and then wonder why the fuck something in another part of JS is broken
-
@mishaor You mean you manually write onchange events on a form of 30 elements and you and your team have to maintain 30 methods and you think that is a good idea? We developers make mistakes, framework won't make a mistake, it's covered in tests. I take the framework any time over manual change handling, especially when different inputs or dropdown need to cooperate, or something. I am not even gonna talk about React and rerendering of every subcomponent on every state change π ..good luck with shouldComponent update on complex pages. All of this is automatically solved in Vue.
Related Rants
Pick your poison β and tell why in one sentence.
π
Vue.js
Angular 6
ReactJs(TypeScript or Js version)
question
pick
choices
reactjs
vue.js
angular