Questions tagged [efficiency]

Use this tag in reference to comparing the efficiency of various systems or algorithms, or methods to measure efficiency. Big O notation is more related to complexity, but could affect efficiency.

Use this tag in reference to comparing the efficiency of various systems or algorithms, or methods to measure efficiency. Big O notation is more related to complexity, but could affect efficiency.

182 questions
21
votes
5 answers

How to slow down your computer (for testing purposes)?

As most people agree, encouraging developers to make fast code by giving them slow machines is not a good idea. But there's a point in that question. My dev machine is fast, and so I occasionally write code that's disturbingly inefficient, but…
3
votes
1 answer

Why are (hexadecimal) hashed passwords/cookies/.. saved as strings in databases?

I'm wondering why all databases seem to store hashed passwords and typical hexadecimal data as char(x)/varchar(x) MySQL uses latin1_swedish_ci as default character encoding, where each character is made of 8 bits. When storing hexadecimal data as…
1
vote
1 answer

How to Learn Doing it Right Way?

I am self taught web developer. I do not have any computer science degree from university. I know HTML5, CSS3, Javascript, PHP and some Python. But I am having difficulties about being efficient. When I create a project, I am buried into files,…
1
vote
7 answers

Cold, neutral attitude to programming languages - sign of a pro developer or not

A profesional developer Zed Shaw says this: Which programming language you learn and use doesn't matter. Do not get sucked into the religion surrounding programming languages as that will only blind you to their true purpose of being your tool…
ERJAN
  • 232
  • 1
  • 8
0
votes
1 answer

Replacing string comparisons with dictionary lookups

Given 2 strings s1 and s2, if I do a simple equality check , it is considered to be O(n) when calculating algorithm efficiency. So, if I am using a brute force approach for the rotated substring question the efficiency is O(n^2) (take the 2nd…
Akash
  • 674
  • 1
  • 5
  • 12
-1
votes
4 answers

Give advice from experienced to beginner programmer on reinventing my wheel(solution)

i ve just tried to do coding bat exercise. There are posted solutions to the problem i tried to solve. However, I was stubborn, i ignored them and tried to code it up my own way(basically reinventing my own wheel - square,bad working wheel). After…
ERJAN
  • 232
  • 1
  • 8