[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>just use react, babel polyfill and webpack, bro >write

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 26
Thread images: 2

>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 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.
>>
>>58065752
No, you're a scriptkiddy that uses meme frameworks and you don't know how to handle your dependencies
>>
>>58065812
React alone is like 750 KB.
>>
>>58065752
what is that cute font?
>>
>>58065752
>>58065803
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.
>>
>>58065842
~60-70KB
>>
>>58065752
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
>>
>>58065890
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.
>>
>>58065842
a FastCGI web application I wrote in C is around 19KB compiled
>>
Try minifying and use gzip.
>>
>>58065842
Depends on the compilation flags. Goes down to 4kb.
>>
>>58065842
a statically linked c++ program starts at megabytes because of the standard libraries
>>
Do you have debugging on?
>>
>>58065827
Looks like Monaco.
>>
>>58065961
>web app in C
enjoy getting pwned
>>
>>58066319
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.
>>
>>58066276
thanks senpai
>>
>>58066319
but if the http server doesn't face the web, it's no big deal, right?
>>
>>58065752
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
>>
>>58066319
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.
>>
>>58069097
https://learnbchs.org/
yeah there's this for example

though most people seem to think it's a joke
>>
>>58069124
I prefer Linux, C++, Nginx, SQLite
>>
>>58069160
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
>>
File: 091203912093.gif (254KB, 350x197px) Image search: [Google]
091203912093.gif
254KB, 350x197px
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.
>>
>>58069124
>not a static website made with m4 macros
overly fancy trash
Thread posts: 26
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.