Data dodania Pytanie
2016-11-26 21:11 Style guide for R - how can I write a good code in R? What I should avoid »
Hope this is a legitimate question. I am relatively new to R, I am looking for an equivalent of python's PEP 20 or python's PEP 8 style guide. I can n...
(0) odpowiedzi
2016-11-26 07:11 Matlab Coding: Live Video Webcam using Kalman Filter »
im new to matlab... there is a project that i currently working on it but cant seem to work... so far i try this code but only appear the webcam outpu...
(0) odpowiedzi
2016-11-25 19:11 When a variable should be set as a private class variable (e.g. _var) vs a class constant (e.g. VAR) vs a private class constant (e.g. _VAR)? »
I'm finding myself unsure as to whether I should set certain variables that I use in my class as being private class variables (e.g. _var) vs class co...
(2) odpowiedzi
2016-11-25 15:11 What does prefix "On" implement in event cases in C# coding? »
I think there is quite a confusion over the usage of "On" as prefix of a C# method. In MSDN article "Handling and Raising Event" https://msdn.microso...
(1) odpowiedzi
2016-11-25 01:11 Maintain naming standard for variables with Lombok @Getter AND @Setter »
The code base I work with uses the naming standard for every local variable to start with an 's' or and 'f' e.g. fName or sName. When I use Lombok @Ge...
(1) odpowiedzi
2016-11-24 06:11 Best way / practice to organize code for validation method C# »
I'm wondering what would be the best way or organize code when you doing the validation? Nested if or return at the first place your validation faile...
(1) odpowiedzi
2016-11-22 15:11 Enforcing Coding standards for Github repositories across team »
We are using Github as VCS for our Java project. I am figuring out ways to enforce coding standards before pushing to remote repositories for members ...
(1) odpowiedzi
2016-11-22 14:11 PHP Code Style Fixer: put space between colon and method's return type »
Is there a PHP CS Fixer fixer available that will put space between colon and return type? Fixer should correct this signature: public function modif...
(1) odpowiedzi
2016-11-22 13:11 Python: magic methods that shouldn't be used »
I've created a class that is a tuple wrapper and tuples doesn't support item mutations. Should I leave __setitem__ and __delitem__ implementation or i...
(3) odpowiedzi
2016-11-21 11:11 Lambdas and code readability »
I found a piece of code in my project where lambdas were used and I totally didn't like it. I tried to google opinions about using lambdas and I've no...
(0) odpowiedzi
2016-11-19 07:11 How to write effective code implementing YouAren'tGonnaNeedIt? »
I have been following a strict coding culture , but I am confused about how to design a coding style that doesn't cause the codebase to change from a ...
(0) odpowiedzi
2016-11-18 21:11 C++ exception handling confusion »
So, basically I have this simple wrapper code for an external C library and I'm a newbie in terms of proper exception handling. In advance: The code ...
(2) odpowiedzi
2016-11-18 16:11 JPA entity relationships and circular (bi-directional) references »
so this question centers around best practices for defining your entity relationships when using JPA or Hibernate. It basically boils down to this: W...
(0) odpowiedzi
2016-11-17 02:11 C styling: why assign variables with only one space? »
My professor writes his C variable assignments like this: int a= 10; /*or*/ double t; t= 0.5; instead of int a = 10; /*or*/ double t; t = 0.5; ...
(3) odpowiedzi
2016-11-16 23:11 how can I produce the generator matrix with ''function command'' in matlab? »
I want to ask a question about the channel coding with linear blockcodes. Without using the matlab tools(like cyclgen etc.), how can I produce the gen...
(0) odpowiedzi
2016-11-15 07:11 Measure the percentage of usage of a code formatter »
When we are coding it is really important to maintain our code base while preserving coding standards. There are plenty of code formatting tools which...
(0) odpowiedzi
2016-11-11 20:11 Check if JButtons are within a particular JPanel »
I am creating a GUI application using Java. There are different sections in the main frame, each having a particular functionality. The header panel c...
(2) odpowiedzi
2016-11-11 12:11 Changing conding style of project in Visual Studio »
I've adopted a new coding style and I would like to change the way my code is formatted in a Visual Studio project, which is made up of many files. Is...
(0) odpowiedzi
2016-11-09 18:11 Restricting header inclusions in C++ »
What is the best way to restrict use of certain headers(features of the library itself) in certain Cpp files. And if it fails to follow the set rules,...
(1) odpowiedzi
2016-11-09 16:11 How to write nested for loops in methodes (clean code) »
Clean code means for me: only one task for each methode and no nested loops. When I got the following code, I asked myself, how can I avoid nested fo...
(1) odpowiedzi
2016-11-08 22:11 Coding convention: Should i restyle already working code? »
My friends and I are starting a startup (we don't have much experiences, this is our first big project ever). Since we wanted to get our product to ma...
(1) odpowiedzi
2016-11-04 07:11 Solution for Code Evolution? »
I´m searching for some hints about the topic how to show improvement (evolution) of code. I assume it must be something because it could be fancy for...
(0) odpowiedzi
2016-11-03 15:11 Confusion on virtual functions declaration and definition »
These are some concern I have since when I understand how to use and what to use virtual functions for. First, online, I've seen many styles for decl...
(1) odpowiedzi
2016-11-02 17:11 Multiple calls to getter or single assignment to local variable »
Imagine this getter method: public List<String> getList() { return _list; } This method that calls the above getter: public void simpleFun...
(0) odpowiedzi
2016-11-02 08:11 C++ : good practice on indent of lambda function »
Consider a lambda function: auto pred = [cnts] (char c1, char c2) -> bool {return cnts[c1] < cnts[c2];}; Do you put the whole declaration in ...
(0) odpowiedzi
2016-11-01 10:11 Code writing convention for multi-line function invocation with arguments of different length »
If you have the line: this.something = game.add.text(0, 270, "", MY_STYLES.first_foo.second_foo.style); Would you write it like that: this.somethi...
(0) odpowiedzi
2016-10-31 18:10 How to stop Visual Studio 2015 to automatically insert space after I type opening parenthesis »
I just lost my settings of Visual Studio 2015 to a mandatory formatting my hard drive. I installed again and after 2 hours of searching I couldn't fin...
(0) odpowiedzi
2016-10-28 11:10 Convert tab to spaces »
Usually we replace tabs to spaces in editors while coding. What is the exact need for that? Is it for because the OS handles \t in the files? I am re...
(1) odpowiedzi
2016-10-25 06:10 Is there a convention for Java exception messages? »
I have been trying to throw exceptions with more information coming with it. I made it multiple lines since I want to make it verbose and help debuggi...
(2) odpowiedzi
2016-10-25 03:10 Best practices for php arrays, foreach and if statements »
So I am just learning best practices now and everybody has an opinion and I just want to find a nice clean way of coding which is not .... bad? I hav...
(1) odpowiedzi
2016-10-25 00:10 Proper namespacing (or class naming) convention in Swift frameworks (for iOS) »
TLDR If framework is called AEConicalGradient, should classes in it be called ConicalGradientLayer and ConicalGradientView or just Layer and View? I...
(2) odpowiedzi
2016-10-22 08:10 C# - Can/Should I simplify/alter this code snippet? »
I got the following code in my program: #region Handle if(HandleLink(input)) goto Handled; else if(HandlePath(input)) goto H...
(3) odpowiedzi
2016-10-20 16:10 How to run code when the letter 'r" is pressed »
I want to run code in an editor Ive called "Callbackcode" when the letter 'r' is pressed. This is the code in the editor I've named "Callbackcode": ...
(0) odpowiedzi
2016-10-14 23:10 Is there a convention for what is a row and what is a column? »
Consider a matrix build as a vector of vectors such as the following for example std::vector<std::vector<int>> M; When indexing a value...
(2) odpowiedzi
2016-10-12 18:10 PEP8 error in import line: E501 line too long »
I have a python import string. PEP8 linter show to me E501 error line too long (82 > 79 characters): from tornado.options import define, options, ...
(3) odpowiedzi