|
I never liked 'TODO' comments in the code.
I rather keep a plain text file in the project directory listing all the things that should be remembered and considered. Then I can be sure that I don't overlook a fix because I didn't open that source file. I can more easily sort out a group of related fixes and do them in one cleanup. And I can put in a reminder about planned/desired functionality that doesn't yet have any definite place in the source code of already implemented functionality.
In my text files, the entries are not necessarily limited to strict coding actions. They may e.g. state the defined order of method parameters for this project, or identify the standards to be followed. Sometimes it grows to require a splitting into sections. Some of that information later goes into the system documentation.
|
|
|
|
|
That's also how I keep track of enhancements. But a non-trivial bug calls for a comment in the code to notify others who may be looking at it.
|
|
|
|
|
|
|
Thanks, I'll look into this. What I currently do is tag some comments with special characters:
And so on.
|
|
|
|
|
|
If you use VS.
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
you can search for all TODO's in a solution. that's what I do. it works perfectly for me.
I do feel that TODOs can get out of hand a lot of times, and so, I try to use them sparingly.
There is also a window that is for using and managing TODOs, etc.
modified 10-Feb-22 16:59pm.
|
|
|
|
|
I do the same, luckily I developed this way of working very early in my career so now I am quite efficient with it.
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Visual Studio has a Task List view which brings them all together which I think is better than having a separate file which may or may not get updated when then 'TODO' is done.
|
|
|
|
|
The very last thing I do before adding to a commit is to git diff, going line by line getting rid of spare spaces and comments like these, as well as taking notes on lines changed.
I do, however, find old notes from past coders very like this, but with dates and initials added. Some are 5 years old - might not be important to fix that, eh? 
|
|
|
|
|
|
I thought "you know, that looks like Base64 data to me" ... so I ran it through an online "decoder".
And it's JSON data as Base64 containing her email address, two GUIDs, 4 URLs, and some other rubbish.
No wonder it's so 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!
|
|
|
|
|
OriginalGriff wrote: an online "decoder"
You've not installed DevToys[^] yet then?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Herself has to have regular background checks (every couple of years) to ensure she's not going to murder the residents of the home she works in.
And this year she can do it online.
But if the button doesn't work - and I'm not going to press it - they provide a text hyperlink to enter manually.
All 677 characters of it ...
"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!
|
|
|
|
|
At least if it's in an email, you can copy and paste it (into a text editor first, to make sure it hasn't been changed, then from there into your browser).
I can't find the story at the moment, but I'm sure a few years back there was a scan of a job advert in a print newspaper with a link of a similar length.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: At least if it's in an email, you can copy and paste it
Whoever put together my bank's site thought it would be a good idea to disable click and drag in the browser, so I can't copy things like 12-digit transaction numbers that I like to copy for my own records...
|
|
|
|
|
At my last company the marketing department used to send (by post) a monthly paper bulletin. It was usually about 5-10 pages and each page had at least three printed URLs, which extended to 4 or 5 lines. I sent them an email suggesting they email the stuff to make it easier. Their reply was the usual, "Thank you, we will take your suggestion under advisement" - translation: "Dude, you know nothing." (which of course is true, but that is another matter).
|
|
|
|
|
I agree that long URLs in text messages are a pain, especially if you have a phone that does not have a browser and you have to manually copy from a phone to a PC. I had one from the NHS that straddled two SMS message as it was so long. I can't remember how many times I tried to write it in Notepad then copy/paste to a browser before I got it right.
A quick <insert name of a web browser search engine here> gives ...
http - What is the maximum length of a URL in different browsers? - Stack Overflow[^]
URL length: how long can a URL be? - SISTRIX[^]
These agree on saying you should not have them longer than 2048 chars
RFC 2616[^] says (§3.2.1 General Syntax)
Quote: The HTTP protocol does not place any a priori limit on the length of
a URI. Servers MUST be able to handle the URI of any resource they
serve, and SHOULD be able to handle URIs of unbounded length if they
provide GET-based forms that could generate such URIs. A server
SHOULD return 414 (Request-URI Too Long) status if a URI is longer
than the server can handle (see section 10.4.15).
Note: Servers ought to be cautious about depending on URI lengths
above 255 bytes, because some older client or proxy
implementations might not properly support these lengths.
So, you should be able to have the whole text of War And Peace in your URL!
|
|
|
|
|
Oh so you like long string?
Spell the full name of titin...
|
|
|
|
|
I wonder if it's case sensitive, too.
cheers
Chris Maunder
|
|
|
|
|
The latest article on this issue states that it's not going to be cheap. I use VisualStudio without open source. If I need additional functionality I purchase it from a reliable vendor. Probably cheaper than trying to secure all that open source crap out there; and that's not counting any malware that has creeped into your system from Billy-Bob's download.
Pay me now or pay me later. 
|
|
|
|
|
Member 14840496 wrote: I use VisualStudio without open source. So no .NET/Core...
There are millions of open-source projects properly secured - instead of running away, learn them before use...
There are full systems built on totally secure open-source code (Linuxes)...
And it is entirely possible that with payed product you actually will pay twice... payment is not guarantee for nothing today...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
.NET is the VS framework. Don't use Core.
VB, Delphi, VS, Telerik, DevExpress. And yes, you get what you pay for. Never hear of any of these products needing to spend money to make them secure.
Been in IT for 28 years. Never had a problem worrying about open source malware because I simply do not use it.
Just because SOME projects do not blow up, does not mean it should be the goto source for code.
|
|
|
|
|
The whole of the .NET framework is open source: Reference Source[^], so any .NET based software is unavailable to you ... which includes the C# compiler, and VS itself ...
"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!
|
|
|
|