5,844 reputation
1347
bio website
location
age
visits member for 3 years
seen 47 mins ago

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
26
answered The recommended Way to exit a Loop
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
24
answered Need help identifying a league scheduling algorithm
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.
Feb
12
comment Boss is ordering me to send spam. How to I deal with this issue/what is my options?
@Miloshio it stays a comment and I hope your boss doesn't know your stack username.
Feb
12
comment Boss is ordering me to send spam. How to I deal with this issue/what is my options?
Find spamtrap emailadresses and inject them in the run, that way your server will get blacklisted in no-time.
Feb
12
comment Code maintenance: Is it better to develop in English or my mother tongue?
If you like job security and want to make outsourcing harder: your native tongue, or even better, your local dialect. ;-)
Feb
11
comment Staying productive by keeping focus on a feature while developing
In a team you would get asked: "What's the status of that feature you're developing?" and if you reply: "Nothing because I got sidetracked on thingie x,y,z" then people would start questioning why you're not following the plan.
Feb
10
comment Is a programming language a set of programs or a set of instructions?
@JörgWMittag John McCarthy didn't inted for Lisp to be a programming language.
Feb
8
answered Is a programming language a set of programs or a set of instructions?
Feb
8
comment Is a programming language a set of programs or a set of instructions?
Your first argument is recursive.
Feb
6
comment I have generally read that having many (>4) arguments to a function/constructor is a bad practice. Is this still considered a bad practice?
Yeah it's still bad smell because often those parameters belong together: consider the function IsEnlistAble(Age, Gender), both age and gender belong to a person, the same person, not different persons, so you would make the function IsEnlistAble(Person) that would be much clearer and if requirements change like, only males shorter then 2 meters are enlistable, then you wouldn't have to change the arguments.
Feb
6
comment Relation between object orientation and algorithms
"Why algorithms textbook are more procedure-oriented?" Java is also procedure-oriented. Java is an object oriented procedural language.
Feb
4
comment Hard Coded File Paths - Solution?
If your images aren't too big (< 1MB), then you could consider storing them in the database.
Feb
3
comment What's the benefit of GIT for solo programmer?
@gnat, your first comment links to a closed too broad question, your second comment links to a 2 closed: duplicate questions. Why would you say this question is invalid and then provide links to other invalid questions?
Jan
31
comment Should Latin-1 be used over UTF-8 when it comes to database configuration?
How much of you codebase would break when converting to UTF-8 ?