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.

Activity for toraritteā€­

Type On... Excerpt Status Date
Edit Post #291325 Post edited:
18 days ago
Edit Post #291325 Post edited:
19 days ago
Edit Post #291325 Initial revision 19 days ago
Answer A: What determines where the focus goes back to when clicking on a browser's back button?
Short answer The HTML specification only addresses scroll position restoration behavior, so the main factors that influences where focus will land when navigating the browser history are: user agent implementations JavaScript accessibility attributes browser extensions At the moment, ...
(more)
19 days ago
Edit Post #291296 Post edited:
24 days ago
Edit Post #291298 Initial revision 26 days ago
Answer A: How to merge Django model query results?
Just found the How Can I Combine Two or More QuerySets in a Django View? article by James W. that perfectly answers my question (and just learned that a "Django model query" is called a `QuerySet`). To sum up: Do the `QuerySet`s belong to the same model? 1. YES: use to `|` union operator. ...
(more)
26 days ago
Edit Post #291297 Initial revision 26 days ago
Question How to merge Django model query results?
I have to modify a legacy Django web application where there are 2 tables to store the same information using the same database structure, and the only difference is the names of the tables (and the corresponding Django models): + `ProgramAAssignments` model for `programaassignments` table + `Pro...
(more)
26 days ago
Edit Post #291296 Post edited:
26 days ago
Edit Post #291296 Post edited:
27 days ago
Edit Post #291296 Post edited:
27 days ago
Edit Post #291296 Post edited:
27 days ago
Edit Post #291296 Post edited:
27 days ago
Edit Post #291296 Initial revision 27 days ago
Question What determines where the focus goes back to when clicking on a browser's back button?
As far as I can tell, it is in part determined by the HTML spec's History API1, specifically the value of `history.scrollRestoration`. Quoting the HTML spec's scroll restoration mode paragraph: > + `"auto"` > The user agent is responsible for restoring the scroll position upon navigation. > ...
(more)
27 days ago
Comment Post #291228 Well, it surely wasn't obvious to me right away, but once it clicked, I was surprised how I could've missed such an easy step. Thanks again and have a great day!
(more)
about 1 month ago
Edit Post #291229 Post edited:
about 1 month ago
Edit Post #291228 Post edited:
about 1 month ago
Comment Post #291228 Thank you for the clarification! I made an edit suggestion lining up the terms - it took me unnecessarily long to understand it as I have no experience in theorem proving, so "explain it to me like I'm 5" is how I roll for now.. Is my assumption correct that you picked `h = switch f` intuitively?
(more)
about 1 month ago
Suggested Edit Post #291228 Suggested edit:

(more)
helpful about 1 month ago
Comment Post #291232 Thank you again!
(more)
about 1 month ago
Edit Post #291229 Post edited:
about 1 month ago
Comment Post #291228 Wow, the simplicity of this blew my mind. Did you come up with this on the spot or is this a well known formula in other (pure) functional programming languages? I'm also trying to make sense how `id` can be the first argument to `>=>`, so here's another question if you are interested: [Why does `le...
(more)
about 1 month ago
Edit Post #291229 Initial revision about 1 month ago
Question Why does `let map f = id >=> switch f` work in F#?
Asked How to implement `map` using the fish (>=>, Kleisli composition) operator in F#? a couple of hours ago, and r's answer blew my mind: ``` let map f = id >=> switch f ``` It is perfect in its simplicity, but when I look at the type signatures, it is not supposed to work. I've been at it f...
(more)
about 1 month ago
Edit Post #291227 Initial revision about 1 month ago
Question How to implement `map` using the fish (>=>, Kleisli composition) operator in F#?
I'm learning monadic composition through Scott Wlaschin's Railway-oriented Programming post. Once`bind`, `switch`, and `>=>` functions are defined, he introduces `map` to show how to "turn a one-track function into a two-track function". That is: ``` f: a -> b => f': T -> T ``` The imp...
(more)
about 1 month ago
Edit Post #291216 Post edited:
about 1 month ago
Edit Post #291216 Post edited:
about 1 month ago
Edit Post #291216 Post edited:
about 1 month ago
Suggested Edit Post #291217 Suggested edit:

(more)
declined about 1 month ago
Comment Post #291217 Oh wow, I feel like an idiot - thank you for pointing out the error in my reasoning!
(more)
about 1 month ago
Edit Post #291216 Initial revision about 1 month ago
Question Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
First, a reminder to future self (the figure RFC 3986, Section 3. Syntax Components complemented with Section 3.2. Authority): ``` The following are two example URIs and their component parts: userinfo host port | | | ...
(more)
about 1 month ago
Edit Post #291180 Initial revision about 1 month ago
Answer A: How to start creating a Giraffe web project and how to serve it?
I have to keep reminding myself that > a Giraffe project plugs into the ASP.NET Core pipeline or is itself an ASP.NET Core application , so if I can't find answers to my questions in the Giraffe docs, then it is probably because it is an ASP.NET Core topic (or an F# / .NET / etc. one). How ...
(more)
about 1 month ago
Edit Post #291179 Initial revision about 1 month ago
Question How to start creating a Giraffe web project and how to serve it?
Having some trouble with `giraffe-template` on Mac M1, so decided to set up a Giraffe project manually. Started following the Doing it manually section of the Giraffe README, but got stuck right away, and I also couldn't see mentioned anywhere how the project could be served. > For the record, the...
(more)
about 1 month ago
Comment Post #291125 Thank you again! I just moved my comments into an answer, and also quoted an answer from Stackoverflow that confirms my assumptions. Have a great day!
(more)
about 1 month ago
Edit Post #291165 Post edited:
about 1 month ago
Edit Post #291125 Post edited:
about 1 month ago
Edit Post #291165 Post edited:
about 1 month ago
Edit Post #291165 Initial revision about 1 month ago
Answer A: .NET dependency management: `dotnet add package` vs. Paket?
Based on what I know so far, there is no difference. Paket has been created more than 10 years ago to address (perceived?) shortcomings of NuGet. (Reading the .NET history made my head spin, and looks like things started to speed up significantly after the 2020s.) Paket has features that may be...
(more)
about 1 month ago
Edit Post #291125 Post edited:
about 2 months ago
Comment Post #291125 Thank you for the encouragement! I thought about that, because those points do sound plausible, but I have just started out with .NET in earnest, so it is just guesswork. I also didn't want to discourage answers. If no-one refutes those points in a day or two, I'll definitely post them as answers...
(more)
about 2 months ago
Edit Post #291125 Post edited:
about 2 months ago
Edit Post #291125 Initial revision about 2 months ago
Question .NET dependency management: `dotnet add package` vs. Paket?
Many older projects (i.e., older than 5 years) provide instructions to the Paket .NET dependency manager (e.g., Suave), so I started digging into it, got confused, then gave up for while because errors kept cropping up and I just wanted to make progress. I reached a point in my project where I hav...
(more)
about 2 months ago