Łukasz Zwierko
  • Member for 7 years, 1 month
  • Last seen more than 2 years ago
External API calls from a C#.NET client
Accepted answer
3 votes

Few thoughts: I personally very much dislike the IClient interface returning an object, which you then cast to a well known list of well known object. Makes no sense to me at all, what is the point? ...

View answer
Handling conditional logic inside controller actions
3 votes

This is just copy of my answer to your question on SO. Usually you don't use action filters for so-called business logic of your web application - this is what the controllers are for. Action filter ...

View answer
Report Page on Volunteer Signup Website
2 votes

Just some general advice: 375 queries to display 1 page does seem a lot, not only because of db execution time, but also due to transport latency and serial execution. For example: say average ...

View answer
Scanning through logs (tail -f fashion) parsing and sending to a remote server
2 votes

Ok, so my 5c is that just looking at the code, I can clearly see that you should rethink what each class should do and re-module the whole solution again. For example, the http communication seems ...

View answer
Remote control: receiving the command
Accepted answer
2 votes

it's a bit hard to comment on your question as it's really very general. You say that the device should receive commands as fast as possible and with very few data and than you ask "Does it overload ...

View answer
Display submenus
Accepted answer
2 votes

Ok now I see the whole picture. So my comment to your code is that your idea to workaround lack of TreeView (which, by the way, can be customized to be always expanded and without +- icons) is pretty ...

View answer
To-do list - HTML/CSS/JS
1 votes

so just 2 things here: if(task=="") alert("Are you sure you do not have any task to do?"); such comparison is a bit risky in JS. In case of checking for empty values it's better to do if(!condition) {...

View answer
Factory dependency injector
1 votes

I'm not sure I totally understand your idea of dep injector nor the code (I don't do php actually) but maybe I can give you a bit insight into what DI is and what it is for. So basically in OOP ...

View answer
Configuring DI when using four-layer architecture
Accepted answer
1 votes

Actually, in this case you are not configuring ninject in presentation layer, as the presentation layer in case of MVC is cshtml files. DI engines (like ninject) should be generally configured in ...

View answer
jQuery form builder for parsing email array into single input
1 votes

General advice on code duplication is to detect pieces of duplicated code and extract them into separate, reusable, functions. Example: var $row = $('<div />', { class: 'row' }).appendTo($...

View answer
Computing the integer square root of large numbers
-1 votes

don't want to be an ass here, but in your case all the heavy lifting is actually done by Int(Double(n).squareRoot()) which is implemented in Swift standard library (I suppose, not a swift programmer ...

View answer