|
I guess maybe part of it is I'm lazy? I can't fathom drilling down that much testing say, that SVG process. Some of it, like testing the parsing code, sure.
But testing the data structures is very difficult without working with how they're actually used by the rasterizer engine. It would be very difficult, but not impossible to design the tests. However, is it more work than testing the whole and risking the possibility of a goose chase over the whole mess if it goes sideways? In some cases yes, I think. In this case, I guess if I'm being totally honest with myself, I *chose* not to validate the data structures and rendering process individually - or the parsing code for that matter, but testing that is not a huge deal and I did a little while making it). But it paid off in the end, in any case. Since it worked, it would have been wasted effort to implement those tests, even though knowing that beforehand is impossible. It was certainly a gamble.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I am not so lucky with complex code, so I prefer not to gamble. But hey, no risk - no fun
|
|
|
|
|
I run(*).
(*) Moderate distances, currently 4-5 miles three times a week.
Seriously, I have this situation often. My stuff helps operate a 60-100 ft long printing press, so it's expensive and painful to debug. First, I have an emulator for the operational bits that manage the hardware. I can debug at my desk quite a lot.
When I have to make an ascent on the mountain like you describe, I tend to walk the code in the debugger and verify things along the way. If I have a complicated new API, I'll write throwaway test drivers that concentrate on just operating the API so that I understand sequences and dependencies, which are often the most poorly-documented. This lets me understand the API with a fixed, easily repeated scenario.
Software Zen: delete this;
|
|
|
|
|
I would believe you while coding you would know what each section is suppose to return. Been there I too get frustrated because I know what I want to happen. To reach that point I realize how many little pieces need to be implemented. Then realize that some parts could be reused for another section that has yet to be written. I try to test groups of code that work together. All trying to reach the goal of a functioning app. Take breaks after 20-30 minutes. Don't go 2-3 hours STR8.
Wish you the best. Peace,
|
|
|
|
|
Firstly, experience tells you how to develop systems that are testable. However, when push comes to shove, experience allows you to develop cognitive skills that can cope with lining up 5 or 6 ducks in order to get something working. Just so long as nobody interrupts you while you're juggling china ducks.
|
|
|
|
|
Whenever that happens to me, I sit back and ponder, then realize a better design would have avoided the problem.
CQ de W5ALT
Walt Fair, Jr.PhD P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Entered the living room this morning and I immediately noticed the giant splash of water near the back door.
The rain is seeping through the ceiling through a leakage that seems to be about a meter wide
It's been raining for about a month, but never had this problem until last night.
This sucks big time! (not quite the expletives I uttered this morning, but let's keep it civil)
|
|
|
|
|
I know it is not the best answer, but if water only drops from the upper side, be happy.
It could come as a wave through the doors, bringing mood, oil from the crashed cars and many other things (like fecals, dead animals or similars).
We have had the strongest rain week of the last years, the basements of most houses got full of water, a colleague lost his car, another one had to be evacuated... luckily I wasn't directly affected
Damned extreme weather
M.D.V.
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.
|
|
|
|
|
Yeah, could be worse, although floods like that don't really happen where I live (well, not since "the disaster" of '53).
We've had the wettest May ever, so it's kind of weird it only started leaking now.
|
|
|
|
|
Luckily no floodings at the Mosel river where we are on holiday at the moment near Traben-Trarbach, also the weather is fine since our arrival last friday.
|
|
|
|
|
Could be worse - if we notice a puddle on the floor somewhere, it's usually one of our cats.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
That was my first thought too.
Not sure how cat going pee pee is worse than a structural defect in your house though
|
|
|
|
|
Cat pee has a really strong smell, and it's very hard to get rid of. I bought a new set of motorcycle waterproofs, and before I got a chance to use them one of our cats managed to pee on the inside. Even jetwashering didn't help - I binned the set and got a new one ...
"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!
|
|
|
|
|
Sheesh, I thought you were talking about a memory leak in a program!😳
|
|
|
|
|
i'm sure there's an ointment to help with leakage.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Oh! You're talking about the roof. Sorry, I thought it was something ... medical. Yeah, we'll go with that.
|
|
|
|
|
Had something similar happen due to a faulty vent on our roof, and near sidewise rain - I live in a really rainy region.
It flooded the INSIDE of our walls and was running through the doorframe of our coat closet. So that was fun.
I don't envy you, because I've been there. I do wish you the best of luck, and I hope it's an easy fix. It was in our case, relatively because we caught it before it did any expensive damage.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I woke up this morning with lots of water just outside my bedroom window. Then I remembered we are on a cruise ship.
Within you lies the power for good - Use it!
|
|
|
|
|
That sucks. Take a look directly above the leak and to three or four yards (meters) on either side of the leak. Look for any beams sticking out and seal around these beams. This is what finally solved a similar leak in my house.
|
|
|
|
|
That's nothing. After a hurricane a few years ago, I woke in the night to the sound of my dog swimming around the bedroom. Shorted out the battery in my wheelchair, so I was stuck in bed until someone happened to look in. Ended up replacing all of the wood floors and lost two lower shelves of books and notes and a file cabinet withall of my important documents, like the house title, diplomas and ten years of business papers. Also had to move out for six weeks while repairs were made, basically redoing the entire interior of the house. It only cost me $15,000.
I've had better days.
CQ de W5ALT
Walt Fair, Jr.PhD P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Why do people go out of their way to answer questions that we know should be in a different forum with people we know abuse the system? Like, what's the impulse to be the sucker? Not really referring to peeps we know who don't do nothing but abuse the system over and over, but to those who blatantly do not care and 100% of their posts is nothing but questions in the lounge.
And sure, we've all done it at times (myself included). And at times I'll attempt to help if there's no forum suited for the query in question that I know of at the time of replying and it's someone I know. Like for instance, Sander just had a networking question and only now do I realize there's a hosting and servers forum. Oops. So, I guess I'm a hypocrite.
But, we know Sander and know he's not intentionally breaking the rules. Can't say that for some in the lounge (won't mention his name). So, why? Surely, doing nothing but answering tech questions to people exploiting this fact is not a dev's idea of being "social"?
Jeremy Falcon
modified 10-Jun-24 2:40am.
|
|
|
|
|
Not to mention there is still someone trying to answer his questions in appropriate forums...
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
I think it's partly because folks know their post will be seen pretty much immediately in The Lounge.
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
^ This.
It's not laziness, it's just increasing the odds someone that possesses knowledge on some obscure/very specific topic will see it and offer a response.
Who in his right mind regularly looks at all the forums?
|
|
|
|
|
I think it is nothing more than people liking to help others. Sure, they should refer the questioners to the appropriate forum, but in many cases it's much easier to answer the question.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|