Data dodania Pytanie
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
2016-10-12 11:10 Intellij IDEA Code Style - Insert blank line or additional indent after multiple condition »
When if condition is huge and take several lines then condition and body become a monoblock, because default indent is 4 and IDEA align multiline if t...
(1) odpowiedzi
2016-10-08 01:10 Automated refactoring tool for java - eclipse IDE »
Our team wants to adopt a coherent coding style, that has an automated refactor tool to spread the style across the team easily (not in terms of forma...
(1) odpowiedzi
2016-10-06 19:10 JSON data structure on RESTFUL API »
I was considering, in terms of development, code quality or simply standards, which is the best way to structure the information in a JSON when consid...
(1) odpowiedzi
2016-10-06 10:10 Is there way automatically test the quality of Laravel code? »
In some of PHP framework exist way to check quality of code. Laravel uses the PSR-1 and PSR-2 code. Is there way for checking PSR-1 and PSR-2, that ch...
(2) odpowiedzi
2016-10-05 15:10 Should `using std::cin` and `using std::cout` be avoided or encouraged? »
I searched this site and people says you should avoid using using namespace std. I totally agree. However, what about using std::cin and using std::st...
(2) odpowiedzi
2016-10-05 05:10 How do you think Boost.Log using lots of macro? »
In C++ Coding Standards by Herb Sutter and Andrei Alexandrescu, macros are strongly objected Macros are the bluntest instrument of C and C++'s ab...
(0) odpowiedzi
2016-10-04 20:10 Downloader not working »
Imports system.net Public Class Form1 Private Sub cmdsave_Click(sender As Object, e As EventArgs) Handles cmdsave.Click SaveFileDialog.Fi...
(1) odpowiedzi
2016-10-03 17:10 Applying "Clean Code" style for C and C++ »
It is an opinion based question, so forgive me for asking. I'm studying informatics at university. I have learned 'C' and I'm now learning 'Java'. Al...
(0) odpowiedzi
2016-10-01 13:10 What is the idiomatic way to handle/unwrap nested Result type? »
I read that using unwrap on a Result is not a good practice in Rust. It's better to use pattern matching so any error that occurred can be handled app...
(2) odpowiedzi
2016-09-30 15:09 PHP/MYSQL security check »
I'm relativly new to programing in general so bare with me... I read a lot about mysql security, and php script security and was just wondering if thi...
(0) odpowiedzi
2016-09-28 07:09 Sonarqube not honoring git commit date while calculating new bugs/vulnerabilities/leaks »
I had recently integrated sonarqube in our release process. I have set the leak period as the date of integration, and mandated it in quality gate def...
(1) odpowiedzi
2016-09-27 21:09 First coding language to learn? »
Hi i don't know which coding language to learn first. In the future my plan would be working with developings of different softwares for automatic com...
(1) odpowiedzi
2016-09-26 13:09 Writing clean code in html »
I want to validate a form and show error message corresponding to a validation code. Following is my current code <div class="alert alert-danger"...
(2) odpowiedzi
2016-09-25 07:09 Native Ads working on all Category pages of my Blog but not showing on blog posts »
I am author of 1Hindi.com, when i am using NativeAds Ads Codes on Rt side Widget section my WordPress site i,e My Blog Ads are only showing on Catego...
(0) odpowiedzi
2016-09-23 10:09 How can I reduce lines of code in PHP? »
I am a web developer and I write code in PHP/Laravel framework. I've been tying to follow best practice for writing code and I know it's a good practi...
(3) odpowiedzi
2016-09-23 09:09 Should I write inline comments with sample data/how helpful before logging? »
I am reviewing some lines of python code as follows: except KeyError: error = 'CoMS does not allow order cancel in this...
(0) odpowiedzi
2016-09-22 12:09 Is this sample good sample to use try catch ? What's sugesstions? »
Its a paradox for me, can i handle all exception or let it go to find and solve it. I have a windowservice and it has several methods like this: Is ...
(1) odpowiedzi
2016-09-21 15:09 A cleaner way to go with my controller method »
I am making an app that translates a word from one language to English and gets information about it (e.g. definition, use in a sentence, synonyms, so...
(1) odpowiedzi
2016-09-19 19:09 Why is this python indentation not throwing an error? »
We recently found a bug in our python script and was fixed (tested, committed and pushed) by a colleague on someone else's system. At the time, nothin...
(0) odpowiedzi
2016-09-19 13:09 Is it common practice to "abuse" loops as goto »
If in code there are many if-clauses and execution of code is not sensible on a previous error, is it OK to use a one-cycles loop for this? Simply for...
(2) odpowiedzi
2016-09-17 22:09 Use `next` with an accumulator argument in a `reduce` »
There is a cop: RuboCop::Cop::Lint::NextWithoutAccumulator. Is anyone able to explain what this cop is for, how is it supposed to improve the code in...
(1) odpowiedzi
2016-09-17 19:09 what is the difference between foo and this.foo in an object (without ambiguosity) »
Supposing I have in my code something like that class c { private int foo; public c(int foo) { this.foo = foo; } public c() { f...
(3) odpowiedzi
2016-09-16 18:09 Java Fluent Math API conventions »
I'm currently making small Math api for Quaternions, Matrices, ... and I came accross, while developing the methods with the question, how to design t...
(0) odpowiedzi
2016-09-15 19:09 What is the naming convention for a variable representing an interface? »
Is there a common convention for naming a variable which is storing and interface? For example, it is a common convention to name variables of type C...
(0) odpowiedzi
2016-09-15 15:09 parameter passing with pandas dataframe in python: best coding practice? »
As I am relatively new to python I am not sure about good programming style for passing parameters in a simple context. Let's say we have a very simpl...
(0) odpowiedzi
2016-09-14 23:09 whats better fewer lines or few if statements? »
I was wondering what is a better way to code. Would it be better to have a few lines of if statements, or one if statement but 2 extra lines? e.g. ...
(0) odpowiedzi
2016-09-13 09:09 how to import code style to android studio in windows 10 »
I have created my own code style @ home and want to use it for all projects in office PC. but i can just open CodeStyleSettings from .idea folder of m...
(1) odpowiedzi
2016-09-12 12:09 Enforcing coding standards for new code only »
My company's code base is already big. But we are trying to enforce better quality with code hereon. I am looking for a way to enforce code standard...
(1) odpowiedzi
2016-09-09 19:09 Why globals shouldn't be initialized at 0 / NULL / false in the linux kernel? »
I'm using the checkpatch.pl script from the linux kernel for my own firmware since I use the same coding style (which I like). There is just an error...
(1) odpowiedzi
2016-09-09 06:09 Python file name convention for img and html files (PYTHON FLASK) »
What is the file naming convention for python flask? When should I use underscores "_"? When should I use hyphens "-"? For html files should I use...
(0) odpowiedzi
2016-09-06 22:09 Refactoring: Replace Method with Method Object explanation »
I was looking for refactoring a too length method. Searching I found this technique: Replace Method with Method Object but I don't understand at all....
(1) odpowiedzi