5,859 reputation
1347
bio website
location
age
visits member for 3 years
seen 2 hours ago

May
1
comment Finding the first index in which the element and the index are the same
Make code that keeps using the original list instead of recursive code that splits the list into new lists.
Apr
28
comment List comparing techniques for faster performance
50k and 400k aren't particularly big lists. two foreach cycles or Linq this will get you O(n^2) time complexity and yes that is a slow approach.
Apr
24
comment Is String processing more complex than number processing in programming languages?
In most programming languages strings are a layer of abstraction on top of numbers. So when you're processing strings, under the hood the computer translates it to numbers and processes numbers.
Apr
23
comment Using JOIN keyword or not
@RemcoGerlich why it has been deprecated isn't under discussion here. What's under discussion here is whether to use the old or new syntax. Whether one is better then the other or not is moot: you shouldn't use old syntax. The why question is another discussion. (one that has been settled 20 years ago.)
Apr
23
comment Using JOIN keyword or not
I also tend toward that style to minimize surprise I think you just answered your own question. Surprises are bad.
Apr
22
comment Any library or dll to use to give a free lancers project from clients who accept your work but not pay
Even if it's written well, it may still be nonsense. If your userbase is low enough and not too tech savy DRM works surprisingly well. And it is just not that simple.
Apr
22
comment Any library or dll to use to give a free lancers project from clients who accept your work but not pay
There are lots of ways DRM can work, especially in the kind of situations the OP is talking about. I know it's popular to kick against DRM but there are nice technological measures to make this work. Not waterproof, but waterproof enough.
Apr
16
comment Entire webpage obfuscation
If you need to obfuscate your php you are doing it wrong.
Apr
1
comment How often is software speed evident in the eyes of customers?
@BenL on the other hand I experienced the opposite, some operation that was slow before we made fast, so fast that users thought the action either hadn't executed or failed.
Mar
31
comment Check distance between all elements in a list of numbers in O(n*lg(n))
The check_duplicate is not needed. And your code will break on 1 set element. Also what about negative k ?
Mar
12
comment How to budget for a programmer you're not ready to hire yet?
Sorry, I can only comment with an xkcd xkcd.com/1425
Mar
11
comment How can I avoid these nested repetitive ifs?
I think you should refactor it and not have status and host together.
Feb
27
comment How to work with a messy codebase and client
You offered to redo the site, no extra charge, he refused. This. Now you can drop the project, refund him and have no need to feel bad at all.
Feb
26
comment The recommended Way to exit a Loop
In reaction to your edit: you can still wrap the buffer-reader in a function and provide "line" as an argument to that function. No need for globals : RetunSuccessOnBufferedLineRead(line)
Feb
26
comment SQL - Algorithm for finding availability of a resource
Convert your time-ranges to time-slots and your problem becomes a lot easier to solve.
Feb
26
comment SQL - Algorithm for finding availability of a resource
+1 for converting timerange to chunks. That way you can easily add them together and get your answer.
Feb
25
comment Is it premature optimization to add database indices?
Not adding indexes is like using bubblesort. Most often you won't find any problems when you test it but once your program starts scaling up on live you're in for a whole lot of problems. And indexes can easily make a factor 100 in speed difference.
Feb
23
comment Is it bad or good to wrap mutable objects in immutable containers?
What if you have an immutable container, that contains a mutable container what would you have? I wouldn't call it immutable.
Feb
18
comment How to iterate through all permutations of valid links between nodes
This is a hard problem, with 7 point you have like 21 possible paths which would make for like 2^21 possible states of your situation.
Feb
13
comment How can i get around of infinite circle of technology change
What is the goal of your personal projects? Implementing something that you know and are comfortable with is a good way of learning a new language or framework. In that way your reimplementation of your personal projects helps you get proficient with new technologies.