Nathan Davies

6.5K posts

Nathan Davies banner
Nathan Davies

Nathan Davies

@nathj07

Hiker of hills. Runner of roads. Biker of mountains. Reader of books. Writer of software. Follower of Jesus.

Newcastle Upon Tyne Katılım Ekim 2008
285 Takip Edilen840 Takipçiler
Nathan Davies
Nathan Davies@nathj07·
@matryer As a follow-up, times where the struct isn't the best option I will use multi-line arg lists, but not one per line. E.g. in SQL commands I'll have the ? in groups of say 5, and then the params match up that number - 5 per line
English
0
0
1
73
Nathan Davies
Nathan Davies@nathj07·
@matryer Interesting idea. Personally I prefer the struct when the list gets long, say >4. I would then use custom types in the struct to add clarity if need be. I prefer this as optional args can be handled, and that can save a ton of time and still be clear.
English
1
0
0
142
William (Bill) Kennedy
William (Bill) Kennedy@goinggodotnet·
It's my 54th birthday today! I think with some Just For Men, I could look 45. 😂
William (Bill) Kennedy tweet media
English
73
1
246
16.4K
Nathan Davies
Nathan Davies@nathj07·
@Madhatter4u77 My answer then takes a similar path 😂. Yet if I listen to an answer as rambling and tangled as the ones I give, I lose focus and wish they'd get to the point
English
0
0
1
34
Nathan Davies
Nathan Davies@nathj07·
@odbol @FitFounder @girdley This is 100% what a staycation is. Thank you. The misuse of this term, for some irrational reason, drives me mad. If you vacate your home, it's a vacation. If you stay in your home, it's a staycation. Travelling & remote working is a fun idea, I plan on doing this in the future
English
1
1
26
865
odbol
odbol@odbol·
@FitFounder @girdley I thought staycation meant you stay in your home where you normally live, and spend the hotel+flight money you saved on doing fun local stuff like spas, amusement parks, etc
English
2
2
65
1.9K
Michael Girdley
Michael Girdley@girdley·
An old timer at my first job told me: “Never take 2-week vacations. Everyone just saves work for your return. Make it 3 weeks or more so they just take care of things without you.”
English
158
948
15.2K
1.5M
Nathan Davies
Nathan Davies@nathj07·
I'm loving the bullet that missed by @richardosman. The question is when will these marvellous stories be serialised? I would love to watch these. Come on @BBCOne you know you want to
English
1
0
0
51
Steve McWilliam
Steve McWilliam@DrSteveMc·
Me: Tomorrow we’re going to a swimming pool at a hotel [in Coventry] Youngest son: Is it fancy … or is it Welsh? Me: Errrr?! @nathj07 @James_Mo55
English
1
0
3
152
Spotify Status
Spotify Status@SpotifyStatus·
We’ve received some more reports and we’re looking into them. Thanks for the heads-up!
English
87
14
296
172.9K
Nathan Davies
Nathan Davies@nathj07·
Today's oddity is a cli tool that generates random .uuid files. I've no idea why, and there are no docs. But I do have to use this tool, and I definitely don't want these files
English
0
0
0
160
Nathan Davies
Nathan Davies@nathj07·
After a full day of editing yesterday, I've got my 2 hour talk down to 2 hours, with added interactivity. Now to get more practice in on it. One week till I deliver this session
English
0
0
0
51
Nathan Davies
Nathan Davies@nathj07·
Working on a 2hr teaching session. I've gone from "argh, that's a lot of time" to "argh, I need to cut 20mins". Let the editing begin
English
0
0
0
44
Nathan Davies
Nathan Davies@nathj07·
@pattyneta I've experienced this pain. It is real. It happened to me when I was staying in a hotel because a flight was cancelled. I was so tired, so fed up, and then couldn't use my Mac to buy a new hat to replace the one I lost in the airport. I believe I cried
English
1
1
3
756
Patty O'Callaghan
Patty O'Callaghan@pattyneta·
The little details that can ruin your day 🤦🏻‍♀️
Patty O'Callaghan tweet media
English
79
23
689
131.9K
Nathan Davies
Nathan Davies@nathj07·
@tlakomy I worked in a place where we used VFP6 and then VFP9. We didn't have a rule, but did tend towards a single return. It worked out pretty well there IIRC (this is 20yrs ago). Now I work in Go, & early returns are the best. In this language they improve the glanceability of the code
English
0
0
0
121
Tomasz Łakomy
Tomasz Łakomy@tlakomy·
The worst programming rule I ever saw enforced in a tech company was “every function can have only one return statement” Don’t do this folks, early returns are great!
English
131
57
1.6K
224.4K
Nathan Davies
Nathan Davies@nathj07·
@flowdev_org Yeah, context is key. I'm more concerned by the sort of "x desire is always a red flag" or "you must be doing y" type statements that never consider a different context.
English
0
0
1
14
Ole Bulbuk
Ole Bulbuk@flowdev_org·
@nathj07 The only 'polarising' statement I adhere to is: You must respect the context. Everything else is good advice only in some (possibly other) context. I think this is pragmatic. 😊
English
1
0
1
26
Nathan Davies
Nathan Davies@nathj07·
I see a good number of tweets about software design, redesign, refactoring, rewriting. But they tend to be very polarising. Either you must do x, or doing y is really bad. So black and white. Where is the pragmatism?
English
1
0
0
58
Nathan Davies
Nathan Davies@nathj07·
@uxthom Snacks like that I'll pop round and do some building
English
0
0
0
17