All Questions

1
answer

Second backslash in meta-characters when expression is enclosed in quotation marks

When using a pattern in quotation marks, it is necessary to add a second backslash ( \ ) in the metacharacters that have such a bar, as in this case, for example: /\d+/ -> "\d+" Code samples: var str = "Hello 123!"; // u...
asked on 26.07.2018 / 03:22
1
answer

What is the function of uneval?

I was seeing some things in Javascript (which seems novelty to me) and I came across an example that showed a function called uneval . Some questions below about it: This function is new in Javascript (are we in 2018)? Does it...
asked on 13.07.2018 / 00:24
1
answer

What are Mutexes and when is it advisable to use this feature?

I read about Mutexes and the class Mutex . However, I can not clearly understand what Mutex really is and what this class does. Being that I would like to know if I can use this feature to prevent my desktop application from running more t...
asked on 15.10.2018 / 16:24
1
answer

In PHP 7, can the class method contain a keyword name? this is good or bad?

PHP 7, has released a number of innovations for the PHP language. Also, I noticed that classes can now have methods with keyword names. The strange thing is that classes can not have, but methods can (vixe!) For example, this is valid in PHP7...
asked on 16.05.2016 / 16:38
2
answers

What are the consequences of leaving the system without closing the tables?

What are the consequences of Exiting / Closing of a system without closing the database tables? Does it detract from anything in the database? Should I close the system tables or not? procedure TfrmTelaPrincipal.EncerraSistema; begin...
asked on 10.10.2018 / 21:49
1
answer

Apply datepicker to a dynamic input with Jquery

I have a form where multiple fields can be added with datepicker. However, when adding a new field to the form, the Jquery datepicker is not loaded. This is the JS responsible for cloning and adding fields to the form: $(document).ready(fun...
asked on 03.09.2018 / 16:13
1
answer

What is the purpose of the nextTick () method?

I've used the nextTick() method a few times, especially when I need to change something in the DOM, but I did not quite understand what it was for. Can anyone give me examples of their correct purpose? Here is an example of using the...
asked on 23.10.2018 / 22:34
1
answer

Doubt how to measure the number of words between two specific words in a string in R

Hello, People! I'm working on a function in R that measures the amount of words between two specific words, I'm calling the function worDistance , it works as follows, you insert two arguments, given a string t, for example, palavra...
asked on 01.11.2018 / 13:34
1
answer

Use case of the SRP concept in a real application

I am studying some OOP concepts and I see a lot about the SRP issue, "separate actions into classes etc". at the level of tests, I decided to create a small system to register users in order to test the knowledge, only that I came across some qu...
asked on 30.09.2018 / 05:28
2
answers

How to do an implicit conversion (inheritance) without losing information

Hello, I'm doing a project for college where I have to implement 3 classes. These classes inherit from each other as in the model below: public class AssinanteFree { protected int id; public int getId() { return id; } public void...
asked on 28.06.2018 / 13:28