Skip to main content
0 votes
2 answers
45 views

Laravel Layout issue [closed]

Title: Is extending a layout that only contains the head valid in Laravel, or should it be a partial? Body: Me and a friend are building an admin dashboard in Laravel, and we had a discussion about ...
Pasha's user avatar
  • 11
1 vote
1 answer
52 views

ASDF:REQUIRE-SYSTEM -> Deprecated and to avoid und all circumstances, or not?

I'm starting to delve into Common Lisp's ASD Facility and am wondering, whether asdf:require-system is still useful in the described way. That is: With this function it is "appropriate to load ...
Demihm Seinname's user avatar
-3 votes
1 answer
128 views

switch statement and K&R indentation

If we follow K&R indentation, what is the standard way to indent a case with a block { ...} inside? Example: switch (a) { case FOO: f("hello"); break; case BAR: ...
Basj's user avatar
  • 46.6k
0 votes
1 answer
51 views

Python conventions: should a constant with mutable contents be UPPER_CASE? [closed]

I'm working on my adherence to conventions and best practices in Python, like using UPPER_SNAKE_CASE for constants. However, I'm not sure if a constant assignment whose value is mutable is canonically ...
JB the frequently clueless's user avatar
-1 votes
1 answer
46 views

How to optimize performance and reduce load while designing a RESTful API for displaying related and sibling objects? [closed]

I'm currently working on a frontend application where I need to display information about authors. Each author can have multiple child objects (e.g., books), and I also need to display information ...
pierrefaidherbe's user avatar
0 votes
1 answer
88 views

Conventions/good ways to initialize variables with default/NULL values

I've been learning C for the past couple months. I work on biological problems for which variables involving a binary state of present/missing are very common. For these situations I have been ...
MJLW's user avatar
  • 59
0 votes
1 answer
304 views

Best Practice for Exporting Default Functions in React with TypeScript? [closed]

I am currently studying React with TypeScript and have come across two different ways to export a default function component. Here are the two examples: Exporting the function separately: function ...
Dawid's user avatar
  • 701
0 votes
3 answers
155 views

C Return Value Conventions (Bool or Err Code) [closed]

I get this is probably a loaded question, but in C, is it better practice to return a int with error code, or a "success?" boolean. I notice that "0" for success seems convention ...
Kian Walsh's user avatar
0 votes
1 answer
39 views

Testing multiple pyspark pipelines with different environment variables loaded into a static file

Ok so I have a question- For context: I am a new QA working in a team that uses pyspark as our ETL engine. I use pytest as my testing framework. We have multiple pipelines (ETL’S, I’m gonna use this ...
Yahli Gilboa's user avatar
1 vote
1 answer
123 views

ASP.NET Core Web API conventions not inherited when extra ProducesResponseType attribute is present on a action

Refer to the following Web API conventions and the corresponding controller: public static class MyAppConventions { [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound, ...
AkshatSparrow's user avatar
0 votes
0 answers
17 views

Does a named standard exist for comment annotations?

I have encountered, and used, several different forms of comment annotations. Eg. // TODO: Also trigger this task // FIXME: in this very specific circumstance this should handle this way instead // ...
Oliver Scase's user avatar
2 votes
1 answer
134 views

Why do Lisp style guides recommend the specific numbers of semicolons for comment in several cases?

I read in the style guide of Elisp and of Common Lisp to use specific numbers of semicolons in various cases, in short this: single semicolons for comments at the ends of code lines double semicolons ...
matj1's user avatar
  • 332
-1 votes
1 answer
33 views

Where do you set default values when registering a user? [closed]

i am currently developing a web application in which the user should have the possibility to register. For this I have built a VueJS web application and a Golang REST API. However, the backend is now ...
MoreTags's user avatar
  • 174
0 votes
1 answer
52 views

Long format dataframe column hierarchy

I am working with long format dataframes and intend to write a package myself. While it is not crucial, I would like to adhere to common practice of column hierarchy, e.g. when I have 3 participants ...
Felix Schweigkofler's user avatar
-1 votes
3 answers
94 views

How do I reduce repetitive error handling in java [closed]

So I have a code snippet similar to this. I feel like the if statements should be in a common function. I am not sure how to handle that because school and student should be passed to this function ...
bob's user avatar
  • 27

15 30 50 per page
1
2 3 4 5
78