The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen.
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
In the past I've used Gulp to transpile and minify/uglify my front-end resources, but I understood Webpack is the latest rage.
I never liked Gulp all that much anyway so I find me a nice blog on setting up Webpack and all is fine.
Except that jQuery is now undefined.
Lots of Googling and apparently I need something like this.
import $ from 'jquery/dist/jquery';
window.jQuery = $;
window.$ = $;
import Vue from 'vue/dist/vue';
So that looks like four different methods to get the same thing.
Especially the jQuery thing was somehow hard to find.
It has something to do with jQuery being an old package that doesn't use the latest standards.
But it gets better.
Lots of Googling later and I've found some plugins that I need.
I even got in the SCSS transpiler, uglyfier and minifiers.
After lots of Googling I even got rid of all the overhead Webpack generates.
The default code generation actually makes heavy use of eval("...")
But I've got all of that out of the way, so that's a win.
Luckily, I found some .NET middleware that watches your files and run npm build automatically if anything changes.
Well tough luck because that's deprecated and no good alternative is offered.
Now I have to install a Webpack server, if I want to get serious with Vue I need to install a Vue server as well.
This sh*t cost me hours to set up and development just became harder.
The documentation is horrible and all over the place.
For every little thing I need I have to install a new npm library that comes with a gazillion dependencies (actually, I've got 576 folder in my node_modules for a total of just over 90 MB).
Just when you think you've got it, you bump into some problem and you need an extra package or, if you're unlucky, completely replace the one you're using and start over.
WHY THE HELL IS WEBPACK SO POPULAR!?
Unfortunately, this was the same reason that I didn't like Gulp and that I don't like those front-end testing frameworks or any front-end work for that matter.
Front-end is a mess and despite (or because) all the tooling it's not getting any better
I've never done web development, but I get the sense that it's often a mishmash of things that could be described as, "You're in a maze of twisty little passages, most of them filled with knee-deep shite."
One of the reasons I have such disdain for npm, webpack, and all the other aspects of the web-sphere, is exactly many of the issues you've mentioned - absurd amounts of dependencies, lack of "how to" documentation, and so forth. And forget getting all that tooling to work in Visual Studio, my favorite IDE / debugger tool. Visual Code sucks - it keeps changing with every new release, and I'm sick of that and the half-assed plugins that only half work.
I've come to love web development, but only in the context of, don't use anything someone else wrote unless absolutely necessary. So I have a very small suite of third party libraries I use:
never jQuery (except that the above to require it)
no third party "MV[x]" framework
no "pollute my HTML with declarative code" engines, so no Angular, no Vue, no shyte.
um, nothing else really.
and everything is coded in TypeScript, and I can debug happily either in the Chrome console or right in Visual Studio.
As usual, I rebel. I am not a lemming. I will not leap of the cliff that everyone else appears to be leaping off of.
We seem to come from rather different worlds, but this is one reason I write pure C++ with as few dependencies on other things as possible. I like most of the STL, but there's a lot of shite out there.
I even have a black Stetson, a going-away present from a former team. Hi y'all if any of you are reading this. Some of them still work on the product almost 20 years later.
Configuring webpack and getting things into the right places does take a lot of research and time. I've accomplish some (if not all) of the things you wish to accomplish with webpack. Here is a link to a project that you can clone and npm run start.
Then sample project includes a already set up webpack project that generates src and minified files. It also includes hot reloading.
Tomorrow I'm leaving for vacation on the island of Texel, sadly the weather forecast is not that good.
Of course after having weeks of beautiful sunny weather
So don't worry if my CodeProject profile will be even lower than usual ...
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
Seriously, I want your recipes that make you fat. Got quite a lot of recipes here; seems software-writers enjoy their foods. My favourite until now is one that includes coffee-milk. Doesn't contain as much calories as I guessed, but tastes well and makes you eat more. So, counts as a high-calorie meal. *)
There's quite some people looking to gain weight. @57kg, I got nothing better to do; I want to gather a lot of recipes that make one fat. The more butter, the better.
If it results in a cookbook I will credit your arse. Send me your recipes. Not the ones based on lettuce without calories, but your sinfull ones. Gimme the ones you can't resist. I want your grandma's christmas recipes.
My approach isn't agile in this one; it is SDM, waterfall. Might just work. And yes, thinking about collecting them in a cooking book, for those seeking to gain weight.
I promise I will post pictures of my reproductions.
*) @Mycroft; your wife's recipe, it was great. I humbly ask for the complete recipe. If you near I'll pay back and take you to the best brewery there is.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
If you want to gain weight you need to make sure your blood sugar swings a lot.
High blood sugar makes the liver create fat from the sugar for later use (Very simplified).
Low blood sugar makes the body think it's starving, so it creates more enzymes to use the food better, for when you later eat.
So eat seldom and a lot.
Make sure you eat a lot from fat, protein as well as starch, and best of all sugar, at the same time. to make sure you use up all those enzymes.