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 r~~
The term is cultural, not technical. From Wikipedia: There is no standard for defining the term, and some difference of opinion is possible as to the degree to which a given operating system or ...
Python doesn't support extending the mechanics of how f-strings are parsed; the reference doesn't give the specific mechanism, but it doesn't say that there's any connection between the parsing of ...
It's because of this rule: *{ background: rgb(3, 28, 87); } That applies the darker blue background to every element individually, and that isn't overridden when you change the background o...
For writing pseudocode? No. BNF is a notation—in practice, a family of similar notations, like how Markdown is a family of similar markup languages—for defining grammars. In software development a...
‘This language doesn't have types’ and ‘This language only has one type’ are English sentences that communicate the same underlying concept: a typeless language doesn't have a way to distinguish ca...
Your code is correct. You have declared your variable as an array, and you are successfully appending to it. To display all of the elements of your variable, try echo "${my_array[@]}". (Another an...
There are a few reasons for wanting to move computation closer to data. One is performance, which you've mentioned. Another is security. Databases enforce their own security boundary, and data that...
In my opinion, all of the downsides boil down to two objections: It isn't idiomatic (in C# and VB.NET) It's slightly less performant The fact that it isn't idiomatic means that, as you note...
Compilers raise many errors other than syntax errors. A compiler can act as a language server and expose all of the errors it raises through that interface. Not many compilers do this yet, but in ...
See this comment: https://forum.qt.io/topic/60546/qpushbutton-default-windows-style-sheet#3 Stylesheets are a totally different beasts. The default native drawing doesn't use stylesheets. They ...
fn x [] = [] means that if the second argument to fn is an empty list, return an empty list. fn x (True:ys) = x : fn x ys means that if the second argument to fn starts with True, return a list th...
From the command line, the following command will give you a list of all authors who have made local-only commits to a branch some-branch: git log some-branch --not --remotes --format="%an" And...
It's entirely possible that there's some no-code product being developed out there that supports connecting to Reddit's API, so that you could collect the information you want without writing an ac...
This looks like it's a slightly restricted version of the circular dilation minimization problem in the theory of graph drawing. See, for example, https://doi.org/10.1080/00207168808803629. Specif...
I propose adding, at the top of the list: On-topic questions about writing software, where software is understood to include any means of specifying to a computer actions to be performed later. (...
This error doesn't do a good job at all of highlighting the important thing! You can't define an inherent impl on a type parameter. You have to make it the impl of some trait. Here's an example: Tr...
There is no fixed number of days in a MONTH interval. DATE_SUB is mostly just decrementing the number in the months position of the date provided. So DATE_SUB('2020-09-14', INTERVAL 3 MONTH) is '20...
I remember reading @meriton's comments on that question and thinking they were good feedback; if I hadn't seen them there, I would have written something similar. This is also an argument against ...
You very likely have a pathlib Path (or PurePath) object there. pathlib overrides the division operator to perform platform-aware path appends. >>> import pathlib >>> pathlib.Pa...
if(typeof(var) !== 'undefined' || typeof(var) !== null || var !== ''){}else{} is a wild thing to write for anything other than a variable that takes either undefined, null, or a string as possib...
No, you can't use and for this. In Python, a and b always, always, always means b if a else a. It cannot be overridden and cannot mean anything else. Likewise not, and any other boolean keywords, ...
pushRemote is not exclusive to gh. From man git-config (or the documentation website): branch.<name>.pushRemote When on branch <name>, it overrides branch.<name>.remote f...
You could trivially create a view that wraps the media table and includes a column that indicates if the media entry has more than one file associated with it. CREATE VIEW IF NOT EXISTS "media_rea...
There's one big difficulty with the proposed pattern. Enum instances are singleton instances of their particular class, and in general two enums from different classes are not equal even if they wr...
Switching from HTML to Markdown to minimize risk of HTML injection doesn't make a lot of sense to me, since most Markdown implementations support a subset of HTML inline anyway. The better ones con...
