Data dodania Pytanie
2017-09-15 22:09 Should I suggest code reviews when my team leader writes spaghetti code? »
When I inheret a code from some of my colleagues in the team (who went on a vacation for example), I literally suffer modifying their code and fixing ...
(2) odpowiedzi
2017-09-14 09:09 How to create custom coding rules in xcode for objective C and swift? »
How to create custom coding rules in xcode for objective C and swift ? like code should maintain expected coding standards if it doesn't match coding ...
(0) odpowiedzi
2017-09-14 02:09 How to tell if any element in a list of combinations is in a specific set in the most efficient way? »
here is what i mean by the question: j = [1,2,3,4,5,6,7] k = [1,2,3,4,5,6,7] #I want to generate all possible pairs of pairs with these two lists, f...
(0) odpowiedzi
2017-09-11 11:09 Is it best to call a method (from class A) in a class (class B) which then calls a method in a class (C) or to use a getter for Class C in Class B? »
E.g. In Class A: b.doThing(); In Class B: doThing() { c.doThing(); } OR In class A: b.getClassC().doThing(); What is the convention for...
(3) odpowiedzi
2017-09-10 18:09 Trouble simplifying repetitive - multiple if elif statements and multiple loops in a function in python »
I am very new to Python. I am a firm believer of simple, concise and efficient algorithmic design as well as coding style. As I am learning Python, I...
(3) odpowiedzi
2017-09-08 11:09 What is runtime error (NZEC) in Java? »
Here is the code challenge question I am working on. And my code is: import java.io.*; class NEW { public static void main(String[] args)throws...
(0) odpowiedzi
2017-09-07 14:09 Automatically apply C# 7 getter and setter style »
Is there any way to automatically apply C# 7 getter and setter styles (or maybe other new language features)? It would be nice if there would be any ...
(1) odpowiedzi
2017-09-06 12:09 Swift 3 functions naming convention »
I'm a little bit confused by function naming convention in Swift 3 I went through Swift 3 Guidelines and I found that method naming convention should...
(2) odpowiedzi
2017-09-05 18:09 Extjs 5 reference grid by docked button's click event without using .up? »
I currently have a grid with a button that I click to act upon the records in the grid. At the moment I use a button.up('selector'); to get the grid,...
(1) odpowiedzi
2017-09-04 21:09 Rename/Refactor database elements - only scripts exists but not database »
I have script (.sql) files ready to create a database (create schema, procedures, add test data). I also have coding standards/conventions to be set ...
(1) odpowiedzi
2017-09-04 07:09 C++ and the dangers associated with including complete namespaces »
After watching Clean Coders Hate What Happens to Your Code When You Use These Enterprise Programming Tricks from Kevlin Henney. We're wondering if in...
(0) odpowiedzi
2017-09-01 12:09 Is it OK to have property which can be or false or array or null »
Is it good practice to have properties like this: /** * @var false|array|null */ protected $mockMethods = false; This property can be or false or...
(2) odpowiedzi
2017-08-31 16:08 Add a new code style on PhpStorm »
I have started using Semantic UI and I noticed that when I want to customize my css, I need to make .variables and .overrides files. Their syntax is j...
(0) odpowiedzi
2017-08-30 17:08 List of similar objects - invoke different method for each element »
I'm looking for a good practice/idea how to write a clean code for my solution. Let's say I have class Foo: public class Foo { public SomeEnumTyp...
(1) odpowiedzi
2017-08-30 10:08 Scala trait and class in the same file »
Is it a good practice to put a trait and class implementing it in the same file in Scala? E.g. in B.scala you have : trait A class B extends A ...
(2) odpowiedzi
2017-08-29 22:08 Whats the best/most used way to format/indent function parameter objects »
I was wondering how StackOverflow crowd prefers to indent their code, and how would you indent/format the code below. this.router.navigate([ 'sea...
(2) odpowiedzi
2017-08-29 11:08 Having difficulties in finding error: Matrix dimensions must agree »
My aim is to call this function into the pso code for minimization. actually im calling this code into another program(mfile),here v=0.1*x0; % ini...
(2) odpowiedzi
2017-08-28 14:08 Code Optimization issue »
I am doing some code changes in Android development to make my coding more accurate. I have 7 TextViews in my layout for all week days, i have done fi...
(1) odpowiedzi
2017-08-28 12:08 How to style div elements to form a table »
I have some divs and I want to form a table style. <div style="display: table;"> <div style="display: table-row;"> <div st...
(1) odpowiedzi
2017-08-24 18:08 Why use dynamic variables (variable variables) in PHP or other languages »
I was just recently introduced to the concept of dynamic variables in PHP. To me it seems like using dynamic variables in a program would make it diff...
(1) odpowiedzi
2017-08-24 16:08 Is it stylistically ok in Python to use l = list() rather than l = []? »
My question is pretty short, is it bad python "style" to use l = list() rather than l = []? Or, similarly, d = dict() instead of d = {}? Personally I...
(0) odpowiedzi
2017-08-24 11:08 Throw exception or return a value »
My question is pretty straightforward. I have a class called Triangle. This class has a method; public boolean isAnyAngleGreaterThan(double deg);...
(4) odpowiedzi
2017-08-23 04:08 Code style showing "line is longer than allowed by code style (> 100 symbols)" »
I want to use android studio on Mac as a code editor . but when I edit C/C++ Code , always prompt dialog like : line is longer than allowed by code st...
(1) odpowiedzi
2017-08-22 17:08 In C, why is a larger number of functions more preferable than a more complicated function? »
I have run into this phenomenon many times before, but none were as clear for demonstrating my point as the following: The source code for pwhois has...
(2) odpowiedzi
2017-08-20 07:08 Why 'window.onload' but simply 'document' instead of 'window.document' in conventional JavaScript code? »
In most JavaScript I come across, I see that programmers write window.onload instead of simply writing onload. But when it comes to accessing the doc...
(1) odpowiedzi
2017-08-19 17:08 How to know Time limit of code »
I am preparing for informatics olympiad. In them a time limit is always given My question is that how can I knew that my code would satisfy the ti...
(0) odpowiedzi
2017-08-17 22:08 How can I use C#6 to shorten repeated declarations and initialization? »
I've simplified example code below to demonstrate the question. A single Page object can have N Element objects, in theory there could be hundreds. In...
(1) odpowiedzi
2017-08-15 08:08 c++ curly braces and comments »
C++ begginer here. I'm struggling a bit to get what's the best practice for curly braces + //comments. I see that for functions comments above the de...
(2) odpowiedzi
2017-08-14 19:08 How to create a singleton in Java using the spring framework? »
How to create a singleton in Java using the spring framework? There are several different approaches, using factories, using enums, using private sta...
(1) odpowiedzi
2017-08-12 17:08 the Quality between one code and another »
i just want to know when can we say that this code is better than that code i mean what the things that makes the code more effective than other code....
(1) odpowiedzi
2017-08-12 16:08 Are there Node.js coding conventions/standards? »
Are there any OFFICIAL coding conventions/standards regarding Node.JS? I found this one but looks like opinion based: https://github.com/felixge/node...
(0) odpowiedzi
2017-08-12 16:08 Cryptanalysis vs Bruteforce application »
Bruteforce is a simple method for cracking some account but using dictionary attack or key guessing and cryptanalysis is a study cipher but not know t...
(0) odpowiedzi
2017-08-11 18:08 java.net.MalformedURLException: no protocol: XXX.xml »
What I wanted to do is: Force a style check in my build in my Java maven project. I added this block in my pom.xml: <build> <...
(0) odpowiedzi
2017-08-04 18:08 Scala StdIn read methods - correct use (omitting parenthesis or not) »
I'm aware that the official scala style guide states for no-argument methods we should omit parenthesis when calling them if they have no side effects...
(1) odpowiedzi
2017-08-04 12:08 What is UI main fluid container in HTML? »
Not able to understand effects it creates in the HTML. Like what it means when written as ...
(2) odpowiedzi