coding-style
Pile of little functions that call each other. Better way to organize my code?
I\'m a beginner but I\'ve written my first little project and something about it doesn\'t really feel right. I hope I can describe the problem clearly.[详细]
2023-04-10 09:00 分类:问答Which of the following technique is better? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-04-10 08:48 分类:问答python: is it possible to require that arguments to the functions are all keyword?
To avoid the obvious bugs, I\'d lik开发者_如何学Goe to prevent the use of positional arguments with some functions. Is there any way to achieve that?Only Python 3 can do it properly (and you used the[详细]
2023-04-10 05:23 分类:问答Create application session in android
My application require timeout of 10 min i.e. if there is no activity on the application from last 10 min, then either the application is terminated or login(Login credential in sqlite db) is shown.[详细]
2023-04-10 04:44 分类:问答How To Structure Large OpenCL Kernels?
I have worked with OpenCL on a couple of projects, but have always written the kernel 开发者_运维百科as one (sometimes rather large) function.Now I am working on a more complex project and would like[详细]
2023-04-10 04:07 分类:问答ASP.NET MVC Routing - Keeping up with parameters through redirects
I am working on my first real ASP.NET MVC project and I need a little advice. So, let\'s say that my app has an admin section where you can create companies, departments, and users within each depart[详细]
2023-04-09 23:51 分类:问答Guidance with header and main template - seek best practice please
I\'m new to C++ and was needing some help in terms of using the best coding practices. Basically I have creat开发者_Python百科ed my header file (character.h) with the following data:[详细]
2023-04-09 22:31 分类:问答Choosing between reference (T&) and const pointer (T* const)
Is there any reasonable use case, where one should use const pointer over reference? T obj; T &r = obj;// style-1[详细]
2023-04-09 16:03 分类:问答Why doesn't my TextBlock/TextBox apply values from a Base Style?
It\'s not uncommon for me to write something like below for styling a data entry form, but my problem is that TextBox and TextBlock don\'t seem to implement the Setters that are in the BaseElementStyl[详细]
2023-04-09 12:58 分类:问答Is it worth to insert `const`-correctness
I\'m currently confronted with a C++ project written by some senior programmers consi开发者_运维知识库sting of about 400 files and 200 classes.[详细]
2023-04-09 11:41 分类:问答