|
I kind of like it in this case! If you're only assigning things passed in via the constructor I don't see a ton of value in spacing things out.
But I think it's a matter of using expression bodies in the right place and not overdoing it. I often see Visual Studio suggesting I switch to an expression body and when I try it, the code ends up uglier. I think they're useful when they enhance readability, for example in indexers or property getters and setters:
public string this[int i]
{
get => types[i];
set => types[i] = value;
}
or
public string Name
{
get => locationName;
set => locationName = value;
}
|
|
|
|
|
I'm hoping it not a long term trend, or the debugging tools have to get better.
I can put a break on a function and inspect the variables as I step through the code, it gets a little trickier on expression bodies especially when working with large collections or arrays
I like the cleanliness of expression bodies, but at the same time sub expressions do tend to muddy up the readability.
Someone correct me if I'm mistaken, but once the code is compiled a expression body just gets translated into a function (like) code structure which is just a jump to address and then return as seen by the processer. I'll admit I've not looked into what happens too much under the hood with expression bodies in dotnet.
|
|
|
|
|
Pest = nuisance
losing a point = is
Nuance = variation
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Well, that explains why I didn't get it ... well done!
"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 was beginning to think everyone was offline
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Not in my case, just my IQ ...
"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!
|
|
|
|
|
pkfox wrote: losing a point = is
That bit's got me beat!
|
|
|
|
|
losing (get rid of)
a I
point S
I only got it after the solution was published as well.
"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!
|
|
|
|
|
A compass point, i s, very common in cryptic clues
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
That bit I got, it was the I that was confusing me. Are we using it as a "1"?
|
|
|
|
|
Nope, "a" item == "one" item == "I" item.
"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 was, but you can also read it as OG did
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I've now invested $2500 into my PC and it's about to be a MONSTER.
It's a year old.
By Thursday here are the specs (actually by later today except for the keyboard)
Ryzen 7 8 core
32GB of RAM
RTX 2080ti video
55" 4k screen/smart TV
7TB of storage, 2TB of which is NVMe
Mechanical "smart" keyboard
1000 watt power supply
I am so happy with it. Thank you CUKUSA.com too for making great barebones systems at really good prices.
This is the first time in as long as I can remember that I am not wanting to upgrade something. It's all more than I need right now.
Real programmers use butterflies
modified 20-Dec-21 4:52am.
|
|
|
|
|
Explains very well why you dislike spending money on cars
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I just don't see the point in going into debt over a rolling liability when the typical American keeps their car for for an average of 5 years
Real programmers use butterflies
|
|
|
|
|
That's weird; I'm next to the window and suddenly realize that a lot of the cars coming by are "not completely paid". I always imagined looking at wealth, but most often it is debt?
Also, 7 TB. I'm afraid to ask what you're planning to do with that. I got a lot of games and my 1TB drive isn't even halfway.
My current machine is a year or two; more a gaming-machine then dev-pc. The GPU has 2 Gb of memory for itself. Doesn't help a bit in VS, but graphics and performance for games went up, a lot.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
My old card has 3GB. My new one has 11GB I think? But then I've spent $700 now on video cards since I bought the thing, some of which I'll recoup by selling by GTX 1060 on E-bay. I can probably flip it for more than I bought it for in today's market.
As far as the 7TB it was more of an accident. I replaced the 0.5TB NVMe drive that the machine shipped with a 2TB NVMe. That bumped my total storage up to 5GB, because the machine came with a 3TB HDD (even though they advertised 2TB ). Then I have a 2TB drive from an old machine that has important stuff on it, and rather than transfer it over and pray I didn't forget anything, I just installed the whole drive into my tower. It's linux but I have a tool to pull files from it in windows.
Real programmers use butterflies
|
|
|
|
|
The car payments are usually factored into the monthly bills forever. Some people prefer to lease and then just turn it in. I like paid for cars. My Sequoia is such a solid vehicle, I'd have no problem spending 2-3K in rebuilding the transmission should it EVER go. I priced new Sequoias - 80k and up. Not even reasonable.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I never had a car; not allowed to drive
First thing I found after quick search was trees, of course. Looks like a nice one. I'd imagine you'd be rather safe in there if a European car hits you
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: I got a lot of games and my 1TB drive isn't even halfway I only have two games (Classic Windows Solitaire and Mahjong Titans), and yet my 1TB has 700GB used.
Of course I have to admit that 165GB of that is pictures, and 100GB music .
Software Zen: delete this;
|
|
|
|
|
Warcraft.
D3.
HotS.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Looking at my 2007 Sequoia (which will never be traded) and my 2005 Honda CRV (which will never be traded).
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Looking at my 2006 Toyota, which will be sold while still running so I don't have to pay to get rid of it.
Real programmers use butterflies
|
|
|
|
|
Looking at my 2022 Bolt EUV which will be returned in October 2024 when the lease ends; I typically buy but figured that a) technology for EVs is changing rapidly right now and b) there was too much I didn't know about EVs to make a long term decision on one. Now I have a better grasp on what I want in my next EV, which is likely to be the last vehicle I'll ever buy.
The Bolt replaced a 20 year old F250, that wasn't being used as a truck much anyway, and an 11 year old Smart ForTwo, which needed too much work at Mercedes dealer rates to be worth keeping.
|
|
|
|
|