Data dodania Pytanie
2017-02-18 20:02 better design for sub-branching if statement sub conditions »
I am trying to refactor an if statement with multiple sub-conditions. From my current tries, I either have to write the conditions twice, or the inten...
(2) odpowiedzi
2017-02-18 15:02 Golang Coding Conventions: When to Break Lines in Code? »
One of my favorite things about go is gofmt. I like the fact that the coding style is standardized in many ways. However there is one thing that bot...
(1) odpowiedzi
2017-02-18 09:02 Using text file data, classification and make other text file in python »
using python, i want to seperated some data file. file form is text file and there are no tabs only one space between inside data. here is example f...
(2) odpowiedzi
2017-02-14 21:02 Should a dict that I use only once during initialization be put inside my class? »
I only need to use operatorDict one time to determine which operation I am using for the class. What is the most pythonic way to store the correct ope...
(1) odpowiedzi
2017-02-13 08:02 How to apply ReSharper Ultimate Naming Styles for C++ »
I don't know how to apply naming style for C++ language in Resharper Ultimate Extension for Visual Studio 2015 Update 3. My OS is Windows 10. Everythi...
(1) odpowiedzi
2017-02-12 15:02 WebStorm 2016.3.3 reformat code in Standard Style »
Is there any way to automatically reformat code according to StandardJS requirements? I've changed code style in settings in WebStorm using this Doc...
(1) odpowiedzi
2017-02-12 10:02 Android app like C Cleaner »
I need to build an android app for my final year project, (i am new to android development). I need an android app like cleaner,clean master etc apps ...
(0) odpowiedzi
2017-02-11 01:02 C# Contracts vs NotNull/roll your own in Java »
I would like to reduce redundant and verbose null checks in Java , but I understand Java does not have a standard @NotNull annotation where as c# has ...
(1) odpowiedzi
2017-02-09 18:02 Clean java programming, is it a bad idea to use lambdas to generate method input parameters? »
Just a quick question regarding good programming practices, Performance aside, how much of a good/bad idea could something like this be? I am oversim...
(1) odpowiedzi
2017-02-08 21:02 Another method of writing code »
I write code to JavaScript. I need to handle multiple keys when pressed. The result of such a code. var key = event.keyCode; if (key === 39 { ...
(3) odpowiedzi
2017-02-08 08:02 What is the standard approach in Java »
I was given a task for coding a Java program for exporting database table records to flat files. I am confused with the approach my lead suggests to...
(0) odpowiedzi
2017-02-07 14:02 Is it considered bad to not use the API? »
When I started programming in Java, I was taught to always use the API and not reinvent the wheel by writing an own implementation of an already exist...
(1) odpowiedzi
2017-02-06 14:02 Python: What libraries are 'standard libraries'? »
I am reading PEP 8, and in the imports section it says to put 'standard library imports' in the top of your library import section. My question is: Ho...
(1) odpowiedzi
2017-02-06 13:02 VS Code: How to auto refresh Pylint »
I wan't the Pylint style suggestions to automatically update in VS code. E.g. if there is a style error, and I fix it I wan't it to automatically upda...
(0) odpowiedzi
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