Skip to main content
0 votes
1 answer
75 views

This is going to be a bit hard to explain, but I'll try nevertheless: So, I'm a novice trying to turn a Kahoot Generator I made into a library to share on GitHub. After thinking about how I wanted the ...
Jediweirdo's user avatar
5 votes
2 answers
115 views

I have a class that looks like this template<class T, class THash, class TEqual, class TCompare> class GraphT { public: typedef NodeT<T, THash, TEqual, TCompare> NodeInt; typedef ...
raaj's user avatar
  • 3,489
0 votes
0 answers
44 views

Context Writing a Power Query function to read binary data from a binary stream where some fields are preceded by their length as a 32-bit Little Endian Integer. A systematic error occurs when using ...
Djé's user avatar
  • 61
-2 votes
1 answer
80 views

How can I save a file with the name as: oldname+"_new"+extension in an elegant way? I currently do: ext = os.path.splitext(file)[1] output_file = (root+'/'+ os.path.splitext(file)[0]+"...
thestruggleisreal's user avatar
1 vote
1 answer
110 views

Consider the following two code snippets (assumed to be inside an async function that returns void / we don't care about the return value): Long version (without await): if (condition) { ...
Vipul Naik's user avatar
-1 votes
1 answer
78 views

This is a code of my function, I had to breakdown the main function into subfunctions. When I tested the main function it worked but not when I tried to print the output of subfunction. I tried to ...
user23203518's user avatar
0 votes
2 answers
133 views

I have a code logic as below: // Option 1 try { String result = x.getResult(); if (result == null) { // some handling logger.error("xxx"); } } catch (Throwable t) { // ...
eriee's user avatar
  • 396
0 votes
0 answers
61 views

I created a mini app which shows the Continent & the Country selections. just to practice RxJS concepts. (You can checkout to ng-conf/learn-rxjs-01 branch on https://stackblitz.com/edit/stackblitz-...
Angular animal's user avatar
1 vote
1 answer
1k views

I just scaffolded a project using Template Studio WinUI v5.3 and when I press Ctrl K D to format document, the getter and setter is placed on new lines. current.cs public class MyClass { public ...
Mihai Socaciu's user avatar
-2 votes
1 answer
160 views

How many times have you encountered a function with a return statement deep within the code? Or failed to notice a break or a continue in a loop? While I have not been blindsided by return recently, I ...
user2150648's user avatar
0 votes
0 answers
85 views

Edit: Changed bools to const bool, Added argument to anotherValueTest. May have oversimplified it before. I am using a MSP430 and the integrated Compiler from the IAR Workbench. Link to workbench ...
kremerf's user avatar
  • 31
-1 votes
4 answers
133 views

Instead of having two different loops that have identical printf statements, you can make a for loop that uses a boolean and ternaries to switch it forward or backward. Why is this bad form? Because ...
Daniel's user avatar
  • 17
-1 votes
1 answer
64 views

I'm programming Human Resource data sync batch program. This program reads user and department data from customer company's database and save to our database. For example, there is class named 'User' ...
Companion Cube's user avatar
1 vote
1 answer
101 views

Is there a simple way to format a string of a dictionary? I have a dictionary that I want to save into a file, to do this I am passing it to the file as a string using str(dictionary). This means that ...
superdupersolly's user avatar
-2 votes
3 answers
143 views

Code def addition(num): if num: return num + addition(num - 1) else: return 0 res = addition(10) print(res) Explanation I know what the function is doing: it is a recursive ...
Rozita Ghasemi's user avatar

15 30 50 per page
1
2 3 4 5
23