All Questions

2
answers

What is the importance of README.md in Git?

I have some doubts about using README.md because I have never used it on any project and I want to know what its purpose is.     
asked on 08.05.2018 / 01:02
1
answer

What's the difference between / bin / bash and / usr / bin / env bash?

I do not know much about shell script, I have always used /bin/bash , but I noticed other variations: #!/usr/bin/env bash #!/usr/bin/bash #!/bin/bash What's the difference between them? As far as I...
asked on 01.08.2016 / 18:00
1
answer

What is the difference between the apply, call and bind methods when calling a function in Javascript?

Sometimes I use these methods but I do not know the difference between them (and I want to know what exactly that is for). function load( arg ) { console.log( this, arguments ); } load.apply('www', 'sss'); load.call('www', 'sss'); load.bi...
asked on 05.02.2014 / 15:55
3
answers

How to optimize this function for Fibonacci sequence?

On codility site there is an initial challenge for you to refactor this code: var yourself = { fibonacci : function(n) { if (n === 0) { return 0; } if (n === 1) { return 1; }...
asked on 13.01.2017 / 00:24
1
answer

Differences between Python versions 3.x and 2.7

I'm going to start a project in the faculty related to search engines and I want to take the opportunity to also learn Python. I do not know much about language, and my biggest question is which version, between 3.x and 2.7, has better suppor...
asked on 19.02.2016 / 03:08
3
answers

What are the native PHP exceptions?

Where can I check all the exceptions (native) that can be launched by PHP? I searched and found only forms of treatment with try/catch .     
asked on 14.04.2015 / 16:57
4
answers

How do StringBuffer () and StringBuilder () behave?

Problem and Mystery: StringBuffer y = new StringBuffer("Eduardo"); I'm using a StringBuffer because I need to add some values to it later. I was debugging and noticed that there is a blanks at the end. Notice the image: Image...
asked on 27.02.2014 / 22:17
2
answers

Draw path on the map

How do I draw a certain route using the Maps API V2? What I want is something like this: I go to street A and street B and get the picture of the route between these two streets. I do not want API to give me a hint about the best path but the ex...
asked on 25.02.2014 / 15:58
4
answers

Return typing in PHP 7. What are the advantages?

I was giving a test in PHP 7 and checked that it now accepts to define which type of data is going to be returned. Here are some tests: Defining the instance to be returned function test_object(): stdClass { return new ArrayObject;...
asked on 21.10.2015 / 17:33
4
answers

Why are maps faster than arrays?

I have always read and heard that maps are much faster than arrays for searches. Until I decided to see how much I did a jsperf: link What I would like to understand is what mechanisms make mapping faster, and why. edit: In jsperf above,...
asked on 22.08.2014 / 21:41