coding-style tag

17 questions


4 answers
265 views
0
How do you say Repetition Code in Japanese?

Write here because you may not know software engineering or answer in general terms on language sites.How do you say Repetition Code in Japanese?Repetition Code is a bad way to write software where th...

2 years ago

1 answers
87 views
0
To return one or more values in a function

What kind of method do you use to return multiple values in a function?The method I'm using is as follows.def f(x): y0 = x + 1 y1 = x * 3 y2 = y0 ** y3 return (y0,y1,y2)When there are more elements, i...


1 answers
157 views
0
Can I turn the array over with a function factor without a pointer?

int a[5][5];int* a[5];int** a;When you get an array as a factor, you have to choose one of those three and unify itIs there any way I can turn it over without using a pointer?

2 years ago

1 answers
90 views
0
Which is better, using multiple overlapping functions or using them one by one?

id = camelCase(toParse( upper(id) ));Is this better?id = upper(id);id = toParse(id);id = camelCase(id);Is this better?I only did three right now. On the premise that the overlap can increase further a...


1 answers
162 views
0
std::endl, which one should I use, '\n'?

If you look at the C++ book,std::cout << Test line << std::endl;You shared a roomThe code that other people madestd::cout << Test line\n;There are more things that I wrote togetherWh...

2 years ago

1 answers
100 views
0
Which one should I use, if x is not None or if x is None?

I if not x is none thought a good representation to read more. google style guide in if x is not none , to write.Is it because of the speed difference between you two?Or is it because if not x is None...


2 answers
118 views
0
What are the criteria for creating methods in the class?

Is it better to write a method and function from the top and have an api function that has a lower stack as you go down? Conversely, is it better to write an important api function first and put it at...


1 answers
77 views
0
In the Android tutorial, most variable names start with 'm', why?

I usually name variables in camel notation, but I can't get used to it since it starts with m while watching the Android tutorial. What does that mean? I'm a php developer, and usually the first lette...

2 years ago

1 answers
143 views
0
Why is there still no super in C++?

Personally, like the next chord, I am writing super with typedef <Base> super; and there is no problem.You can also call the constructor of the parent class with super()You can write namespace l...

2 years ago

1 answers
122 views
0
Do I have to write import on the top line of the code?

Usually, when importing modules, they seem to put them in the top row like Source Code 2 rather than Source Code 1. I don't think you need to import it to the top row if it's a module that's only used...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.