All Questions

2
answers

What is a chained list?

I've been reading some materials and seen a lot if talking about threaded lists. I even saw the code sample (in C) below that tried to "illustrate" what was one. struct Node { int info; struct Node *proximo; }; What I would like to...
asked on 08.11.2016 / 12:17
1
answer

What is the purpose of Array and String Dereferencing implemented in PHP 5.5?

In the PHP manual, we can see the New Features functionality of Array and String literal Dereferencing . Example: echo 'string'[2]; // r echo ['stack', 'overflow'][1]; //overflow Thinking about whether to get a index from a strin...
asked on 03.07.2014 / 18:09
1
answer

How does the JavaScript garbage collector work?

Simple variables Correct me if I'm wrong, but in Java the garbage collector deletes objects that are no longer referenced: Cliente cliente = new Cliente(); cliente = null; // o coletor de lixo cuidarĂ¡ disso The same goes for JavaScript?...
asked on 18.09.2014 / 13:36
2
answers

Apply, sapply, mapply, lapply, vapply, rapply, tapply, replicate, aggregate, by and correlates in R. When and how to use?

What is the difference between the functions apply , sapply , mapply , lapply , vapply , rapply , tapply , replicate , aggregate , by and correlates no R? When and how to use each o...
asked on 04.03.2014 / 23:52
2
answers

Sort ListT using regex

I have a List of directories that is sorted by name: List<DirectoryInfo> dirs = parentdir.GetDirectories().OrderBy(c => c.Name).ToList(); The problem is that I have folders whose names are numbers separated by periods (as if...
asked on 10.04.2015 / 19:43
3
answers

Is it possible to handle PHP errors via code?

As everyone knows, PHP returns runtime syntax errors in the browser, such as fatal errors and exceptions. Is it possible to handle these errors via code so that I can save to the database in an error log table? The need is because I use a...
asked on 03.10.2014 / 19:38
2
answers

Is there any reason for the separation of java and javax packages?

In the java documentation , there are several packages organized within the java and javax packages, for the most part. There are even some packages that seem to be duplicates, such as java.sql and javax.sql . Is there any expl...
asked on 17.03.2017 / 12:18
3
answers

Difference between Object and Instance

In object-oriented programming, a lot is talked about both instances of classes and objects. Looking for the meaning of each one, I realized that sometimes the concepts are unified and they are treated as synonyms, sometimes the concepts differ...
asked on 23.03.2017 / 19:23
3
answers

How to perform unit tests on nodejs

I would like to do unit tests on Node.js , I am using grunt-jasmine , but it does not recognize the variable exports , module and nor required . Is there a way to solve this or does someone suggest a testing framewor...
asked on 11.12.2013 / 19:28
1
answer

How to really understand Streams?

I've been working with C # and .NET for a while, and I've seen the use of streams for file reading, HTML response writing, file upload, and more. It turns out that until today I did not understand what a stream really is, when they should be use...
asked on 07.02.2015 / 01:24