Data dodania Pytanie
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
2017-07-05 05:07 Should I use strings or constant integers to map properties? Does it make a difference? »
Example of strings mapping properties: var OPACITY = { "visible" : 10, "hidden : 0.1 } How Ill be using it: window.opacity = OPACITY["visible"] ...
(1) odpowiedzi
2017-07-03 15:07 What is the best way to structure JavaScript code in a JS file? »
I need to structure the code very well for my site because JS code is around 3000 lines. So there are a lot of functions, jQuery event listeners, vari...
(0) odpowiedzi
2017-07-03 02:07 jquery scrolled event runs code multiple times »
So with the following code the console.log outputs scrolled to the dev tools console multiple times while scrolling the page. $(document).on("scroll"...
(1) odpowiedzi
2017-07-02 22:07 Android Studio code style features: how to combine "arrangement" and "region" »
My question is about Android Studio code style features. "Arrangement" is a convenient feature, and "region" is also convenient. But when I use the...
(0) odpowiedzi
2017-06-30 12:06 How to improve readability of HTML code embeded in PHP »
Suppose we have something like this: <?php while(some statement here) { echo "some HTML here"; //.................. } ?> As you know ...
(3) odpowiedzi
2017-06-28 15:06 Is there a name for a programming structure where your code will look like a sentence? »
I'm looking for the name of the technique about how to make code look like a sentence. Example: In many Test-Frameworks, you can just program tests ...
(2) odpowiedzi
2017-06-26 20:06 Error in Android Studio 3.0 (canary build 4) »
I have Android Studio Preview (3.0). When I open it, it gives me an error: Error:Failed to open zip file. Gradle's dependency cache may be corru...
(0) odpowiedzi
2017-06-23 00:06 Factory Pattern or Extended Method? »
I am studying Design Patters and I have a situation where I am not sure what would be a better practice: I have a class "Category" which has several ...
(2) odpowiedzi
2017-06-22 05:06 Method name that creates and persists object »
I want to find proper method names, that will show difference, 1) when we just create object and 2) when we create and save object. I want it to be s...
(0) odpowiedzi
2017-06-21 17:06 Java Code Style: Positions Inside Class »
Can you share JLS/JEP or another Oracle/Twitter/Google java code style conventions document where declared positions of class elements. Like: class E...
(1) odpowiedzi
2017-06-20 15:06 Is it good practice to use ordinal of enum? »
I have enum: public enum Persons { CHILD, PARENT, GRANDPARENT; } Is there any problem with using ordinal() method to check "hierarchy...
(7) odpowiedzi
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