>just use react, babel polyfill and webpack, bro
>write a tiny sample web app
>1.35 MB
Is this the future of web development, a page that does hardly anything that uses 1.35 MB of data?
>just use react, babel polyfill and webpack, bro
>write a tiny sample web app
>1.35 MB
Is this the future of web development, a page that does hardly anything that uses 1.35 MB of data?
Other urls found in this thread:
just write plain HTML and CSS like we have done since the 90s. if you need more than static content, use Perl, Python, or PHP. it's not like you have to use these retarded new fad technologies.
No, you're a scriptkiddy that uses meme frameworks and you don't know how to handle your dependencies
React alone is like 750 KB.
what is that cute font?
How much is a compiled hello world program in, say, C++? You said it yourself, you want a web _APP_, not a web page. If you want a static page, use html+css+serverside. If you want an application running on the browser, suck up the costs.
~60-70KB
You don't use react if you are not making an app, if you are making an app you rely on browser cache, so clients will load that 750kb hopefully once every few months. You use babel polyfill, webpack and similar meme technologies when you are js script kiddie who cant handle his modules alone. Requirejs is all I need, and its 2k lines of code, and loads js asynchronously, so load times are not to be concerned off
Well yes then that's comparatively still bad. But still, at least static pages are an option, for the low price of a few kbs. Hopefully webasm will make things better on the app side.
a FastCGI web application I wrote in C is around 19KB compiled
Try minifying and use gzip.
Depends on the compilation flags. Goes down to 4kb.
a statically linked c++ program starts at megabytes because of the standard libraries
Do you have debugging on?
Looks like Monaco.
>web app in C
enjoy getting pwned
you can write insecure code in any language. you have to pay a lot of attention to proper string handling in a C web application, sure, but it's not like it's inherently unsafe.
thanks senpai
but if the http server doesn't face the web, it's no big deal, right?
It's full React (probably dev mode with extra code in) and whatever other code has been included by default like routers or whatever and a 1kb sample app script thrown on top
If you don't need the bundled libraries why are you using that setup
It's easy to write secure web pages in C.
Of course, being able to program is a prerequisite, which might be a problem for you.
learnbchs.org
yeah there's this for example
though most people seem to think it's a joke
I prefer Linux, C++, Nginx, SQLite
i don't really mind any of those except nginx
can nginx be set up in a chroot? OBSD's httpd is chrooted by default
Web development feels like one long gravy train of fads. Keeps the money coming in, sure - but it's hardly worth investing too much effort as your code is practically instantly outdated.
>not a static website made with m4 macros
overly fancy trash