Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Posts by Peter Taylor‭

39 posts
81%
+7 −0
Q&A Update list based on presence of identifier in a second list

This can't be done with the standard library. It's quite common for people who want to do this to define their own extension method public static void Foreach<T>(this IEnumerable<T> it...

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Q&A F-bounded polymorphism, interface operators, and type inference in C#

C# language version 8.0 introduces limited support for static methods, operators, etc. in interfaces. However, there are still limitations. I was hoping to use the new language features to try a ge...

0 answers  ·  posted 3y ago by Peter Taylor‭

75%
+4 −0
Q&A Declaring interface members with generic return types: "The type parameter [generic type] cannot be used with type arguments"

The short answer is that it can't be done. C# doesn't support type functions. https://github.com/dotnet/csharplang/issues/339 is probably the issue to follow if you want to track their progress. W...

posted 3y ago by Peter Taylor‭

Answer
80%
+6 −0
Q&A Interpreted language: What is its benefit for being written in that way ?

Interpreters are easier to write than compilers. For this reason esoteric and toy languages are often implemented by interpretation. But the dichotomy between interpreted and compiled languages is...

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Code Reviews C# MVVM Login Project

<Window x:Class="Login_App.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns...

posted 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A How to define custom configurations in new-style .csproj?

Problem I'm trying to update some projects from old-style .csproj: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.mi...

1 answer  ·  posted 3y ago by Peter Taylor‭  ·  last activity 2y ago by Peter Taylor‭

84%
+9 −0
Meta Do we need the fullstack tag?

To whether the tag is useful: no. It's useful for tagging people ("this person does frontend and backend") but not questions. I don't see the point of adding "do not use": just delete the tag, whi...

posted 3y ago by Peter Taylor‭

Answer
33%
+0 −2
Q&A How can I write an egrep (grep -E) regexp that matches lines containing two stanzas in arbitrary order?

This doesn't answer the question in full generality, but the assumption made seems reasonable to me: match lines containing (x1=y2;|c5=c6;) twice. I.e. ^(([^;]+; )*(x1=y2;|c5=c6;) ?){2}

posted 3y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A How to make Microsoft.Build.Evaluation.Project use same base properties as Visual Studio?

By forking MSBuildLocator and basically just removing the #ifdef it's straightforward to list the available VS instances. It even works to register one, although if you want the same application to...

posted 3y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A How to make Microsoft.Build.Evaluation.Project use same base properties as Visual Studio?

Microsoft.Build.Evaluation.Project seems to have some rather odd ideas of what values to use when loading projects. In particular, I have a number of projects with the following dependency: <Pa...

1 answer  ·  posted 3y ago by Peter Taylor‭  ·  last activity 3y ago by Peter Taylor‭

60%
+1 −0
Meta What is the point of tagging a question with both a parent and a child tag?

Tags also serve for someone who stumbles across the question directly from a third party link to find related content. Perhaps the child tag would suffice if the parent tag is automatically inserte...

posted 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Code Reviews PHP script to create a KML square centred on a point.

echo "Enter Latitude\n"; $handle = fopen("php://stdin", "r"); $lat = deg2rad(trim(fgets($handle))); fclose($handle); echo "Enter Longitude\n"; $handle = fopen("php://stdin", "r"); $long = deg2rad(...

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Code Reviews Improved Atkin-Bernstein sieve for generating primes

This is a class from my personal code library, and from a package which deals with integer sequences. It implements an interface package org.cheddarmonk.math.sequence; public interface IntegerSequ...

0 answers  ·  posted 3y ago by Peter Taylor‭

Question java prime-numbers
77%
+5 −0
Q&A Is it recommended for ASP.NET Web API actions to always include a CancellationToken?

A cancellation token doesn't inherently do anything. It's up to the code which does the work to call ThrowIfCancellationRequested. If the token isn't passed on and isn't explicitly checked then the...

posted 3y ago by Peter Taylor‭

Answer