Data dodania Pytanie
2017-02-06 10:02 How to set the rule for C# coding without use of Style Cop,Code Anylysis rule set,FxCop? »
We want globally to define C# coding style rule such as the variable declaration rule, method definition rule etc.For this we are looking for the Vis...
(0) odpowiedzi
2017-02-05 02:02 Style keychainwrapper has no member standard »
I have been using Keychainwrapper for a little over a month developing my app. I get 'Keychainwrapper has no member standard' error since yesterday mo...
(0) odpowiedzi
2017-02-01 16:02 Best way to eliminate deprecated conversion from string constant to ‘char*’" »
I have came across a situation as follows and I am getting following warning from the compiler. Main.cpp:14:22: warning: deprecated conversion fr...
(3) odpowiedzi
2017-01-31 15:01 Different variable name case convention in one application »
This is a really trivial problem. I am just curious on how to deal with this in a "professional" manner. I am trying to stick to variable naming conv...
(2) odpowiedzi
2017-01-30 10:01 Which is better CRUD coding style using Redux? »
I have a simple question about coding style for single page application. My front end is using React Redux For example I have a standard CRUD page wh...
(3) odpowiedzi
2017-01-28 06:01 Implement finally in php 5.5 and below version »
I would like to know is there any coding trick or a way that we can use to implement a finally block for php versions that are less than 5.5. ...
(1) odpowiedzi
2017-01-27 17:01 Naming convention for posix flags »
I'm writing a console application which allows several Posix flags to be set. This is what I'm using currently. Words in the flags are concatenated w...
(0) odpowiedzi
2017-01-27 14:01 Usage of the function main()? »
I am curious whether there is any difference between these two implementations: def main(): somecode() if __name__ == '__main__': main() a...
(2) odpowiedzi
2017-01-26 17:01 Best practice: A compose B, DerivedA compose DerivedB »
struct B holds data. struct DerivedB: B adds some specific data to B. class A holds a reference to an object of type B. class DerivedA holds a refere...
(2) odpowiedzi
2017-01-24 16:01 Most common/best way to check for number of items in a collection »
If I have a collection of items, is it more common (or better?) to do if (items.count > 0) or if (items.count >= 1) (and the opposite way ...
(0) odpowiedzi
2017-01-19 21:01 What is the best way to mark a "should never happen" line in C/C++ »
Please, consider the following example: enum option { opt_ex_a = 'A', opt_ex_b, opt_ex_c }; void provide_option(enum option opt) { s...
(0) odpowiedzi
2017-01-19 19:01 What is the correct way here to modify/refactor product code to support integration testing? »
Given below is my product code in essence and in a simplified representation. This one is like an algorithm for completing a workflow. Each of the st...
(2) odpowiedzi
2017-01-18 18:01 Coding Standards for button click event »
I'm trying to follow good coding standards when attaching code to the default button click event. Two options are: Include several lines of code wit...
(2) odpowiedzi
2017-01-18 01:01 How to handle unfinished function call in java? »
import java.io.*; class LL_two { Node head; static class Node { int data; Node next; N...
(0) odpowiedzi
2017-01-17 14:01 Cast or explicit declaration »
The following code snippet has a variable called start which is an int. Suppose I want to write the int value of start, 10, in a variable of type long...
(2) odpowiedzi
2017-01-17 08:01 How to substitute switch statemant with better solution - clean code hints »
I created a code, which have to convert ContentDataType into MIME types. For example - ContentDataType is a simple String like ImageJPEG and now I use...
(2) odpowiedzi
2017-01-13 11:01 Clean coding: how to break loops from inside a function call inside a loop »
Clean coding principles generally include a rule that functions must be small and single-purpose. From Robert Martin's book, Clean Code: "The first ...
(3) odpowiedzi
2017-01-13 07:01 Embedding Another APK with My app and opening it in my app, and also installing it at the same time when i install my app. Can i Do This? »
For Example I have app A ( this one is mine) And B (i have this app's apk),I want that When Users install my App A, my app B is also installed and the...
(1) odpowiedzi
2017-01-12 18:01 Java Coding Standards - Is it ok to always import java.util/io.*? »
When writing code in java, for my latest projects (where I'm not too sure what I'll need to import before starting i.e Lists, Maps, HashSets etc.) I h...
(0) odpowiedzi
2017-01-11 19:01 How to stop bool change value once its true? »
i am working with realm data saving. i have create a local bool to see if the value has modify for several textfield . i made something like this. but...
(0) odpowiedzi
2017-01-11 15:01 C - How client can use/access more than one implementation? »
Below(image) is the imitation approach from Linux/net/socket.c source. Background: Reason to implement List abstraction with this approach,...
(1) odpowiedzi
2017-01-11 10:01 Update parameters of a list in a method: return list or not »
I have a list of objects like the next class: class A { private String property1; private String property2; //Setters && Getters ...
(3) odpowiedzi
2017-01-10 12:01 I'm creating a poker client, how can I make the exception handling more clean? »
I'm checking if the values are valid. The if parts looks still messy for me, checking a lot of || operator, and there is multiple InvalidArgumentExcep...
(3) odpowiedzi
2017-01-09 22:01 Should I restrict the width of all of my programs for consistency? And how wide; the conventional 80? »
I have to write a lot of programs for my work. Do you guys restrict the width of your programs for legibility in small terminal windows; and if so, ho...
(1) odpowiedzi
2017-01-09 19:01 Nested if statements vs function exits »
I have been writing if statements for as long as I took my first software class in College, recently my co-workers have introduced a slightly differen...
(4) odpowiedzi
2017-01-09 17:01 Mixing fmap and bind (>>=) »
In Haskell, when I have to mix calls to fmap/<$> and >>=/=<<, I invariably end up with lots of parenthesis. For example, here I'm c...
(1) odpowiedzi
2017-01-08 15:01 Cleancode: try/catch in Promise »
I am working on redux-form atm and found the piece of code. Its working for me but is there any cleaner way to write this in ES6 style? const asyncVa...
(2) odpowiedzi
2017-01-08 12:01 Is it good practice to use traits only to reduce class complexity? »
My base controller class has 2000+ lines. I know it's bad. I'd like to split the class into small chunks to make it simpler. May I use traits as "incl...
(0) odpowiedzi
2017-01-06 06:01 checkpatch.pl flags an error for octal permissions »
I am trying to resolve some coding style issues in a device driver. When I run checkpatch.pl script to run it, it flags the following error. ERROR: U...
(1) odpowiedzi
2017-01-05 11:01 Swift: where to place IBAction functions for clean class code »
What is your best practice with IBActions? Where do u place them? I cannnot decide. 1) If I place them with regular functions, it can be messy but ev...
(1) odpowiedzi
2017-01-05 08:01 Correct way to use mws api with laravel »
Can any body help me out, to understand the correct and standard way to use mws order api library with laravel 5.3 Actually I'm confused in that beca...
(0) odpowiedzi
2017-01-04 08:01 How to check php code for psr 2 validation in Netbeans »
Is there any Plugin in Netbeans for checking PSR2 Violation and fix the same. I tried adding php-cs-fixer.phar in Netbeans > Options > php >...
(0) odpowiedzi
2017-01-02 06:01 How to let android studio align assignment when reformating the code? »
Let's assume we have this code: int x; double yyyy; float zzzzzzzz; x = 1; yyyy = 24.5d; zzzzzzzz = 1.3f; after I enabled: Settings -> Code Style-...
(0) odpowiedzi
2016-12-29 05:12 Download for the Heros example app in the Angular Style Guide »
On the Angular Style Guide, all of the examples are using a Hero application. I would love to download a working version of the application because I'...
(0) odpowiedzi
2016-12-24 18:12 Angular good design pattern for implementing utility functions »
I searched for a lot of design patterns, but found nothing on how to implement functions that are going to be used both in some controllers and in htm...
(1) odpowiedzi