Data dodania Pytanie
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
2017-08-03 04:08 How to take a simple integer matrix as input in python3 »
I want to take a simple matrix as input in a 2-D array, but get a Runtime Error - NZEC error. Matrix - 1 2 3 4 my input code - for i in ran...
(1) odpowiedzi
2017-08-02 13:08 Angular 2 standard coding style guide »
I can see the style guide written by angular team over here: https://angular.io/guide/styleguide and i agree with most of the guides but there i...
(1) odpowiedzi
2017-08-01 17:08 What is the better way of writing input[type=text] or input[type="text"] in css »
Writing some CSS for my own project. When writing styles for the form element, I wrote some CSS as below: input[type="text"], input[type="email"] {} ...
(1) odpowiedzi
2017-08-01 14:08 Use of constants in Java class »
I have a Request class with a number of final and not final fields. It's used for one and only one type of request. But the service, to which it is ...
(2) odpowiedzi
2017-07-28 19:07 Dagger2 + MVP + RxJava + Retrofit 2 »
My new project is gonna start . Libraries and programing approach is correct or need to add more. Please let me know. Suggest me most recent successfu...
(0) odpowiedzi
2017-07-28 09:07 Is there a name for copy and paste coding error? »
Is there any name for the coding mistake that is caused by defining a variable by copy and paste? Example Wrong For example, this part is written...
(0) odpowiedzi
2017-07-27 13:07 IntelliJ IDEA - Opening brace for case block in Javascript »
IntelliJ keeps formatting my switch case opening brace as follows: switch (example) { case 'example': { const val = 'example'; return val...
(1) odpowiedzi
2017-07-24 19:07 Python list comprehension remove element and next element from list »
I wanted to use list comprehension to remove all the occur ices of '\x08' (backspace character) from a list of chars I also wanted to remove the char ...
(1) odpowiedzi
2017-07-23 01:07 ES6 Formatting in Sublime Text 3 / VS Code »
I was watching a video tutorial and I found ES6 arrow function ( => ) was formatted in a symbol. Please let me know is there any plugin/extension o...
(1) odpowiedzi
2017-07-21 21:07 How to write a shorter and more efficient code for a for loop with try catch retry mechanism? »
I have to make a function call. If it fails, I retry another 2 times. If it still fails after the 2 retrys, I throw an exception. Below is my current...
(2) odpowiedzi
2017-07-21 09:07 How do I send notifications and minor updates to all users of my app? »
A little background I'm currently a novice programmer eager to learn how Android apps. I believe that I learn best by challenging myself, so I'm tryi...
(2) odpowiedzi
2017-07-20 12:07 Compare constant equals object or object equal constant »
Follow Java best-java-coding-practices.htm, they say we need call .equals on known string constants rather than UNKNOWN variable String string = new ...
(0) odpowiedzi
2017-07-20 11:07 For my bread crumbs anchor links are not present in magento 1.9.x »
Please have a look at the code of breadcrumbs.phtml: <?php if($crumbs && is_array($crumbs)): ?> <!-- SLIDER START HERE-->...
(2) odpowiedzi
2017-07-19 14:07 Any logical explanation behind android naming convention ? »
I am wondering that could be a logical explanation behind: Non-public, non-static field names start with m. in Android https://source.android....
(1) odpowiedzi
2017-07-18 20:07 Php PSR Standards for long comments »
I have a really long url (100 chars) to be added in a code comment that may need to be broken down in 2 lines due to the PSR 2 Lines Soft limit (80 ch...
(0) odpowiedzi
2017-07-18 09:07 How to safeguard from SQL Injection while dynamically generating insert values in raw query? »
I have a need to run raw SQL in the context of EF for performance reasons. I cannot use Stored Procedures as I don't have control over the DB. I have ...
(0) odpowiedzi
2017-07-18 00:07 Spring Rest controller return only status (restrict returning response value) »
Usually in spring boot we are using ResponseEntity return type for rest controllers which can contain or HttpStatus or {HttpEntity, HttpStatus} pair. ...
(0) odpowiedzi
2017-07-17 14:07 django strange warning for urlconf »
Django behaves as I hoped and expected, but gives me a warning. It seems my use-case was not thought about. Which confuses me, so my question: do I mi...
(1) odpowiedzi
2017-07-14 16:07 Best way to manage key-value pair in c# »
There is a requirement. I have one excel import feature to add data to database from excel file. I need to add there a filter to check data before imp...
(1) odpowiedzi
2017-07-13 13:07 What are best practices for testing methods which call similar method of same class with different parameter types? »
What is the best practice to test method, which calls similar method of same class with different parameter type? Should an instance be mocked or no?...
(1) odpowiedzi
2017-07-10 16:07 Naming conventions when using other objects in an application than the relational data scheme provides »
The relational data scheme for my web application defines three tables: Items with the Columns Id and Name Attributes with the Columns Id and Name ...
(0) odpowiedzi
2017-07-10 13:07 Seperate AJAX controller vs current controller? »
I have a question more regarding style and organization that anything else. I often find myself having a single page (controller) that requires multip...
(2) odpowiedzi
2017-07-10 08:07 How to solve The opening PHP tag must be the first content in the file coding standard error »
Error . The opening PHP tag must be the first content in the file My file code FOUND 1 ERROR AFFECTING 1 LINE code here <?php $installer = ...
(0) odpowiedzi
2017-07-09 18:07 Assigning a value to a vending machine in python »
I am just trying to assign a value and create a total. Can someone please help me i messed up the code trying to find the right place to format the va...
(0) odpowiedzi
2017-07-08 19:07 What is the style guide for code snippets in Javascript libraries? »
In my Javascript library I create webworkers from code strings as follows: var blob = new Blob([someString]); var blobURL = window.URL.createObjectUR...
(0) odpowiedzi
2017-07-06 20:07 Good pattern for multiphase algorithm? »
Is there a pattern (refactoring) to improve this piece of code? int phase = 0; foreach (var some in arrayOfSome) { if (phase == 0...
(2) odpowiedzi
2017-07-06 11:07 Indenting HTML tags on multiple lines »
I can't find a guideline on how to indent HTML tags on multiple line, and the solution I am currently using doesn't really satisfy me. Imagine we hav...
(0) odpowiedzi
2017-07-06 11:07 Could someone explain how this function works so i can document it »
I'm using this function in a script that converts an rss feed to html. By using this function i'm eliminating a bunch of .encode('utf-8') calls. I'm n...
(1) odpowiedzi
2017-07-05 13:07 Where to place constant attributes? »
I want to write clean code in java and I am very insecure where to place my attriutes. I often cannot decide, if I place them on top of the class, i...
(2) odpowiedzi