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‭

41 posts
84%
+9 −0
Q&A How to align my content to the left?

If you remove the align="left" then it works fine. My best guess is that you put those in because you didn't want the image in the text flow, affecting the vertical positioning on the text. The ea...

posted 3y ago by Peter Taylor‭  ·  edited 1y ago by Peter Taylor‭

Answer
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 4y ago by Peter Taylor‭

Answer
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
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 4y 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 4y ago by Peter Taylor‭

Question java prime-numbers
77%
+5 −0
Q&A Conditions which always matches returns no result with CTE

Wrong operator. To test for NULL, use the IS NULL and IS NOT NULL operators ... You cannot use arithmetic comparison operators such as =, <, or <> to test for NULL.

posted 2y ago by Peter Taylor‭

Answer
77%
+5 −0
Meta Is this a good fit for Code Reviews, and if so, how to best post it?

This should perhaps be a comment rather than an answer, but I want to allow people to vote to indicate agreement or disagreement. "Complete code" doesn't necessarily mean an entire project. It mea...

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Code Reviews Is this HTML sanitizer safe?

Is there any disadvantage of doing it this way that I should be aware of? In general whitelisting is the best way to sanitise, but it does create important error classes, especially missing it...

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 4y 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 4y ago by Peter Taylor‭

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 4y ago by Peter Taylor‭

Answer
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 4y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A How do I configure log4net from an arbitrary data structure?

My assumption is that, internally, log4net loads its XML file into some data structure (maybe not a dict, but some equivalent of cfg_dict above) and then passes that structure to whatever code ma...

posted 3y ago by Peter Taylor‭  ·  edited 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A yyyy/mm/dd instead expected dd/mm/yyyy format in PHP-created-HTML output

The date is sent in the form submission in ISO 8601 format (year-month-day). You can reformat it in the form handler as follows: $input_date = $_REQUEST['cf_input_date']; if ($input_date) { ...

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 4y ago by Peter Taylor‭  ·  last activity 2y ago by Peter Taylor‭

75%
+4 −0
Code Reviews A simple game with pygame

Overall the structure seems sensible. Style It's Python style to have two blank lines after a function or method, not just one. You seem to be trying to line wrap before 80 characters. Maybe you...

posted 3y ago by Peter Taylor‭

Answer
75%
+4 −0
Meta Should we allow SEO related questions?

The scope currently lists as on-topic: Best practices, as long as clear "best" criteria are provided. Examples: fastest execution, least memory use, widest tool support for a target, most begi...

posted 1y 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 4y ago by Peter Taylor‭

Answer
75%
+4 −0
Q&A How to set FontFamily for an entire WPF application in a theme?

I have a project Anonymised.Theme which contains XAML resource dictionaries for a theme. This is used by about a dozen applications which simply include it by merging <ResourceDictionary Source...

2 answers  ·  posted 2y ago by Peter Taylor‭  ·  last activity 2y ago by aresavatar‭

Question fonts wpf theme
71%
+3 −0
Q&A Is this AES/CBC scheme, where the IV does not need to be known during decryption, insecure or does it have any other disadvantages?

However, the last variant has the advantage (at least in my opinion) that the condition The IV of the encryption is required for decryption is eliminated. It isn't really. It's just generated ...

posted 3mo ago by Peter Taylor‭

Answer
71%
+3 −0
Code Reviews Health checks with caching in ASP.NET Core

private readonly int _checkInterval; What are the units? I have to search for usages to find out. I strongly favour using TimeSpan instead of int. private static readonly SemaphoreS...

posted 2y ago by Peter Taylor‭

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

I decided to tackle this again via the route of creating a new solution project-by-project, and this time the configuration manager actually did something useful. Specifically, it added a property ...

posted 2y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A Why object-oriented instead of class-oriented?

I understand that in object oriented programming, an object is an instance of a class. Not necessarily. JavaScript famously supported object-oriented programming but did not support classes un...

posted 3y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A What's the better way to store base64 in SQLite Database?

The question seems to show a certain level of confusion about terminology. I shall address what I believe to be the underlying question: How can I store binary data in SQLite? SQLite supports 5 da...

posted 3y ago by Peter Taylor‭

Answer
71%
+3 −0
Q&A Credentials for multiple tenants with Azure.Identity

Situation: I have an Azure account which has management permissions for various subscriptions in various directories (tenants). I have a GUI tool to do various management tasks whose details are ir...

0 answers  ·  posted 3y ago by Peter Taylor‭