All Questions

1
answer

How to use $ broadcast (), $ emit () and $ on () in AngularJS

I understand that $emit() and $broadcast are emitters, and $on is an event listener. I'm working with unit tests and I'm not getting access to the following function: eventHandler.service.js (function () { 'use strict...
asked on 04.10.2017 / 15:41
1
answer

Verification of object state invariance between the execution of private methods

In this answer to the question # is mentioned    The most interesting thing to do is to have an object state invariance check between private methods. What is this verification and why can it be important?     
asked on 06.06.2017 / 15:46
1
answer

What is the difference between REPLACE INTO or ON DUPLICATE KEY UPDATE

I'm wondering what's the difference between using REPLACE INTO or ON DUPLICATE KEY UPDATE in mysql, are not both for the same purpose making a change to a field or more in the database? If the goal is someone else who enlightens me...
asked on 04.10.2017 / 14:07
2
answers

How popular is a model from a DataReader in C #?

Sorry for ignoring this question. In PHP there was the possibility of using the "FetchClass" of the PDO that took all the results of a table and threw them into an object of a certain class, but I did not find anything similar in C #. By the D...
asked on 09.08.2017 / 05:54
3
answers

How to implement a "scroll hijacking"

I have noticed in several modern pages a scrolling behavior that goes up to certain interest part of the content, researching, I discovered that this type of behavior is called "hijacking". The term "hijacking" literally translated means "kidnap...
asked on 06.06.2017 / 15:37
1
answer

Regex within SQL Server

How to recover fields with the following pattern? a111/1111 or a111_1111 or a111-1111 or a111+1111 where: a = some letter of the alphabet; 1 = any digit of 1-9; I mounted a Regex that is working...
asked on 07.12.2017 / 15:21
1
answer

What is SPA and what differs from a non SPA page?

Reading this another post from SO that talks about: isomorphic applications, is commented on a response on SPA. What is a Single Page Application? And what is the difference of a SPA page for a non SPA page? What changes in performance is...
asked on 14.06.2017 / 21:45
1
answer

Pick up the user's location without using GPS

Hello. I'm developing an android application that needs to notify a group of users who are in a certain region. The only way I know of picking up the user's location is by using GPS. The problem is that enabling / disabling gps requires user...
asked on 11.11.2017 / 17:21
1
answer

Count of a specific character in a word in Python 3 [duplicate]

I recently asked a similar question, but received answers where my entry was supposed to be a number. Can you count how many specific characters you have in a word? As in "example" it has "2 and".     
asked on 16.12.2017 / 15:06
2
answers

Boolean arguments, in general, are not good?

I was reading some of the Clean Code . The book talks about "good programming practices" , and on the internet, one of the slides    Boolean arguments are generally not good. I did not understand the reason for this sentence. Although...
asked on 09.08.2017 / 18:39