Posts by filipelinhares • 2,417 points
11 posts
-
19
votes1
answer15921
viewsQ: When to use module.Exports or Exports on Node.js?
I am starting my study with Node and I came across the two ways to export something so that it is available with the require, I would like to know what is the best way and why. Thank you…
-
15
votes1
answer398
viewsQ: What does '2>' and '&>' mean in Bash?
I’m starting to study Bash and while analyzing some codes on Github, I came across the following excerpts for creating a Heme: which rbenv &> /dev/null || return $(node -v 2> /dev/null)…
bashasked filipelinhares 2,417 -
29
votes3
answers105525
viewsA: How do I get the project back to a specific commit?
You can give a git checkout <hash-do-seu-commit>. Example: git checkout c8ccd1c Then you’ll go back to the state you were when you did this commit.…
-
7
votes1
answer191
viewsQ: What is the difference between Feature Detection and Feature inference
I wanted to know the main difference between the two forms Feature Detection and Feature inference.
javascriptasked filipelinhares 2,417 -
4
votes1
answer291
viewsQ: What’s the difference between Nodelist and Htmlcollection?
I was reading a code when I came across the following question, I was wondering if anyone could enlighten me?
-
11
votes4
answers913
viewsQ: Is multiple includes bad for performance?
If I use many includes on my page will make it slower or something?
-
5
votes2
answers296
viewsQ: What’s the difference between downcase and downcase!
I’m starting with Ruby and came across the following code: user_input = gets.chomp user_input.donwcase! My question is why I use the exclamation mark after the downcase.…
rubyasked filipelinhares 2,417 -
3
votes1
answer934
viewsQ: Events jQuery runs automatically
I have the following code: $(function(){ function teste(teste){ console.log(teste); } $('element').on('click', teste('teste')); }) When I execute this code the function teste is fired without me…
-
17
votes3
answers31700
viewsQ: Exactly how Javascript works
I wanted to know how it works exactly, where it is necessary to use within some scope as if etc.
javascriptasked filipelinhares 2,417 -
2
votes1
answer884
viewsQ: When it is mandatory to use Javascript point and comma
I wanted to know when it is mandatory to use a point and comma in Javascript.
javascriptasked filipelinhares 2,417 -
117
votes7
answers78990
viewsQ: How does this if/Else work with "?" and ":"?
I am studying Javascript and I have doubts about the different ways to make a if/ else. For example, this: foo ? foo : foo How exactly does it work?…