Tag wiki for bundle:
Bundles are a group of resources.
A bundle is a directory that has a well-defined structure and can host
anything from classes to controllers and web resources. Even if
bundles are very flexible, you should follow some best practices if
you want to dist...
Lots of these memory management functions are implemented cleverly by the OS; I'd rather use the clever, fast implementation than write a possibly-slower one
@QPaysTaxes C++ has become a far relative since C++11. I can't say I dislike it, but it is gampa C I'm a bit concerned about. Imo the committee should cut out old wood from the standard and leave legacies to C11. There clearly is demand for a simple imperative language with full control of used resources (no hidden libraries), but even this could evolve, e.g. allow for enums with user-specified type, a clean null pointer constant, remove the Extrawurst for char, etc.
@QPaysTaxes C# has nothing to do with C! They just did not call it "J#" because they lost a legal cause on that. And both, C# and Java are imo half-baked chimeras between C++ and some higher level languages. Imo, the set C, C++ and Python or Ruby is a good combination of skills for every-day programming tasks. If you are involved in web-development, use Python and JS + HTML.
@QPaysTaxes Yes. Just please keep in mind that even if I understand the terms, I might not know the full cultural background and implications. That's the main problem really mastering a language. Grammar, syntax, etc. are not really the problem.
@QPaysTaxes Objective-C actually had a long and productive time. It just is now being replaced by Swift. Apple wrote most of the code in ObjC. It was just not noticed much outside the Apple ecosystem.
@QPaysTaxes ObjC seems to have som interesting concepts. Sometimes I wish I had taken the time to get deeper into it. But then I was a bit discouraged by the syntax.
@QPaysTaxes C++ is not mcuh better in that aspect. They add more and more strange stuff to the language. All this looks to me more and more like riding a dead horse, just not to define a new language. Maybe Rust, D or Go would be worth a try, but then these languages also add too much overhead. I really miss a lean language liek C but without the quirks. If you ever programmed Modula-2, you might know what I mean. And that language could easily be extended by the C operators.
@Makyen, you've made a lot of cv-pls in the last half hour. Keep in mind that cv-pls's are for things that wouldn't naturally be closed because of low reviewer traffic. I haven't reviewed the requests you have made just now, I've only been notified of the increased rate.
Yes, they added functional programming features now, AFAIK. While C is very conservatively extended, C++ seems to run after every new fashion in programming.
@QPaysTaxes I always think should get into it again. Many companies prefer C++ now, as they think one will be more productive and the quality is higher. Both are nonsense.
And the single largest email service provider (as in, people who send emails for companies, not provide personal email accounts) uses C for their infrastructure
@QPaysTaxes Why that? Get a STM32F429 Discovery (ca. 20-30 € IIRC, I got one for free from a distributor) and set up he gnu-tools. Just don't use the bloatware STlib. That board even has a small TFT.
@BaummitAugen A language does not become better by just adding things. For C, cutting out dead wood would actually enhance the language. Although it already is pretty lean. C++ is on the way to become a black hole: collapse in itself. I honestly think the day C++ will not be usable is neigh.
@QPaysTaxes C++ and C are only that strong because they are ISO-standards. That way companies have a defined feature set. Problem with C++ now is that there are just too many ways to solve a problem language-wise.
@QPaysTaxes I have three projects running for 2 or 3 decades now!
@QPaysTaxes Well, after some decades in the job, one eventually has quite some finished jobs, of course. It is just some of my personal projects which don't finish. Problem with those long-termers is that when I take the time to work on them after some years, I completely redesign them because techniques have evolved and I have new insights.
Now, I just work too much for money, so I simply don't have the time (and the mood) for my own projects. Hope I can take some months for one of my primary projects after the current job.
@QPaysTaxes In absolute terms, ok. But relatively, you most likely have way more time. Just consider that if you grow older you also loose the interest in programming all weekend if you program during the week already. But, of course ymmv; we'll talk again in 20 years (hope they have Ouija-interfaces until then ;-)
Those suffixes are problematic. After all struct has it's own namespace anyway, so no need to suffix the name with anything. Same for union and enum`. That whole Hungarian notation thing is mostly missunderstood and wrongly used anyway. And MS started it.
The return -1 is not that unusual if you just want to report "some failure". After all, the return type is int, so -1 one is completely reasonable from the C point of view. Whatever the host environment does with that int is outside of the scope of the standard.
My point there is that the environment doesn't treat -1 like -1, so documenting, say, "-1 means something bad and specific happened" won't make any sense.
@QPaysTaxes You've reviewed 40 posts today (of which 2 were audits), thanks! The time between your first and last review today was 28 minutes and 51 seconds, averaging to a review every 43 seconds.
Supporting the actual, complete C format string, and even validating it is one in the first place, will be so incredibly annoying.
Also, with that printf line, we have to check that argc >= 10 (ok, that's easy) and that argv[2] contains exactly 7 %s and no other %whatever. Which again is going to be needlessly hard.
@QPaysTaxes Should I keep looking btw or are you done?
@QPaysTaxes You've reviewed 40 posts today (of which 2 were audits). The time between your first and last review today was 28 minutes and 51 seconds, averaging to a review every 43 seconds.
@QPaysTaxes heh.. looks like account merging has a lot of bugs.
@NathanOliver docs seems to be pretty buggy. Additionally, I see to have gained around 2k rep after the account merge (not from the old account), and I am gaining more rep every day from the docs even though I shouldn't get it..