Reputation
10,501
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 38 50
Newest
 Yearling
Impact
~286k people reached

2d
comment What was the first mechanical Turing-complete machine ever constructed?
The first working freely programmable computer was maybe Konrad Zuse's Z1
Feb
2
comment Why use PDO's rowCount() if I can just use PHP's count()?
A SELECT COUNT query will be much, much faster than actually loading all the rows and count them.
Feb
1
comment Web browser resetting connection
It's connections per hostname since all go to the same server. Not 100% sure about the javascript on page load but as far as I know this is limited the same way. Merging files into one single file (or as few as possible) is often recommended to increase load speed. (also moving files to a CDN can help since this would be a different host)
Feb
1
comment Web browser resetting connection
browserscope.org/?category=network
Feb
1
comment Web browser resetting connection
As far as I know there is a hard limit of concurrent connections at any time (6 for most browsers last time I checked). Did you try to queue the requests and handle the next one only if the last one has finished? A brutal and bad way to do this would be to use async: false, this would block the browser and totally fail if there is any server side problem. But for testing it may give you some idea what's going on.
Jan
30
comment Help in understanding computer science, programming and abstraction
Read. Understand.
Jan
29
comment Advice on program performance after changes
@Ange1 it's a search engine (basically a type of NoSQL document storage based on Apache Lucene indexer) so there is not exactly a question of being compatible. You would have to export your data into it and then use it for queries. It's main purpose at some time was full text search but aggregations made it into a great tool to filter by attributes, tags and similar. Communication with it is via RESTful JSON API, so rather easy, especially if your language supports easy conversion from Hash/Dictionary structures to JSON.
Jan
29
comment Advice on program performance after changes
I have done similar queries to filter over large lists of 'attribute' like data with ElasticSearch aggregation. Which is not only more performant but also led to far simpler code. Maybe worth a look if exporting the data would be an option.
Jan
25
comment Why are semantics and type systems are so important?
One example of such a pitfall may be be PHP's left associative handling of the ternary operator: stackoverflow.com/questions/20559150/…
Jan
25
comment Why are semantics and type systems are so important?
For semantics IMHO they are more relevant on a level of language design and implementation (not that other programmers would not profit from knowing about it since it will help understand what actually happens and how to avoid certain pitfalls in some languages). For type systems this is quite different since you will make decisions based on how a language handles types (one of the most important if a language with a certain type system can even be used for some projects). It will have a very strong effect on how your code looks and how complex it may become for certain tasks.
Jan
21
awarded  Yearling
Jan
14
comment Where is a good place I can discuss the details about web development?
While some questions may be on topic here it sounds like you are more looking for more general info (which would be closed as too broad or for other reasons). You could start to use the chat rooms here (or the web related ones on StackOverflow since you have enough reputation. Or maybe have a look at reddits /r/webdev subreddit where you can have open discussions about mostly anything.
Dec
12
comment All methods in one file/class versus multiple files/classes
Ever considered using a text editor or IDE that allows to search over multiple files?
Dec
7
reviewed Leave Closed Can we replace XML with JSON entirely?
Dec
7
reviewed Leave Closed Almost every reported bug is a high-priority bug
Dec
1
comment Why do we need both Priority and Severity?
Hmm, I think a bug that would damage data is more severe than something that is just annoying like say some functionality taking too long to load. Both should be fixed but those with higher negative impact should be fixed first.
Nov
20
comment Is there any danger in rendering user-entered HTML and can it be mitigated?
What was already said, script and iframe would be dangerous. Beyond that a malicious user could use any amount of invalid html, opening tags and not closing them, inserting CSS that changes the display of your sites html, linking to malicious sites (and to some degree hiding the link). Just what comes to mind immediately. Putting it inside an iframe as @Karan says could possibly avoid some such problems.
Nov
12
comment shopping system cart problem with stock
There was a similar question here: programmers.stackexchange.com/questions/133925/… In short there is no 'best way'. You can implement 'reservations' but run the risk to block items (for some time at least) or have to make a final check at sell out and run the risk that you have to tell the customer that the item is gone.
Nov
7
awarded  Generalist
Nov
5
comment Elasticsearch and relational database combination
Elasticsearch facetted search will be the best fit for that type of query. It is super fast and once you start to search over multiple facets it will beat most RDBMS solutions. Not only will it give you the products you are looking for but also the number of items for each facet. So say you have a search for text like 'tshirt' and a faceted search for a brand it will tell you how many products there are for each color, sie, price etc. Not only that but for prices you can define 'buckets' of a certain size.