|
Thanks for explaining
Quote: Second link changed - I forgot to CTRL+C before pasting ...
just noticed your edit. I think public logging of edit time would make a nice CP feature.
modified 17-Aug-22 21:29pm.
|
|
|
|
|
Calin Cali wrote: I think public logging of edit time would make a nice CP feature.
You mean like the "modified 20hrs ago." text at the bottom of the message?
"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!
|
|
|
|
|
Quote: You mean like the "modified 20hrs ago."
(only if you knew what you are talking about)
yeah, with a small font and in brackets.
modified 17-Aug-22 12:37pm.
|
|
|
|
|
Interestingly, if you use var it copes quite well.
If you use an explicit type, it doesn't suggest anything.
And now, a few minutes later it doesn't cope at all ... but the GetFruits example yesterday does ... VS has just updated itself, that may be the reason.
I'll try a shut down and restart of the whole PC to clear out any "old bits" it may still have running later.
"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 never had so much data that I had to be concerned with splitting my List<> objects. However, I have had a need for List<list<>> before because of the nature of the data. Think of the outer list being for all car manufacturers while each inner list is for each car model they make. Because of how my database data was structured, this made more sense at the time. I could have used linq to combine all car lists into a single list, but it wasn't necessary.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
Quote: Think of the outer list being for all car manufacturers while each inner list is for each car model they make
Yeah you could push that logic even further by making 'car model' a list on its own containing all the car model parts (for a car service shop use for instance). List in a list saves you sorting time but a list is just a container it doesn`t provide any clue about what`s inside other than it`s name so you need to keep a separate account about the list tree structure, levels if the tree is rather deep/complex.
|
|
|
|
|
I this thing does everything for you soon no knowledge of programing will be required to write a program.
|
|
|
|
|
There are plenty of people who already think that is true.
|
|
|
|
|
There are enough people trying to produce code without any knowledge or thought already: check out QA some day ...
"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!
|
|
|
|
|
The {get; set;} auto-complete is great, and yes, the prediction is 80% amazing and 20% annoying in my experience. And the annoying isn't too annoying.
dan!sh wrote: I really do not care about code quality. This is a one time use (quick or slow) and dirty utility. Well, in my experience, paying attention to code quality, no matter the requirements, always pays off. Converting the string to a char array and then iterating over it with a for loop is a bit like walking away from the pilot seat without setting the auto-pilot.
|
|
|
|
|
Perhaps you or someone else can explain this {get; set;} thing to me. There are times when having a getter is appropriate, but far fewer times when having a setter is appropriate. I'm surprised that they make it so easy to mindlessly provide one.
|
|
|
|
|
Greg Utas wrote: There are times when having a getter is appropriate, but far fewer times when having a setter is appropriate. I'm surprised that they make it so easy to mindlessly provide one. Agreed, however in the 99% of the cases that I work with, I'm either serializing/deserializing JSON or working with EF or Linq2SQL, both of which require setters on the model.
modified 16-Aug-22 11:52am.
|
|
|
|
|
Just add "private" in front of "set;". Then you can set the value internally to your class but not from outside the class. The getter would have the same access as the property itself.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
Now redo another block of code, but change "commas" in your comment to something else...then as you're typing the actual code, see if it picks up what your comment said as you're suggesting...
|
|
|
|
|
Yes it does! It does not figure what the new condition should be but it at least does not recommend checking for quote. I love VS. Mostly due to other IDEs I need to use.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
With the possible exception of auto-complete for method names etc., I distrust such suggestions. No IDE, irrespective of how much "AI" it is using, can truly understand my thought processes.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Is that a reflection of the state of AI, or your thought processes, I wonder.
Keep Calm and Carry On
|
|
|
|
|
Yes.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
im still annoyed with auto double quotes
have string need to setup, value from excel for example
var myString =
go and copy value and paste in
var myString = fancyLongvalue_that i dont want to type out
now need to wrap in quote
var myString = ""fancyLongvalue_that i dont want to type out
😒 type one double quote and gives me two, kinda like hidden clippy somewhere "oh you want string, take two"
ok, well delete the second, and move to end of line to add closing quote
var myString = "fancyLongvalue_that i dont want to type out""
😡fancy auto complete but still thinking I want a second quote when already warning with a bunch of error due to first quote
|
|
|
|
|
try selecting the pasted value and then type a double quote. Alternatively, first type the double quote and then paste.
|
|
|
|
|
I had to turn off a lot of the "assistance" in VS2019 because it was so visually noisy. Three and four tooltips displayed whenever you moved the cursor or the mouse. Countless icons in the left margin or at the end of each line of code. Grey, unreadable text displayed beneath identifiers. The suggested solutions are based on style and Microsoft conventions, which do not match our local practices. Tailoring the Microsoft settings does not appear to affect their complaints about how you code.
Yes, I'm an old bull and it's my version of yelling at the kids to "Get off my lawn!".
Software Zen: delete this;
|
|
|
|
|
Yes, another convenience that will allow developers to think less...
Steve Naidamast
Sr. Software Engineer
Black Falcon Software, Inc.
blackfalconsoftware@outlook.com
|
|
|
|
|
One line of "something predicted"?? Are you seriously make thing named "programming" or you just tap keys??
|
|
|
|
|
Mostly planning on the normal. Don't really want to celebrate this year.
In other news, my mom is home from the hospital and is on medication.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Excellent! And even more excellent!
I can understand the lack of birthday celebration, but I'm glad it all turned out well for you mother - so celebrate that instead.
"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!
|
|
|
|