|
|
I could embed images into source code. A picture is worth a thousand words, sometimes.
Given the so-called modern age we live in, it's appalling that IDE's like Visual Studio don't support this natively.
Ah, but there's this: ImageComments - Visual Studio Marketplace[^]
Dang. I'll have to try that.
Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Coming soon: embedded YouTube video tutorials
Followed very quickly by embedded video ads ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
leading to the VS add-on to filter out that nonsense shortly thereafter.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
"µBlock for Visual Studio"!
But then, people will start monetizing their source code, so everytime they have a code review they get paid a little ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
This iterator has been sponsored by Castrol, keep your iterator well lubed with Castrol premium oil.
I'd rather be phishing!
|
|
|
|
|
OriginalGriff wrote: Coming soon: embedded YouTube video tutorials
Noooooooooo!
OriginalGriff wrote: Followed very quickly by embedded video ads ..
I will become a farmer if that happens.
Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Yup.
Then devs will join the rest of the world, in what they have to suffer for the privilege of having google as their friend.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I think a well written comment is explanatory enough to not need a picture comment.
I also see the file size getting unnecessarily big(assuming that the pictures are actually ported to the source code for other people to see the comment on a different system, otherwise what's the point).
What happens when the image is not there anymore?
Interesting thought though.
|
|
|
|
|
GKP1992 wrote: I think a well written comment is explanatory enough to not need a picture comment.
The thing is, a picture vs. "Notice the return values on this transaction, where RC == 0 but Status is 2, vs. the second transaction, where RC != 0 and Status is 1". I just want a small picture of the 4 columns and two rows involved.
And while I agree with you, there's the other factor -- comments are not necessarily read. A picture is hard to ignore and draws you into reading the explanation.
Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
GKP1992 wrote:
What happens when the image is not there anymore?
Broken image links - now for your source code editor!
|
|
|
|
|
GKP1992 wrote: I think a well written comment is explanatory enough to not need a picture comment. Absolutely.
In fact, even the well-written comment isn't needed, because the code explains itself.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Used correctly, I can see this being a nice feature. That said, my immediate thought was for inserting a not so nice image where a 'feature' had to be added to account for a client with special requests or handling a bizarre one-off edge case. If my computer screens actually captured and saved my reactions there would be more than a few with the double-bird.
How about some emoticons to show how you were feeling when you wrote/rewrote this code block, or fixed someone else's code?
"Go forth into the source" - Neal Morse
|
|
|
|
|
I've worked with IDEs for apps where you can attach pictures and zip files.
As long as the people making the attachments aren't idiots (and they invariably haven't been), it's an extremely fast and helpful way of explaining what's been done.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Quote: This package allows twentysomething web developers to write a newer, worse version of JavaScript that no one else on their team knows. LOL.
Never mind pictures of Guy - the "Express" / "Hot Pockets" link up is enough ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
It's at least made with real cheese.
|
|
|
|
|
Then source code would be littered with porn. No thanks. You have no idea where the last coder had been.
|
|
|
|
|
|
Could have Clippy resurrected. It looks like you are trying to write a program...
|
|
|
|
|
|
just put a link to the image
|
|
|
|
|
I'm waiting for Visual Cortana (should find an "i" word so I can call her Vickie...), where you will tell VS what you want to build and it will find all the NuGet and GIT crap and build the application for you.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
I am using something like
std::this_thread::sleep_for(std::chrono::microseconds(toWait));
where toWait is dynamic, depending on frequency and desired time minus the used time for the data processing.
I am aware of:
Blocks the execution of the current thread for at least the specified sleep_duration.
This function may block for longer than sleep_duration due to scheduling or resource contention delays.
but I would at least have expected that the scheduling or resource contention is something that can come but that goes again as fast as it gets solved but...
NO, it isn't.
Example:
1 minute à 250 Hz (4 ms period) --> 15000 expected ticks.
toWait = [3700, 3980] us depending on what it is done in each tick
30% of the tests working fine, sleeping the correct toWait --> 60.000xxx execution time, 15001 ticks
70% of the tests going wrong, because it adds 6 ms to the wait time (toWait [9700, 9950] us) and the elephanting offset remains for the whole execution --> 60.000xxx execution time, 6001 ticks
Sorry... but I had to "shout"
Thanks for "listening"
EDIT (New day, new perspective):
I have just dumped the sleep_for(toWait); .
I am now using my own check using the QueryPerformanceCounter and comparing it to the period I want to use.
So far... performing good.
If my long time performance tests are successful and I get the time to do it right... I might put a bit order, create a helper class and write an article / tip about it.
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.
modified 25-Apr-19 3:30am.
|
|
|
|
|
Clearly you had the ticks handled but you forget about the tocks!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|