All Questions

4
answers

How to simulate "tail recursion" in C #?

In .Net, I know that it is possible to make cause calls because the F # compiler, when optimizing code, transforms a function with tail recursion into a function with a loop, thus avoiding stack overflows. To make it clearer, I'll use a factoria...
asked on 03.02.2014 / 19:46
1
answer

Compiling on your computer actually improves performance?

Any programmer knows that when compiling a C / C ++, the compiler can optimize code to generate faster executables. But, it's also said there is compiler optimization for your processor. This means that if I created a C program and compiled i...
asked on 17.05.2014 / 10:01
4
answers

Different style sheet for each page or only one?

I'm developing a website and I had a question about a rather boring situation ... When you are developing a web design, do you use only one style sheet for the entire site, or do you make a style sheet for each page? Why all css code in ju...
asked on 04.06.2015 / 16:42
1
answer

Listeners are an Observer implementation?

I'm trying to understand the Observer concept and its implementation, and I ended up finding this example where listeners is used instead of the observable and observer classes: Thisgraphichasbeenremovedfrom , where an altern...
asked on 27.04.2016 / 19:31
2
answers

What is a "dangling object / commit" in git?

My repository has momentarily corrupted after the yesterday's blackout in Brazil . I was able to fix corruption ( so ) and decided to run a git fsck to check the status of my local repository. Here he responds by saying that there are d...
asked on 22.03.2018 / 17:20
1
answer

Differences between getClass (), getResourceAsStream () and getClass (). getClassLoader (). getResourceAsStream ()

In need of loading a resource into my project I came across these two methods. From the choice of one of the two, there were some doubts that I would like to share here. What is the motivation or in what scenario should each be used? Is...
asked on 30.06.2015 / 14:36
1
answer

CSS will-change property: when to use?

According to the W3C specification , the will-change property is intended to inform to the browser which are the CSS properties that will be modified so that it can make optimizations about the elements in question. For example, if I wan...
asked on 13.06.2017 / 17:01
2
answers

Why use / not use * box-sizing?

I've read a lot about discussions about whether or not to use the box-sizing: border-box; property as follows: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } I know she's very...
asked on 26.11.2015 / 20:42
2
answers

What is the difference between htm, html, dhtml and ghtml?

Browsing our "deepweb ", I noticed some variations of URL extension in the browser on a few simple pages. For example, on the globo.com website, which for some cases is .ghtml . For some time I figured Globe had created its own extensi...
asked on 03.02.2017 / 13:24
2
answers

How is Garbage Collection implemented in Go?

In Golang I saw that this language is compiled (and that's right, the website itself tells which architectures compilers generate code for), and, to my surprise, it's Garbage Collected! Garbage Collection is virtually universal in the world...
asked on 19.04.2014 / 01:42