r/javascript • • Sep 25 '21

AskJS [AskJS] Can we make good project wihout Framwork?

I wonder if we can do that because I always see JavaScript as Cutting-edge release always learning framwork etc...

I would love see your only JavaScript project in GitHub !

0 Upvotes

11 comments sorted by

22

u/shuckster Sep 25 '21

Questions like this make me wonder about the word "framework".

A framework is one or more related programming-patterns encapsulated, wrapped in an API informed by the experience and opinion of the author(s).

Even when you don't use someone else's framework, when writing "vanilla" you still tend to build helpers as you go, which might turn into patterns, which might turn into a structure that helps you organise your project, at which point you've developed your own framework.

And this is a very nice thing to do for personal development, and it's helpful for realising the value of existing frameworks that solve edge-cases you didn't think of.

Or you might just be onto the next big thing! :)

2

u/TW_MamoBatte Sep 25 '21

Woah I never thought about this thanks for cleaning my mind !

I will get started for that soo I'm more happy than before thanks you 💓

6

u/rangeDSP Sep 25 '21

The question is, how do you deal with:

  • page navigation

  • consistent ui state updating

  • security (oauth etc)

  • accessibility

  • localization

  • mobile / responsive views

  • telemetry tracking / exception logging

  • unit testing

It can absolutely be done with no framework, but you'll have to write almost all of the above to be considered a good application these days. So now your month long project just got turned into a year long project trying to solve problems that thousands of people already solved for you

1

u/TW_MamoBatte Sep 25 '21

Hm yeah I understand the point there...

3

u/[deleted] Sep 25 '21

Unless you're burning your own silicon (actually even then), you're always using some kind of framework. It's just the one that ships with the browser.

Anyhoo, someone just recently posted about this: https://www.reddit.com/r/javascript/comments/ptzl8y/i_built_a_crud_recipe_app_without_using_a/

1

u/TW_MamoBatte Sep 25 '21

Thanks you I will read it 😊 Have a great day/night

1

u/LoopVariant Sep 25 '21

Yes, but you have to do a whole lot of things that are often offered out of the box in some frameworks. But I admit that it bugs me when newer programmers refuse to work with legacy code written in straight language. There are people I have dealt with who refuse to work on raw PHP. It is either Laravel, Cake, Symfony etc or nothing…

1

u/TW_MamoBatte Sep 25 '21

Laravel 8.0 is now compatible with PHP 8.xx So we should be fine about that

But you got a good point ☝️

1

u/boringuser1 Sep 26 '21
  1. You don't need a heavy all in one framework like Laravel.

  2. A REST API is trivial to write and does not require a framework.

  3. DOM manipulation is fucked/broken and if you don't use a frontend framework you are a crazy person.

1

u/_default_username Sep 30 '21

Yeah, vscode is built without a framework.

0

u/mardiros Sep 26 '21

Small project can be good projects that does not require a framework.

A good framework differ from a bad framework when things have to scale.