Peter Morris Profile Banner
Peter Morris Profile
Peter Morris

@MrPeterLMorris

Followers
2,880
Following
549
Media
1,976
Statuses
30,937

C# - Author of Fluxor and - Opinions are believed to be correct otherwise changed. Married to the spectacular @lyndor

Joined July 2020
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@MrPeterLMorris
Peter Morris
2 years
#Blazor #DotNet *Note: Don't misread "expansive", it's free :)
Tweet media one
8
37
188
@MrPeterLMorris
Peter Morris
6 months
@ForWomenScot If he thinks that hurt, he should try having endometriosis!
18
46
933
@MrPeterLMorris
Peter Morris
7 months
@jk_rowling Labour canvasser visited my house a couple of days ago LC: Will you vote labour? Me: No LC: What do we need to do to change that? Me: Kier needs to say if he thinks males can be women or not. LC: Well, I don't want to take up too much your time. Leaves
25
43
726
@MrPeterLMorris
Peter Morris
2 months
@jenstirrup A place I worked had a digitally altered photo on the wall of a topless woman with Natalie Umbruglia's face on. Another room not only had a topless calendar, they pulled it apart and stuck every page on the walls. My wife @lyndor and I complained.
11
6
491
@MrPeterLMorris
Peter Morris
1 year
I've been programming for 38 years. I don't know what's wrong with your printer.
27
45
473
@MrPeterLMorris
Peter Morris
4 months
@afneil 1: Accept 2: Turn up 3: Wait for Charles to start doing his thing 4: Walk away
46
9
363
@MrPeterLMorris
Peter Morris
7 months
@housecor startLoadTabIsActive startLoadTabHasErrors endLoadTabHasErrors bool mayProceed => startLoadTabIsActive && !startLoadTabHasErrors && !endLoadTabHasErrors; Much better.
11
1
319
@MrPeterLMorris
Peter Morris
5 months
Hands up if you think the newest version should be at the top :) @mkristensen
Tweet media one
30
8
283
@MrPeterLMorris
Peter Morris
2 months
If you think your monolith is a problem, wait until you've split it up into micro-services :D
22
30
274
@MrPeterLMorris
Peter Morris
5 months
@RichardJHolmes @afneil AF Neil was excellent. It was by far the most enjoyable Question Time I've seen in many years. Someone unapologetically saying what is true rather than wishy washy sound bites to get applause from the audience. Come back soon!
13
12
255
@MrPeterLMorris
Peter Morris
1 year
I don't use controllers, and I don't manually map my endpoints. The endpoints are determined with a reflection scan over my contracts library and registered automatically. This code register all of my API endpoints. TODO: api.MapGet when the contract is a query. #AspNetCore
Tweet media one
20
36
225
@MrPeterLMorris
Peter Morris
2 years
@janeclarejones I'm still waiting for the embryologist @pzmyers to clarify whether or not he thinks trans-women are females. He seems reluctant to answer.
2
8
196
@MrPeterLMorris
Peter Morris
2 years
I think a great new feature idea for Twitter would to add "(Not dead)" after people's names when they trend :) Billy Connolly (Not dead)
8
32
213
@MrPeterLMorris
Peter Morris
6 months
Yay. They offered me the job. I start on Monday :)
@MrPeterLMorris
Peter Morris
6 months
Just had an interview for a contract position where I'd be giving an overview of a new system design + development, and mentoring junior programmers. How cool does that sound? Two of my favourite things!
10
1
60
27
2
205
@MrPeterLMorris
Peter Morris
3 months
TIL: If you have ASPNETCORE_ENVIRONMENT set in your computer's environment settings, it will override the explicit value in launchSettings.json That cost me about 5 hours of my life! #aspnet #dotnet
21
30
200
@MrPeterLMorris
Peter Morris
2 years
@RmSalih Why are gods always so powerless that they need humans to do their punishing for them?
4
9
160
@MrPeterLMorris
Peter Morris
4 months
@Docstockk @NewStatesman "she has liked a post from a far-right account on Twitter" Sometimes, people I don't like say things I like. I like dogs. Hitler liked dogs. Therefore I like Hitler.
10
6
172
@MrPeterLMorris
Peter Morris
22 days
What is your child's human name? What is your dog's dog name? What is your phone phone number? What is your house's house address zip code zip code?
Tweet media one
22
19
170
@MrPeterLMorris
Peter Morris
8 months
@IanColdwater After working as a programmer for about 25 years, I deleted prod. And this was how we discovered our backups were not working.
9
7
163
@MrPeterLMorris
Peter Morris
1 year
Tweet media one
8
15
160
@MrPeterLMorris
Peter Morris
2 years
"There is no climate emergency" Climate changes over time but here is the important fact. It has never changed so quickly! I've hit a few walls with my car, but always at about 2 miles per hour. When heading into a wall at 60, I wouldn't say "Meh, I've hit walls before!"
17
16
151
@MrPeterLMorris
Peter Morris
2 years
@MasonIsBloo @atothe_d @drasticactionSA Thanks! I see the list of "offences" in Saudi Arabia to get you beheaded includes A) What you believe B) Who you love C) What you say So "just don't do those things" essentially means "just don't be human"!
7
2
136
@MrPeterLMorris
Peter Morris
2 months
5 reasons not to do this. 1: More code to write. 2: More prone to mapping errors. 3: No automatic unit tests to detect those errors. 4: Unable to use them as projections in LINQ queries (eg EF Core to DTOs). 5: Believe it or not, often slower!
@julioc
Julio Casal
2 months
5 reasons why a simple C# extension method beats AutoMapper most of the time: 𝟭. 𝗦𝗶𝗺𝗽𝗹𝗶𝗰𝗶𝘁𝘆 Write what you need, and only what you need. Extension methods allow for precise mapping without additional configuration overhead. 𝟮. 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 No reflection,…
Tweet media one
24
39
296
36
11
141
@MrPeterLMorris
Peter Morris
1 year
@rickygervais Not one of those dinosaurs!
Tweet media one
2
0
133
@MrPeterLMorris
Peter Morris
1 year
I've written up the steps required to create an hosted #Blazor WASM app, and how to authenticate it with Azure Active Directory (multitenant).
13
25
130
@MrPeterLMorris
Peter Morris
2 years
@neilhimself I find this a useful tool for when people say things like "My uncle got hit by a bus and they said he died of Covid"
4
25
122
@MrPeterLMorris
Peter Morris
2 years
I'm a C# developer with nearly 25+ years experience (nearly 20 in #dotnet ) and I am looking for UK contract work starting in Jan. A retweet would be much appreciated! Some of my work And I am the author of #CSharp #Azure
11
153
115
@MrPeterLMorris
Peter Morris
1 year
I've been programming in C# for 19 years. TIL I can do this
Tweet media one
20
8
113
@MrPeterLMorris
Peter Morris
4 months
@JamesEsses @NSPCC Why does NSPCC even have a forum? Vulnerable children should ONLY be able to contact trained professionals, in private. They should not facilitate vulnerable children talking to anonymous members of the public, who could be sex offenders preying on them.
3
14
111
@MrPeterLMorris
Peter Morris
4 months
@bindelj JK Rowling is nasty (probably a nasty witch) because her fictional novels involve wizards being killed with magic wands? I think someone struggles to differentiate between fantasy and reality. Is @NewStatesman 100% satire now then?
2
4
109
@MrPeterLMorris
Peter Morris
2 years
I didn't know it was so easy to parse C# into a syntax tree. This will come in handy! Thanks @KirillOsenkov for
Tweet media one
5
15
109
@MrPeterLMorris
Peter Morris
10 months
I realised today I don't read other people's code very much. Can anyone recommend any github projects with source code that is interesting to read?
17
5
108
@MrPeterLMorris
Peter Morris
8 months
Every youtube programming video thumbnail ever.
Tweet media one
8
7
96
@MrPeterLMorris
Peter Morris
1 year
@RayyaGhul Does that mean it's okay for me to physically stop you from watching something at a venue of your preference simply because you can watch it at home?
3
2
91
@MrPeterLMorris
Peter Morris
5 months
@boysvswomen @nwlc Because it's statistically more likely that a male will win. Sport is about celebrating the exceptional within a class, not losing to the unexceptional from another class. It's why featherweights don't box against heavyweights.
5
4
89
@MrPeterLMorris
Peter Morris
6 months
If you've ever not understood ConfigureAwait, now there is more for you to not understand :)
3
10
94
@MrPeterLMorris
Peter Morris
2 years
C# quiz: Look at the picture in the following tweet, and answer this question. What will you see at debug time if you hover the mouse over the ids variable? #CSharp #dotnet
Uninitialized
210
null
1270
Length = 0
653
Just show me the votes!
847
1
25
92
@MrPeterLMorris
Peter Morris
2 years
@KyivIndependent I remember after WWII the allies made Germans walk around the execution camps to see the harm their inaction had caused. That.
4
13
89
@MrPeterLMorris
Peter Morris
6 months
#Azure question What is the benefit of creating a Web API project over an Azure Functions project with HttpTriggers in it? @shanselman
53
8
89
@MrPeterLMorris
Peter Morris
3 months
Apparently, Co-Pilot recommends use of my website :)
Tweet media one
9
4
88
@MrPeterLMorris
Peter Morris
2 years
@TheBloodWeapon I'm short, fat, and bald. How dare women discriminate against me based on my body. Do they not know how much it hurts to be told I am not attractive enough to be inside them? Surely society should make them feel bad, so they are coerced into having sex with me? #RapeCulture
3
4
83
@MrPeterLMorris
Peter Morris
2 years
@BluskyeAllison My daughter has multiple text messages from her ex-boyfriend admitting he raped her, and still the CPS thought it wasn't worth pressing charges because the jury wouldn't understand rape within a relationship. Rapists don't need more ways of staying out of prison!
4
15
80
@MrPeterLMorris
Peter Morris
2 years
@LBC @AndrewCastle63 @DebbieHayton OMG, that closing statement about black people just shows what a fantascist Kate is!
3
0
75
@MrPeterLMorris
Peter Morris
2 years
@ChristosMatskas Marketing interviewer: What is a linked list. Successful candidate: Blockchain, that is going to make everyone rich enough to go to the Moon.
1
0
80
@MrPeterLMorris
Peter Morris
1 year
still going strong :)
Tweet media one
6
7
78
@MrPeterLMorris
Peter Morris
1 year
Monolith or microservice? I'm tired of this question, so I'm going to invent "Micronolith"
25
5
75
@MrPeterLMorris
Peter Morris
1 year
Regarding object => query string, I went with this...
Tweet media one
11
8
78
@MrPeterLMorris
Peter Morris
2 years
UI => WebApi => CQRS => AutoMapper => EntityFramework Too much work for CRUD!
17
12
77
@MrPeterLMorris
Peter Morris
4 months
@Shayan86 The film nobody has ever seen but definitely exists, because the people who've never seen it were told first-hand by people who've actually never seen it.
2
0
74
@MrPeterLMorris
Peter Morris
2 months
Want to know what's more difficult than writing thread-safe code? Writing unit tests to prove you succeeded :)
5
2
73
@MrPeterLMorris
Peter Morris
2 years
@CFDevelop @katherinecodes The skill of quickly mastering new skills.
7
3
68
@MrPeterLMorris
Peter Morris
11 months
Blazor tip: Have a look at Blazor Fluent UI, a #Blazor implementation of the Microsoft FAST browser controls. There is a new Gitter channel too, please RT then come and join us :)
3
24
72
@MrPeterLMorris
Peter Morris
7 months
@OwenJones84 What would you do if a group of people near you started shouting "Death to Jews"? Would you leave?
2
1
65
@MrPeterLMorris
Peter Morris
2 years
Dear C# I want this: type CustomerId = Guid; type UserId = Guid; type PhoneNumber = string;
16
3
62
@MrPeterLMorris
Peter Morris
7 months
My dad used to be a train driver. I didn't want a job like his because it involved so much reading when he was at home. Look at me now, swotting up before looking for a new job :D
Tweet media one
5
2
63
@MrPeterLMorris
Peter Morris
3 months
No programmer is "self taught". You may not have had a formal education, but you were still taught by other programmers via books/blogs etc.
15
8
62
@MrPeterLMorris
Peter Morris
2 years
@LBC @AndrewCastle63 @DebbieHayton "Where are these record winning trans women? There aren't any!" And then goes to name one.
4
1
62
@MrPeterLMorris
Peter Morris
4 months
@marcusdiazcom @DrJessTaylor Rapists rape women when they have the opportunity. It's the power they are excited by, not how nicely the target has done her hair that night. They don't think to themselves "Marcus wouldn't fancy this one....I'll wait".
2
1
61
@MrPeterLMorris
Peter Morris
7 months
My 58 year old brother just died. Just like my 50 year old friend who died a few years ago, he had diabetes and didn't look after his body. If you have diabetes, look after yourself properly!
23
0
62
@MrPeterLMorris
Peter Morris
6 months
Just had an interview for a contract position where I'd be giving an overview of a new system design + development, and mentoring junior programmers. How cool does that sound? Two of my favourite things!
10
1
60
@MrPeterLMorris
Peter Morris
10 months
I can't believe that after years of coming to the conclusion that the server should send data for the SPA to render, people are now going back to sending html snippets instead. Data + format in one response.
21
4
61
@MrPeterLMorris
Peter Morris
2 years
@atothe_d @drasticactionSA What rules get you beheaded???
6
3
58
@MrPeterLMorris
Peter Morris
1 year
If you agree, go and vote => #Blazor #VisualStudio #CSharp
Tweet media one
18
18
58
@MrPeterLMorris
Peter Morris
6 months
My current contract is mentoring employees and offering app development guidance on a greenfield project. One employee just told me "I am learning a ridiculous amount of new things, and I am very confident I know how to use them!" That felt great, I am so happy :)
6
0
58
@MrPeterLMorris
Peter Morris
2 months
A couple of people have said they doubt that manually written mapping code can be slower than AutoMapper. See the linked gist for proof.
25
6
59
@MrPeterLMorris
Peter Morris
1 year
I quite like this approach!
Tweet media one
17
2
57
@MrPeterLMorris
Peter Morris
1 month
@jody_lecompte @JustinianCodes I just the opposite problem. He didn't have line numbers displayed, and I couldn't point at the screen because he kept holding my hand ...and I only have one arm.
2
0
56
@MrPeterLMorris
Peter Morris
2 years
Did you know rendering a #Blazor component will force a re-render of children it passes parameters to? If you have a deep-nested component you need to pass a value to, don't pass parameters all the way down. Use a CascadingValue, then only components consuming it will re-render.
2
15
57
@MrPeterLMorris
Peter Morris
2 years
Did you know... All #Blazor markup is a RenderFragment. RenderFragments are transpiled to C# code. This means that instead of a huge if {} else {} statement, you can call `return` to stop any further rendering?
Tweet media one
7
11
55
@MrPeterLMorris
Peter Morris
1 year
Today I learned I am not good enough at #Blazor
Tweet media one
14
2
55
@MrPeterLMorris
Peter Morris
6 months
@bunch0numbas @SenPaterson All the Jews are guilty for the actions of any single Jewish person. Doesn't it sound earily familiar?
9
2
50
@MrPeterLMorris
Peter Morris
2 years
@DamselflyPhotos @OnGraph It wasn't even honest back then either. They compared the number of IDEs available for Java to how many are 'the official one' for Visual Studio.
0
1
52
@MrPeterLMorris
Peter Morris
2 months
How many JavaScript developers does it take to change a lightbulb? 1, and 234 dependencies.
5
3
55
@MrPeterLMorris
Peter Morris
5 months
Dear @elonmusk I will pay your subscription fee if you can get rid of all the prostitutes in my time line.
18
5
54
@MrPeterLMorris
Peter Morris
2 months
So what is Microsoft recommending these days for server-side HTML development? MVC? Razor Pages? Blazor Web App? @andrewlocknet @ardalis
26
4
55
@MrPeterLMorris
Peter Morris
10 months
TIL: When you have task manager open and can't right-click an app because it keeps moving around, you can hold CTRL to stop them moving.
5
9
55
@MrPeterLMorris
Peter Morris
6 months
I use MediatR to avoid services like EntityXService etc. Do you? If so, what approach do you take when two different handlers need to execute the same code? Introduce a service for the shared code?
31
5
53
@MrPeterLMorris
Peter Morris
2 years
@RichardDawkins PZMyers has recently said woman who don't produce ova aren't strictly female. I'd like to see Richard discuss that topic with him :)
20
0
54
@MrPeterLMorris
Peter Morris
2 years
REST is not good for complex business apps. Change my mind :)
19
4
53
@MrPeterLMorris
Peter Morris
2 years
@PennyRed I'm in none of those camps, but I'll object to any law that gives males access to female-only facilities/privileges, because they are there for good reasons.
2
1
51
@MrPeterLMorris
Peter Morris
6 months
@Inkintheskin @sharrond62 She did very well against him but, ultimately, you could see the power imbalance a mile off.
1
1
51
@MrPeterLMorris
Peter Morris
2 months
Great news. The damage to my retina is a tear, it is not detached. That means the short 10 minute laser treatment should suffice and no invasive surgery will be needed!
5
0
53
@MrPeterLMorris
Peter Morris
1 year
This Blazor IDE written in #Blazor has so many features. @Telerik @EdCharbeneau
3
9
52
@MrPeterLMorris
Peter Morris
10 months
@WomenReadWomen I was very effeminate as a boy. I only found "girl things" interesting, I hated being a boy - until my late teens I often fantacised about cutting off my penis. I had gender dysphoria pretty bad. As I went through my 20's my body developed late, and it went away.
3
9
45
@MrPeterLMorris
Peter Morris
2 years
@pakiahkoi @RichardDawkins It's only relevant when the attacker attributes it as their motivation.
4
0
44
@MrPeterLMorris
Peter Morris
4 months
@MForstater It's no-debate mantra realised as social actions There is "no debate" because they have no logic basis on which to base their beliefs 1: Insist truth 2: Insist no debate 3: Enforce no debating Also known as, blasphemy, except it's an offence against men's feelings, not "God's"
1
6
51
@MrPeterLMorris
Peter Morris
2 years
@memneon @TabitaSurge Hi. Could you provide a link to the medical research you are referring to? Thanks.
0
0
51
@MrPeterLMorris
Peter Morris
2 years
@Docstockk @prospect_uk If someone is unwilling to put their claims up for scrutiny, it's usually because they won't stand up to it.
0
1
47
@MrPeterLMorris
Peter Morris
2 months
Agile: When the customer doesn't know what they want, but they know when they want it.
2
4
48
@MrPeterLMorris
Peter Morris
10 months
@bindelj I agree. With a bottle of formula milk he could satisfy the volumetric needs of the baby, but not like this. There is only one person's needs being satisfied here.
5
1
48
@MrPeterLMorris
Peter Morris
5 months
2
0
46
@MrPeterLMorris
Peter Morris
10 months
I deleted my tweet about sending back my wide screen monitor. It's tiring saying that I was physically unable to see as far as the outer edges, and having people telling me my problem was the way the apps were laid out, or that my assembly table doesn't make a good work desk.
17
1
48
@MrPeterLMorris
Peter Morris
2 years
@nickchapsas I've always disliked the way typecasting is formatted. In Delphi you could do this SomeClass(someObject).MethodOnSomeClass(); In C# ((SomeClass)someObject).MethodOnSomeClass();
4
0
45
@MrPeterLMorris
Peter Morris
2 years
@WomensRightsNet @newlook Dear @newlook do you allow male rapists into your female-only changing rooms? If not, could you please let us know how you tell them apart from males who aren't rapists? We've been looking for a way to do that for years! Many thanks. The Police
7
7
45
@MrPeterLMorris
Peter Morris
3 months
TIL: If I pay to use the ChatGPT API I can upload documents for it to learn from. So I'm uploading all of my purchased e-books as a knowledge base for my private access :)
Tweet media one
8
4
46
@MrPeterLMorris
Peter Morris
1 year
Does someone have a better implementation they can share to serialize an object into a querystring?
Tweet media one
16
4
46
@MrPeterLMorris
Peter Morris
2 years
#bbcqt I've been a professional programmer for about 28 years. I've worked for the Department of Education being paid nearly £500 per day. But if I wanted to teach IT I'd need years of training, a degree, and a massive pay cut. No wonder there is a teacher shortage. Pay more!
2
11
45