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 r~~‭

59 posts
75%
+4 −0
Q&A Is concatenation a logical AND?

tl;dr: No. From an engineering perspective, you might be asking if a concatenation operator can be used in place of a logical ‘and’ operator. This is obviously specific to a particular language, bu...

posted 3y ago by r~~‭  ·  edited 3y ago by r~~‭

Answer
75%
+4 −0
Q&A What does "namespace" mean?

A namespace is a category to which a name can belong. Think of family names for people: I may be friends with several Jims, and if only one of them is present I can just call him Jim. But if multip...

posted 5mo ago by r~~‭

Answer
75%
+4 −0
Q&A Handling JSON files in Rust without manually creating mapping classes

The hard part is figuring out exactly how your code needs to adapt to changes in the JSON structure. In your example, presumably the rest of your program needs to depend on the names and types in p...

posted 3y ago by r~~‭

Answer
75%
+4 −0
Meta Code Reviews: ‘it's fine’

(Elsewhere...) You look over a post on Code Reviews, and you don't find any problems. Should you post an ‘it's fine’ answer, stay silent, or do something else? Seems to me there's some value in hav...

1 answer  ·  posted 3y ago by r~~‭  ·  last activity 3y ago by Moshi‭

75%
+4 −0
Q&A How can a Python program send itself to the background?

Use os.fork(). Example: import os import time pid = os.fork() if pid == 0: os.setsid() # Prevents the child from being killed if the parent dies time.sleep(10) os.system('some...

posted 8mo ago by r~~‭

Answer
75%
+4 −0
Q&A Is it possible to get the current function in a trace function?

CPython only very recently started keeping a reference on frames to function objects internally, and that reference isn't exposed from inside Python. There's an old PEP that would have defined a _...

posted 12mo ago by r~~‭

Answer
75%
+4 −0
Q&A How do I get something similar to dictionary views, but for sequences?

It isn't writable (but then again, neither are the dictionary views), but you might be interested in more_itertools.SequenceView.

posted 1y ago by r~~‭

Answer
75%
+4 −0
Q&A Adding elements to wrapper after calling wrap doesn't work

Remember that jQuery selectors in general can match more than one element. If you had multiple <p> elements in your page, $('p').wrap(wrapper) would put wrapper divs around each of them. So ....

posted 1y ago by r~~‭  ·  edited 1y ago by r~~‭

Answer
75%
+4 −0
Q&A When would one not want to return an interface?

IList<T> is not necessarily representative of the general case; it's an interface that is (A) widely implemented by a variety of classes from a variety of sources, which themselves (B) tend t...

posted 1y ago by r~~‭  ·  edited 1y ago by r~~‭

Answer
71%
+3 −0
Q&A Why does my code show an error at deriving (eq)? (SOLVED) NEW ERROR: At SimpleEnigma & SteckeredEnigma constructors which I need help on :")

Eq is a type class, and type class names are capitalized (like types and constructors). Changing eq to Eq should get you past that error. Conversely, in SimpleEnigma = SimpleEnigma rotor1 rotor...

posted 1y ago by r~~‭

Answer
71%
+3 −0
Q&A Set transform of SVG element

<set> does seem to be a bit finicky for this case, doesn't it? You can use <animateTransform> if you set the values attribute on it instead of the to attribute, like this: <animate...

posted 7mo ago by r~~‭

Answer
71%
+3 −0
Q&A Replace leaf arrays with joined strings in a nested structure in jq

As the walk documentation describes: When an array is encountered, f is first applied to its elements and then to the array itself In other words, walk is bottom-up. So when you apply your fi...

posted 8mo ago by r~~‭  ·  edited 8mo ago by r~~‭

Answer
71%
+3 −0
Q&A Warn of implicit cast in a function's arguments with GCC?

From the page you linked: -Wconversion Warn for implicit conversions that may alter a value. This includes conversions between real and integer, like abs (x) when x is double; conversions betwe...

posted 3y ago by r~~‭

Answer
71%
+3 −0
Q&A How can software track [1] how many subscribers to subreddits, [2] if subreddit is private, [3] if submissions are restricted?

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...

posted 3y ago by r~~‭  ·  edited 3y ago by r~~‭

Answer
71%
+3 −0
Meta Add syntax highlighting for Cypher

There have now been two questions about Cypher, the Neo4j query language. Highlight.js doesn't support Cypher syntax highlighting out of the box, but they do offer a drop-in highlightjs-cypher modu...

0 answers  ·  posted 3y ago by r~~‭  ·  edited 2y ago by sau226‭

71%
+3 −0
Q&A Union of queries depending on variable in list

Yes, you can achieve this using UNWIND and CALL, in the following pattern: UNWIND ['Canada', 'Europe'] AS region CALL { WITH region query } RETURN * You can replace RETURN * with any o...

posted 3y ago by r~~‭

Answer
71%
+3 −0
Q&A Search paths where all nodes are in a relationship with same node

Something like this query should work for you: MATCH (a:Person)-[:IS_SON]->()-[:WAS_BORN]->(b:Country) WITH a, count(DISTINCT b) AS birthplaces WHERE birthplaces = 1 RETURN a Note that...

posted 3y ago by r~~‭

Answer
66%
+2 −0
Q&A Can regex be used to check if input conforms to a very strict subset of HTML?

Okay, I'll be the contrarian. For this case, yes, I think a regex-based approach can be used to validate these properties. This approach will not guarantee that the provided input is valid HTML; in...

posted 3y ago by r~~‭

Answer
66%
+2 −0
Q&A Dealing with code maintenance when saving a large and complex entity in a single business transaction

Chain of Responsibility doesn't strike me as appropriate for this problem, at least as I understand it. You want to use CoR if you have multiple different requirements for the processing of the sam...

posted 1y ago by r~~‭

Answer
66%
+4 −1
Meta Do we want a wiki (or similar) alongside Q&A?

I hear the walk-before-we-run argument. I think this would be a good thing to try once we reach running speed, though. Personally, I don't like self-answered questions; I think they're an awkward f...

posted 3y ago by r~~‭

Answer
66%
+2 −0
Q&A Is concatenation a logical AND?

I think your edited post merits a new answer! You're right that you can make some sort of connection between addition, concatenation, and logical ‘and’—these are all operators that can be considere...

posted 3y ago by r~~‭

Answer
66%
+2 −0
Q&A Why does `Zip` require `Semialign`

There's good reason to believe this is simply historical accident. The Semialign class came first, and used to include zip and zipWith directly. When those members were separated out into their own...

posted 2mo ago by r~~‭

Answer
66%
+2 −0
Q&A How to implement `map` using the fish (>=>, Kleisli composition) operator in F#?

Is there a "cleaner" implementation similar to map's? Yes: let map f = id >=> switch f This follows from two of your other equations: map f = bind (switch f) g >=> h = g >...

posted 24d ago by r~~‭  ·  edited 23d ago by r~~‭

Answer
66%
+2 −0
Q&A Why does `let map f = id >=> switch f` work in F#?

when I look at the type signatures, it is not supposed to work. The types work because they're parameterized. The types of the combinators involved are (renaming all parameters to be unique fo...

posted 24d ago by r~~‭

Answer
62%
+3 −1
Q&A Problems with data structures and filestreams.

My advice to you is to break this down into smaller problems and try to solve them one at a time, making sure you have a program that can compile and run at each step. First: figure out how to suc...

posted 2y ago by r~~‭

Answer