|
6500+ base classes is why I call .NET bloatware, though in fairness that's from a distance. C# itself doesn't fit in with what I'm trying to do. But if I were building applications, I'd probably have a love-hate relationship with it. Sometimes it would abstract away tons of unnecessary details, and other times I'd want to use lower-level interfaces--assuming that they're even exposed--when it got in the way. As it seemed to do with your recent thread pooling article.
I agree with you: no more classes, and no more public functions, than necessary. Hell, I'll derive from a concrete class if doing so only causes minor kludges. Sometimes this happens in retrospect, when trying to insert a new virtual base class would be a total pain. The main difference in our style would probably be the number of virtual and private functions, but then again we're doing rather different things.
|
|
|
|
|
Greg Utas wrote: Sometimes it would abstract away tons of unnecessary details, and other times I'd want to use lower-level interfaces--assuming that they're even exposed--when it got in the way. As it seemed to do with your recent thread pooling article.
Oh they're exposed. One of the reasons I hated VB6 and only used it to glue my C++ code to a UI (my hate for MFC burns with the fire of 1000 suns) was because everything was opaque. When you needed to go outside of what it offered you were usually out of luck or had to resort to nasty hacks. Okay, the hacks were sometimes fun, like manufacturing a vtbl out of whole cloth to get VB to interface with a lower level com object, but generally you spent a lot of time working against it rather than working with it.
with .NET, everything is exposed. Sure it's wrapped, but you can get to it, and if it's outside of .NET you can P/Invoke to it. You can actually do pointer ops in .NET - it just comes with downsides when doing it on the managed heap. That's why it doesn't offend me coming from C and C++ the way VB6 did.
It in no way attempts to insult the developer's intelligence. The worst case scenario is what you saw with my thread pool project, and eventually, after enough reading, I solved it with less than half a page of code, most of it provided by microsoft in an example.
Real programmers use butterflies
|
|
|
|
|
|
A gc isn't necessarily an insult to developer's intelligence. In fact, google Boehm's collector, which is an implementation of a GC for C++
But why would you ever do that? Simple. Reducing string heap fragmentation in a high performance web server application.
I'm not saying it's appropriate for what you're doing, but
A) it may not be as bad as you think - it certainly performs better than i expected
B) it's even got some advantages over traditional heap management methods in terms of fragmentation.
Real programmers use butterflies
|
|
|
|
|
Not an insult to a developer's intelligence, just makes certain things impossible.
|
|
|
|
|
or at least difficult. I've found very little is impossible with a GC, but a lot of it might be detrimental to its performance. You can pin collected pointers in memory, but it hurts performance.
Real programmers use butterflies
|
|
|
|
|
... it's true what they say about Google[^], you know ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Google, always good for a giggle
|
|
|
|
|
Clipped for my scrapbook.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
At least you have something sent. My order from China was stolen in Germany.
The post point it has to pass has over 300+ Google reviews about stolen and missing items since a package passed that location.....
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
My last order from China was - in theory - handed to the USPS, which is odd for a delivery heading for the UK.
And the domain I ordered from is no longer registered.
It all looked so real as well ... Hey ho - waiting for a PayPal claim to be reviewed takes far too long!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Started badly with the cat being sick at 03:30 ... You gotta clean it up, or you'll step in it when you go for a pee in the dark later ...
He does vomit rather more than I'd like, and one of the suggestions I read about was to raise his food. Apparently it helps it go down, and hopefully stay there. So his bowls got lifted from the floor with the help of an Amazon box, and then his big bowls got replaced with shallower ones, and yesterday I printed a stand for two bowls - his wet food and his dry food.
Today, the bowls get transferred to the stand and he gets bribed to try them. Not a problem, he even lowered his rear end while eating, so hopefully it will all work.
Anyway, when I bought the new bowls they only game in a set of three - and they are far too shallow for a water bowl, so I figured I'd superglue some Neodymium magnets under it (it's a stainless steel bowl) and use it for a pin tray since my last one got borrowed and I haven't seen it since.
Clean the base and the magnets with Isopropyl alcohol apply glue to bowl, drop magnets on carefully. Wait.
Gently push one magnet to see if they are stuck, and ... no ... it goes flying across the bowl, gathers up the other three and vanishes under the freezer.
Of course by the time I get them out, they have successfully glued themselves together just to add insult to injury.
As I said: one of those days.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
ugh - breathe deep, count to 10 (ie 10,000 or more)
|
|
|
|
|
Just don't code anything today!
Real programmers use butterflies
|
|
|
|
|
03:30's definitely not good. You sure it's not just furballs? Ours is usually sick about 07:15 every other day, if we do nothing. With really regular grooming, it's down to about twice a week. With regular use of KittyMalt or other furball "remedy" as well, we can get it down to once a week.
|
|
|
|
|
Music written in public (3)
|
|
|
|
|
AIR ?
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
|
BAR?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
yep
|
|
|
|
|
You hate it that much, but not enough to leave a comment telling me why it was awful.
Oh well. My haters make me famous.
Though I kinda wish CP would force you to comment on a 1 star vote. I'm pretty sure I've picked up a troll.
Real programmers use butterflies
|
|
|
|
|
We all get 'em from time to time.
With articles, it's often Joe Stupid from Dumbton, Texas realising that it isn't what he needs to hand in as his homework rather than a troll, but "odd" downvotes to articles get discarded with sufficient up votes: they are treated as anomalies and silently "vanish" from the overall rating - one of mine has 21 "removed" votes.
Comments used to be compulsory, but either they consisted of "sdfsdfsdfsdf" or they started a flame war / tit-for-tat downvoting contest, so they were discontinued.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I see. Well, I think it's a troll because i get it fairly consistently since this year, and when i post several they all get downvoted at the same time.
Real programmers use butterflies
|
|
|
|
|
OriginalGriff wrote: it's often Joe Stupid from Dumbton, Texas Hey, I lived in Texas for 12 years!
|
|
|
|
|
SO YOU'RE MY DOWNVOTER!!
Real programmers use butterflies
|
|
|
|