Data dodania Pytanie
2017-06-19 21:06 PEP8 - Contradiction between E129 and W503 »
According to the PEP standards, indents should come before binary operators. Furthermore, multiline conditions should be enclosed within parentheses t...
(0) odpowiedzi
2017-06-19 15:06 Java convention for unknown return type method »
I'm working on a workflow engine that will help customers to define their workflow on our product. In this workflow engine, i made a system of condit...
(1) odpowiedzi
2017-06-18 22:06 When both using and not using the `else` part are cprrect, which one is preferred (in which case)? »
From Python in Nutshell, import builtins _abs = builtins.abs # save original built-in def abs(str_or_num): if isinstanc...
(0) odpowiedzi
2017-06-18 12:06 Using the class name 'Object' in C++ is desirable? »
I think this is not the kind of question that has a definite answer, but has various opinions depending on one's preference. When naming a class, so...
(0) odpowiedzi
2017-06-16 22:06 Python 3: AttributeError: 'str' object has no attribute 'remove' »
This code isn't working for me: def _a(the_list, val): while val in the_list: the_list.remove(val) the resulting error is: AttributeEr...
(1) odpowiedzi
2017-06-16 17:06 Eclipse: how to set XML indentation type for a specific project only? »
Usually I use 4 spaces per indentation level. Some projects however, use something different, like 1 tab. How do I configure this setting on a per pro...
(0) odpowiedzi
2017-06-16 15:06 Can one JavaScript function handle different types of HTML input types? »
I have a question in regards to input, select elements. If I have a radio, text, select elements on the page do I need to provide a single JavaScript...
(1) odpowiedzi
2017-06-15 16:06 Does a validator/linter for Google's HTML/CSS/JS style guides exist? »
I've been looking around for ages, but I can't seem to find any validators for these. I'm looking for similar to PHP_CodeSniffer. I'm talking about t...
(0) odpowiedzi
2017-06-15 05:06 What is a double colons :: in a shell script? »
What is double colon :: in shell scripts? like this piece of script: function guess_built_binary_path { local hyperkube_path=$(kube::util::find-bin...
(2) odpowiedzi
2017-06-14 14:06 Java convention with regard to code format »
Is it allowed in Java convention to write such code: public void nameOfTheFunction() { } A lot of people said me that it is prohibited according t...
(3) odpowiedzi
2017-06-13 09:06 IntelliJ Idea commits the whole class to repository »
I made changes to a few lines of code in a certain class and each time I try to commit them, GitKraken claims that I'm attempting to commit the whole ...
(1) odpowiedzi
2017-06-13 06:06 How do I Avoid Common Pitfalls and See the Overall Picture While Learning C++? »
I have a research job this summer where I need to use C++ everyday full time. I'm coming into the job with only passing familiarity with the language ...
(0) odpowiedzi
2017-06-12 13:06 Javascript file documentation style »
As a newcomer to JS and JS linting, please pardon me if my question is silly. The Pythonic convention for file-level documentation is a docstring at ...
(1) odpowiedzi
2017-06-09 09:06 Node-simple-schema: Remove invalid properties from object »
How can I filter out/remove the invalid properties of a dirty object, so that I get a clean object that only contains the valid properties with node-s...
(0) odpowiedzi
2017-06-08 11:06 Is it possible to create custom rules for clang-format? »
There a some external libraries that use a unique coding style. One example would be Qt's signal/slot-connect syntax. connect(sender.data(), &Sen...
(1) odpowiedzi
2017-06-06 22:06 C Variadic Macro to simplify calls to fprintf »
I have defined a clunky macro to give myself a reduced probability of making mistakes in a project with a large amount of unique logging situations......
(1) odpowiedzi
2017-06-05 17:06 Code sniffer for for converting snake_case to camelCase »
I need a code sniffer for converting all the variables in all of my PHP file from snake_case to camelCase. I don't need the functions which do it in ...
(1) odpowiedzi
2017-06-05 12:06 Max number of parametrs to private methods »
So there is some kind of a rule for clean code "No more then 3/4 parametrs to method". Am curious about should I follow this rule for private methods...
(2) odpowiedzi
2017-06-04 03:06 how to hide local variables »
In my code, sometimes there's a long function, to avoid messed up the local variables, i would use a pair of braces to embrace the details so the loca...
(1) odpowiedzi
2017-06-02 09:06 AutoFormatting Lines in IntelliJ »
I was using the formatter in IntelliJ and the right margin was 100 Because of this, when I auto format my code: IntelliJ automatically split long sta...
(1) odpowiedzi
2017-05-31 21:05 does the order of the operands to comparison operators matter? »
When checking if an object equals some value, is there some difference between: myObject == someValue or someValue == myObject In other words, d...
(2) odpowiedzi
2017-05-30 16:05 Write cleaner code for a multi threaded BOT type of program »
Consider this hypothetic class class ThreadsManager { public static void StartThreads(); } Implementation is not relevant at this point, just ...
(1) odpowiedzi
2017-05-26 08:05 How find the logarithm of the camp size »
Analyse the distribution of the total camp size (TotalSpecies.Count) and the distribution of the natural logarithm2 of the total camp size for non-emp...
(0) odpowiedzi
2017-05-26 07:05 Calculating the ratio of target variable in r »
I want to know that When a variable is binned with four intervals as shown below, the ratio of target variables belonging to each interval. german&lt...
(0) odpowiedzi
2017-05-25 20:05 File Size with Tabs vs Spaces »
Is is true that file size with Tab Indentation is much smaller than the one's with spaces? In the article below it shows Space indented file size to ...
(1) odpowiedzi
2017-05-24 17:05 Conditional arguments in Python function call »
Is there a way pass arguments conditionally in Python (I use Python 2.7)? As an example, this code gives 2 or 3 arguments depending if the 3rd argume...
(4) odpowiedzi
2017-05-24 09:05 Some one please give the helping material for pep 9 assembly language »
I have to implement the following functions through pep 9 assembly language. please give the helping material for pep 9 assembly language Add Sub M...
(0) odpowiedzi
2017-05-23 09:05 How can I check code style of my Android project with checkstyle.xml ? ( from command prompt) »
I have a checkstyle.xml and I need help, how can I check Android project's java code style with checkstyle.xml by using command. Thank u! ...
(0) odpowiedzi
2017-05-22 14:05 How to remove data from Excel file in R »
I'm fairly new to R, and I have to solve this question. Can anyone help me? I've also attached the FlyingFoxMonitoring.csv Question: Some of the re...
(1) odpowiedzi
2017-05-22 11:05 Convention to name null value to a reference before passing to a method? »
My question is more for coding conventions and practice - but are there any impact on memory or performance as well? I have a method like this which ...
(2) odpowiedzi
2017-05-20 17:05 Look for an elegant way to declare an array of struct with strings in C »
I'm trying do do something like what I've done in C++ with QT, in C. This is a part of the C++ code: typedef struct { int order; int ...
(1) odpowiedzi
2017-05-18 17:05 Is there a standard what to write first: the @RequestBody or the @PathVariable? »
If you have a function with @RequestBody and @PathVariable in a function. Is there any standard, which to write first? I haven't found anything while ...
(0) odpowiedzi
2017-05-17 12:05 Is there any standards to write keys in Properties file »
I referred below two links, and get confused every where formats are different. 1.docs.oracle.com/cd/E23095_01/Platform.93/ATGProgGuide/html/ 2.comm...
(0) odpowiedzi
2017-05-16 23:05 What to build in between a Chatbot service like API.ai and a Calendar »
I've been playing around with API.ai and other sites to create a chatbot that can take bookings and I'm learning a lot about how that side works. I ...
(0) odpowiedzi
2017-05-16 16:05 PHP failed file operation handling »
Is there any behavioural differences between the following 2 spinets of PHP code? $f = fopen("file.txt", "r"); if (!f) { .. return error, or exit...
(0) odpowiedzi