bmomb
Joined 9 years ago
Joined 9 years ago
The fastest way to reverse a string is in JS is:
function reverse(s) {
var o = [];
for (var i = 0, len = s.length; i <= len; i++)
o.push(s.charAt(len - i));
return o.join('');
}Can you explain what i'm missing? I'm young and non-american, maybe i'm missing context.
Its the beginning, soon enough we all will get those 4k-160hz-retina_display screens. :]
https://en.wikipedia.org/wiki/Computer_monitor#/media/File:2...
In Brazil we have the same mentality of “sides” and I believe that this is destroying the good sense of some people.
It’s not because everyone does it that it should be the norm, or that is not evil.
Our true challenge is how we can stop this type of propaganda without hurting any freedom?
In Brazil All the big publishers are in someway connected to the people in power, so our non-fake-news were never really impartial or independent. Some even say that the media should be controlled by the government (which is to me a 1984 scenario, but not so much different from what it’s today).
I believe that the only way to end this fake-news madness will be a truly anonymous p2p communication, but this would generate another kind of problem.
(Sorry for my english, I’m still learning how to write properly and an argument is kind hard to do, I may sound like provocative but that is because of my lack of vocabulary not my intentions)
In the beginning i learn to ignore it because the mentality of "moving fast and break things", and really worked because my tasks were fairly simple and it would have fewer critical points, but thinking now that is harmful when doing more complex things, i should slow down and trust in my 'feeling' more.
PS. `git add -p` is amazing, thank you for this too.
Do you have any recommendations on TDD books?
I can learn from my mistakes, but some of them are really trivial, i can find better examples in math, like:
In a calculus question, I need to find the volume inside some functions, this type of question is not new, i know how to solve, but somewhere deep in the calculation i change 'integral of sin' to be `cos` instead of `-cos` making the everything more hard to solve and obviously getting the wrong answer.
This kind of thing is currently my biggest problem and i cant find a real way to improve.
And for your second argument, it’s just to easy to follow the computers “orders”, a lot of people would just go for the order because it’s already justified, something along the lines of “I would do different, but the machine told me that everyone that on in that way get something wrong”.
I agree that this type of software would be good when one needs advices, but it would have to be complete trustworthy, giving wrong advices to a suicidal person by example can be devastating (and in this case not even thinking about the manipulation that would be possible by the corporation).
If every person chooses for the better response and action given the a situation how can a individual be unique?
If all husbands reply to a bum in the exactly same way why do you really need a husband? Failing is a big part of being human, sometimes that can cause harm but failing and learning is one of ours core functions.
I rather be good than be you?
(Sorry if i made my post a bit 'agressive', its not my intent, english is not my main language and i still have to learn how to write properly)
(I'm not from USA or currently living abroad but i think that is "fair")
Protecting the user is (in most of the cases) fighting ads.