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.
Search
What does lifting state up in Flutter mean, and how does it work?
See Software recommendations category. Referring to my own answer there, I think these questions should only be on-topic in case the OP manages to narrow down the scope sufficiently. In case the qu...
I largely agree with existing answers, but wanted to add this: In many cases, there is no clear answer one way or the other. Take the program wc which counts characters and lines. Should the inter...
Some good options to consider: SQL create table as statements. This way you can define multiple tables all in one file, that can be copy/pasted easily. It also matches a very common thing: SQL e...
This article has a good explanation of lifting state up in Flutter. Let's say for example that we have a BlueSquare widget that displays the number of times it has been tapped. Each click on the...
I was able to find a solution that uses ConcurrentDictionary<TKey, TValue>, but it's a bit ugly. First, I amended the auto-generated classes in Reference.cs with a new property Guid Internal...
Codidact's Software Development has multiple tags for spreadsheet formulas: excel-formula libreoffice-calc-formula openoffice-calc-formula sheets-formula It has formula with the tag usage ...
When you think about how to organize your test code, you should develop an understanding of your goals. Typical goals about test code organization (which typically includes helper code only needed...
You can utilize grep's PERL regexes, more specifically lookarounds, to check presence of two (or more) words. $ grep -Prn . -e '^(?=.*\bfoo\b)(?=.*\bbar\b)' Here regex checks, that beginning of...
% is one of the oldest Python syntaxes for interpolating strings. It basically works like: template_string % data_tuple In fact, you can literally do that: >>> s = "%d %d" >>&g...
Here is a slightly different suggestion, that may avoid the problems with open ended book recommendations. Book lists? No I'm not entirely against opinion based questions, but I am against opinio...
I am writing a todolist application in WPF with MVVM. I display the goals in a datagrid and the editing works fine. Changes made in the grid are saved to the DB when I click save. However, adding a...
Entity Framework is able to save the changes by using a tracking mechanism (i.e. what is added, deleted, removed). I guess _repository.GetAllGoals() implementation is something like _context.Goals...
Looking for testimonials, so I'm going to self-promote. I had similar problems at work, and didn't like their homegrown solution. Well I mostly liked it, but I had some issues with it. Mostly, I ...
The script is read like this : SELECT * FROM `users` WHERE `gender`='Female' ORDER BY `birth_year` DESC LIMIT "take n rows" OFFSET "skip n rows" So when I wrote SELECT * FROM `users` WHERE `ge...
I tried to replicate your case and the only workable solution I could find is to use OnModelCreating configuration (fluent style) instead of attributes: public class Contestant { public int Id...
I have two classes, Contestant and Picture, with the following setup: public class Contestant { ... public int AvatarID { get; set; } [ForeignKey(nameof(AvatarID))] public ...
After removing eu.hansolo.tilesfx from the auto-generated module-info everything worked fine. It seems that tilesfx was dependent on the libraries that were "missing". I am not really sure why it w...
Answer from allejo (highlightjs contributor): In your language file, remove your empty Requires: line in the comment. After removing that, it should let you compile again. The comment is significa...
To be a "better" site with helping people learn and grow and figure things out for themselves (instead of only giving them the answers, ready to copy-paste), it is my wish the site offers more he...
(Full code available for cloning here) I've run into some odd behavior of EF-core's Find method. It seems like the returned entity doesn't include the rest of the data. MWE Models using Micro...
For example: I have noticed that this does not work for any vocabulary's tests. What is the alternate way to USE: these test vocabularies? EDIT: The test word appears to run all tests alongside...
I am currently using this code to display a GUI counter: USING: accessors arrays fonts kernel math math.parser ui ui.gadgets ui.gadgets.buttons ui.gadgets.editors ui.gadgets.labels ui.gadgets.pa...
From mrjbq7: The correct vocabularies for finding default actions are in Operations Web Browser for URL" markdown elements. Generally, looking for define-operation should work for finding t...
For a UI gadget like a $link in Factor, a click automatically opens the page that it points to. I want to know where this default behaviour is defined. In the factor documentation, there are many ...