|
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!
|
|
|
|
|
Growing older sucks, but is better than the alternative.
Have some sort of celebration when your mother's recovery is complete.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Congrats and good news
The most expensive tool is a cheap tool. Gareth Branwyn
JaxCoder.com
|
|
|
|
|
Happy birthday!
Good news on your mother I guess.
|
|
|
|
|
Happy Birthday and wishes for your mom's recovery.
|
|
|
|
|
Have her tell the story of your birth and how much of a pain it was. Then thank her.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
|
Use your eagle's talons to create a Diary application or buy a Composition Note book
document all the great conversations you have with your Mom
Zack life can be made even more valuable by having a way to remember
as suggested have conversations with your Mom and my suggestion document those encounters
they will be comfort someday Which I hope is very far off in the future
Celebrate your Birthday from your Mom's perspective
|
|
|
|
|
how I got to Wordle 423, I have managed to return to India this morning to continue my rehab therapy.
In the US, the rehab technicians work 5 days a week and that too not effectively. I realized I could hire a personal therapist in India at a far lower cost so I left the US on Aug 14 evening and am in Chennai now.
|
|
|
|
|
Welcome back to India. Hope your rehab goes as per your expectation.
Have noticed that courier services like DHL also don't work on weekends in the US. Had sent a parcel to the US via DHL and it was stuck in transit for two days during the weekend. Not so in India.
modified 16-Aug-22 1:12am.
|
|
|
|