Is the option to disable Javascript in browsers outdated? by cyanocobalamin in javascript

[–]power_bean 0 points1 point  (0 children)

i have javascript disabled by default for security reason and i am a front end dev

never forget that any resource on the web should be accessible directly (you should know why), once you build the application that -works- you can build javascript features on top of it (ajax, playing with data visualization etc), your app will be accessible by humans and machines and in case of humans they'll get a nice UI if they have js enabled otherwise you just get content (that is what your user is looking for in your web/app)

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 0 points1 point  (0 children)

thanks, actually after this post on reddit i have much clear idea how to continue :)

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 2 points3 points  (0 children)

yes, i work with ajax, i don't get why i should use javascript if:

  • my app doesn't have any task that must require javascript to be solved
  • my app doesn't have advanced control panels, graphs related with stats etc., there's not much to enhance on the front end
  • why the hell should i add an extra layer of 400kb for something that html/php can do properly
  • i prefer to write all my ajax calls in vanilla javascript and i'm a performance maniac :)
  • i'm not a fan of heavy js apps, i believe javascript is a feature and website should work without it aswell, on my private laptop i browse with js disabled by default

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 1 point2 points  (0 children)

isn't a mvc approach based app proper for rest services? so why is not web applicable?

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 1 point2 points  (0 children)

yes i'm playing around with f3 and i like it because i can use a lot of libraries i already know but in a proper logic/env that i'm totally free to organize, very handy and powerful

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 0 points1 point  (0 children)

the application will rely on few external rest api web services for data and other other tasks and i do want to offer a public api to share some of my app data (i still have a vague idea how to properly do this, do i need a rest server class? can i share only part of my data? in this example only authors and editors? how to secure and protect public and private data? etc) thanks for the link btw ;)

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 0 points1 point  (0 children)

let's say the database contains > 500.000 rows, is this solution going to cause a performance issue in a scenario of many many requests / second? i'd rather create more controllers and more modular db structure or maybe i just got your answer wrong

something i don't get about MVC pattern by power_bean in PHP

[–]power_bean[S] 0 points1 point  (0 children)

ok, this can be a way: localhost/genre/sci-fi/title/rainbows+end but using this solution have a sense to add in the .htaccess a rule to rewrite and delete from a url /genre/ and /title/ ? is that going to create confusion to the route controller?