|
Some of those are double colons. Are we counting them as well?
|
|
|
|
|
i did, because of the way the original question was worded.
Real programmers use butterflies
|
|
|
|
|
To keep my gastroenterologist in BMW's?
Oh wait, wrong colon; my bad.
Software Zen: delete this;
|
|
|
|
|
I'm surprised no one got this:
Between two points, it takes two seconds to be single. (9)
Between two points ONE LINE
it takes two seconds SS to be single. (9)
ONELINESS[^]
Apropos of the current human condition, I think...
"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 did think of line being part of the answer. But I would have lost the house betting that oneliness isn't a word.
|
|
|
|
|
I was nowhere with this - points mean compass points to me - I had momo for two seconds - you are up again tomorrow
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
"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 hardly know English, but look up every word comes up as solution in CCC...
In this case Webster knows only ONLINESS (despite the cite on Free Dictionary), and Wiktionary defines it as obsolete - No longer in use, and (of a term) no longer likely to be understood...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
For those of you that don't know,
C++ allows you to use templates to trade bigger code size for more speed or more flexibility.
C++ also allows you to use templates to reduce code size while maintaining flexibility.
It all depends on how you use it but it makes for some hairy design decisions.
I'll give you the scenario that gave rise to this missive:
I have a weird video frame buffer format I want to be able to back with an in memory bitmap.
I currently do that. However, the bitmap is not mapped in the same way as the frame buffer so on copy it has to massage the data into the framebuffer format.
It got me thinking, what if I could, in addition to specifying the in memory format of the bitmap in terms of its pixels, what if I could also tell it how to lay those pixels out in memory, rather than forcing it to go left to right, top to bottom?
It complicates the situation where you're blting/copying from a bitmap to one with a different in memory mapping, requiring additional code to be generated to handle that case.
...as well as the case where you're going between two bitmaps with the same mapping format at which point each mapping type needs an optimized blt/copy to go from bitmaps of the same type, for efficiency.
This creates a situation where you're potentially generating more code if you create or use a new bitmap mapping format because at some point you'll probably need to do transfers between and regular bitmaps, causing that generic code above to be generated, but also between bitmaps of the same mapping types causing the optimized mapping code for each to be put in the binary as well.
The advantage is you can create new framebuffers for weird video hardware, and treat them like normal bitmaps, at the expense of a larger binary, and of course some mapping overhead. But you can just do drawing operations over your framebuffer, and rather than adjusting the data post-draw during the copy to the video device, it makes it so that the buffer is created in the video hardware's format *during* the draw operations.
The question becomes, is it all worth it?
Does the code bloat overshadow the flexibility?
I can't tell until I implement it. I just won't know without trying it. There are too many factors to determine how it will play in the real world without building it out and throwing some scenarios at it.
Here's the thing.
With most languages, I wouldn't be stuck on design decisions like this simply for the fact that they do not exist. Most languages don't allow you to make decisions like these. You're stuck without the option in the first place, so you just have to dance with who brought ya.
And then I think, well, most languages are just fine without all these capabilities, so maybe I'm just spinning my wheels, or at least traversing rabbit holes that wouldn't even exist in say, C#
But then I also remember that C# code will not run on an ESP32 or similar, for good reason. I don't have RAM and cycles to waste.
Admittedly, most of the features I like using in C++ I don't strictly need. I use them to make my code more flexible, or tighter, or otherwise make it work exactly the way I want, but sometimes I think I'm just borrowing trouble - being overly perfectionist about it in ways that other languages don't even allow me to do.
Is it too much freedom and flexibility for my own good? And the fact that I have to keep asking myself that both sort of reinforces the idea that maybe it isn't so good, and also kind of freaks me out in terms of my political sensibilities given how ... libertine I tend to be. Why would I ask myself if this much freedom is too much? And does this say anything larger about where my head is at?
And then C++ starts giving me an existential crisis.
Real programmers use butterflies
|
|
|
|
|
Welcome to a multiparadigm language.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
These are the kinds of questions I ask toward the beginning of a project. I'll often spend a significant amount of time trying to answer them, and ultimately give up in frustration. I'll then implement the complicated or stupidly repetitive or otherwise distasteful solution.
At some point, the light dawns. I discover the Zen/feng shui/bushido/elegant solution that also satisfies KISS and YAGNI. Rarely does the solution match anything I considered at the beginning.
It's like I need a certain level of brain injury from banging my head against the wall before I achieve satori.
Software Zen: delete this;
|
|
|
|
|
I relate to this so hard.
Real programmers use butterflies
|
|
|
|
|
Software Zen: delete this;
|
|
|
|
|
I have a Wise (formerly Transferwise) account (mostly to help with the occasional US dollar payments I get as the exchange cost is trivial compare to my bank) and they have just started a Virtual Bank Card: Shop safely virtually anywhere![^]
It's like a physical bank card but you can have three of them at a time, and delete them when you don't need them.
So you can have a card, make an online payment and delete the card so it can never be used again - by you or by the shop. Given that I'm pretty sure it was an [large online company] employee that tried to use my card details to buy £5K of jewelry from Hong Kong about ten years ago after I made a purchase using it that's not a bad idea at all ...
Worth thinking about, if you just don't like paypal / ebay tracking everything you buy.
"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've but one problem with it: I don't have (or accept having) an Debit Card. Here (US) they're often combined with an ATM card and I make sure that capability is not available
Personal experience, even longer ago than yours, was with a bank card "accidentally" being charged four times for a trip to the Caribbean (air, food and lodging). They were listed back-to-back on the same bill and probably had to do with a sticky key or fat finger - but it ruined use of that card until all was straightened out (a month). It was, however, not my money being held but that of the charge card company. My bank account (and thus my checks) were all working properly because the account wasn't drained. The CC company will work much harder to get their own money back. I like that degree of isolation from the spending, sticky fingers, and my money-hoard.
Also, these days, I get a % back from the CC companies on everything I buy. $hundreds/yr.
One-time use numbers would be a nice add-on for the CC's and I think that's available from some banks - I guess I should check what I have available. Foreign currency transactions: some of the cards don't charge a fee - others charge a lot - converting to/from $'s.
So long as I can maintain my perception/philosophy that they work harder for their own money than they will for mine when it comes to recovery and/or disputes.
UPDATE: More card issuers offering virtual card numbers to cut fraud risk - CreditCards.com[^] but I don't have any of the cards listed in the article (not that it's a new article or exclusive list).
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 29-Apr-21 8:56am.
|
|
|
|
|
|
I can't thank you enough (just an expression) for validating that my somewhat paranoia enforced rules are, in fact, totally valid and for the right reasons (seriously!).
Even the bank info - and I don't let anyone have direct access to my checking account: money is only pushed to pay bills - no one pulls money . . . except for me.
And that pulling of money is another layer of security: the majority of my cash resources are in online bankS that have zero public face. Only the ability to push and pull money from my checking account. They do not know about each other. So - money is dispersed, has no public face and no direct access method to reach into them - only they do the reaching.
Still - if I were deliberately targeted for an identity theft I'm pretty sure I'd get stomped.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
It's a good thing she didn't use a bar of Lindt ... that would be pain au chocolat!
"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!
|
|
|
|
|
You should never date girls from Lorraine. As Churchill said, the Cross of Lorraine is Doubly Cross.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: You should never date girls from Lorraine.
Or indeed girls called Lorraine as they can have a detrimental effect on your eyesight, as alluded to in song ...
"I can see clearly now Lorraine has gone ..."
|
|
|
|
|
I wanna know... Have you ever seen Lorraine?
|
|
|
|
|
PIEBALDconsult wrote: I wanna know... Have you ever seen Lorraine?
Yes, I saw her up around the bend.
|
|
|
|
|
She's a sweet hitchhiker.
|
|
|
|
|
Are you implying she'll bring her twin sister and . . . ?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|