- Joined
- Aug 17, 2022
I hate that Javascript is so obviously horrendously broken... yet it's near enough the only option for coding in the browser. If only you could do DOM stuff in wasm.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Almost no meaningfully complex apps are developed without using libraries or frameworks these days. It will save you a great deal of time by eliminating repetitive code and working around browser inconsistencies. I propose you learn at least one major javascript framework such as React or Angular (I say at least one as the concepts do transfer reasonably well as you become stronger).Whats your guys opinion on using javascript libraries? Im in between beginner and intermediate with html css and javascript so should i just make everything for my site by myself to learn and understand javascript more or should I use libraries to help save myself time?
Thanks for the help manAlmost no meaningfully complex apps are developed without using libraries or frameworks these days. It will save you a great deal of time by eliminating repetitive code and working around browser inconsistencies. I propose you learn at least one major javascript framework such as React or Angular (I say at least one as the concepts do transfer reasonably well as you become stronger).
You can also take this opportunity to transition to Typescript. People, even famous developers have negative opinions about Typescript but type-safe languages provably reduce the number of bugs in your code; honestly this is obvious for anyone moving from something like Python to C#.
If you don't already have an idea, I would start with the Create React App tutorial, transitioning to the adding Typescript part as soon as possible.
Of course, you can ignore this advice. If your goal is simply to learn for the enjoyment of learning then I encourage you to do that, but the above advice assumes you have a practical goal in mind, such as developing something complex or getting a job. To achieve this goal, you need a framework.
The DOM is all you need. We should have stopped at jQuery, but it's too late now.Whats your guys opinion on using javascript libraries? Im in between beginner and intermediate with html css and javascript so should i just make everything for my site by myself to learn and understand javascript more or should I use libraries to help save myself time?
I respectfully disagree but still love you.The DOM is all you need. We should have stopped at jQuery, but it's too late now.
Fractions in base-n are infinitely repeating if the denominator has prime factors other than those of n. For binary, octal and hex, your denominator must be a power of 2 or it's infinitely repeating, so that excludes 1/10, 1/5 and 3/10. Decimal allows multiples of powers of 2 and 5. There's an argument that the Babylonians liked base-60 because it meant they got finite decimals for multiples of powers of 2, 3 and 5, though in that case, you wonder why they didn't pick base-30.Binary is fun! All sorts of innocent little numbers turn out to be infinitely repeating decimals.
View attachment 5354134
Whats your guys opinion on using javascript libraries? Im in between beginner and intermediate with html css and javascript so should i just make everything for my site by myself to learn and understand javascript more or should I use libraries to help save myself time?
The DOM is all you need. We should have stopped at jQuery, but it's too late now.
yeah how about I shove my fist up your ass faggotThis is one such example.
The thing is that as your app gets more and more complicated and you start growing a user base, the limiting factor in improving your app is going to be scalability. This applies both in making an app that can support millions of users, and having a codebase that can support multiple teams touching the same files and building new features concurrently. The complexity of your app also increases, which you use js libraries to help handle. This is why just using DOM isn't good enough. Without js libraries, the website we have at my job would not be possible to make. It would have to be hacked together with a bunch of random js scripts and no one would want to work on such a piece of shit. If you were looking for jobs and didn't know react, you could probably only work on maintaining legacy systems.
The js ecosystem is a lot more stable than people make it out to be. React is king and has been for almost a decade. React won't be dethroned for the foreseeable future. Learn modern react.
you should be shotWithout js libraries, the website we have at my job would not be possible to make. It would have to be hacked together with a bunch of random js scripts and no one would want to work on such a piece of shit.
React is a JavaScript library used by bugmen and Indians because they don't know how to code and we've forgotten how to actually make software that runs on the desktop. React (and most other JavaScript libraries) allow you to build components which are pieces of the UI (or, the DOM) which you can reuse. So the end result for the user is a clusterfuck of webshit glued together which comprises most of the modern Web today.sadrefrigerator glow
Can you guys explain to me what react is, what its used for, and why its so widespread within webdev? I see it being discussed a lot and I'm definitely going to learn it I just want to know how will its going to help me with webdev.
React specifically is a library, not a framework. (Angular and Vue are frameworks). You use React sometimes along with other libraries such as Redux or GraphQL to build your frontend framework (though with the new context api, I haven't needed to use any separate state management). Whereas Angular will include most of the things you need to build out your frontend, such as state management, api fetching, etc, and have an opinionated way of doing things, React is much more barebones and you end up building that stuff, or plugging in the necessary parts yourself. Angular kind of fell off a long time ago because Google is retarded and decided to release breaking versions every half year or such, and it never really largely recovered from that. Vue followed in Angular's footsteps by making Vue 3 a breaking change where almost nothing is compatible. This is why you'll see a lot of modules that have different versions for different versions of Angular and Vue.sadrefrigerator glow
Can you guys explain to me what react is, what its used for, and why its so widespread within webdev? I see it being discussed a lot and I'm definitely going to learn it I just want to know how will its going to help me with webdev.
I don't know about the ancients, but anymore it seems that when people talk about bases other than 10 they don't even consider fractions. (Is there even a proper term for this? "Decimals" implies "deci-" which is base 10. Fractions can have any base, as it's just the denominator. What do we call numbers that engage negative powers of their base system?)Fractions in base-n are infinitely repeating if the denominator has prime factors other than those of n. For binary, octal and hex, your denominator must be a power of 2 or it's infinitely repeating, so that excludes 1/10, 1/5 and 3/10. Decimal allows multiples of powers of 2 and 5. There's an argument that the Babylonians liked base-60 because it meant they got finite decimals for multiples of powers of 2, 3 and 5, though in that case, you wonder why they didn't pick base-30.
@sadrefrigerator has already explained this nicely but I'll expand a little and explain why it's different to what I imagine you already know.Can you guys explain to me what react is, what its used for, and why its so widespread within webdev? I see it being discussed a lot and I'm definitely going to learn it I just want to know how will its going to help me with webdev.
You mean to tell me we would have to go back to writing software that runs on a DESKTOP? Save me Durgasoft I'm going insane.Theres a lot of things I wouldn't even think about since its all taken for granted with modern frontend development. Most of the websites today wouldn't be able to be created without frontend frameworks.
Learn a few commands in Git with this handy free book, learn to check out and merge branches for your experiments, ignore the rest of the book, start putting all your code in repos on Gitlab or a VPS, never cry over spilled code again (probably.) If you already know all this then I may not understand the questionHow do you guys make changes and try new things with your code without completely breaking it? Basically I want to make multiple versions of the same code so I can experiment on the copies while also having access to previous versions. Sorry if this is vague I dont know how to describe it.
class QUAZIP_EXPORT JlCompress {
public:
using FilterFunction = std::function<bool(const QString &)>;
bool mergeZipFiles(QuaZip *into, QFileInfo from, QSet<QString> &contained,
const JlCompress::FilterFunction filter = nullptr);
bool MMCZip::mergeZipFiles(QuaZip *into, QFileInfo from, QSet<QString> &contained, const JlCompress::FilterFunction filter)
{
...
This is just the newer syntax for typedefs, i.e. it declares `FilterFunction` to be an alternative name for the type `std::function<bool(const QString &)>`.using FilterFunction = std::function<bool(const QString &)>;
It represents a callback that you can pass to `mergeZipFiles`....Code:bool mergeZipFiles(QuaZip *into, QFileInfo from, QSet<QString> &contained, const JlCompress::FilterFunction filter = nullptr);
What does this std::function actually mean?
bool myFilterFunction(const QString& item)
{
return !item.empty();
}
mergeZipFiles(into, from, contained, &myFilterFunction);
mergeZipFiles(into, from, contained, [](const QString& item){ return !item.empty(); });
I have been poring over documentation for ages and you explain it just like that. Thank you.*explanation*