Reputation
1,199
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 19
Impact
~40k people reached

Apr
1
awarded  Popular Question
Mar
24
comment Why do so few languages with a variable-type 'operator' exist?
The strategy pattern can help implement such behavior. en.wikipedia.org/wiki/Strategy_pattern
Mar
9
comment Test cases do all the work through helper method — bad practice?
I think it's fine to reduce duplication this way, however, in my opinion, reading the test alone should still give clear indication of what the test is doing. Also, most frameworks have a setup and teardown functionality in it, any reason why you cannot leverage those instead?
Feb
26
comment Should I TDD correct view returned from controller?
Which technology are you using? For example, in C# MVC it's trivial to assert that the correct view name is being referenced. Is it not crucial to your application that your controller returns the correct view?
Feb
5
awarded  Popular Question
Jan
27
comment What's the point of running unit tests on a CI server?
@BoristheSpider that workflow sounds great, I assume conflicts still are resolved manually, or is it required for the feature branch to pull master first?
Jan
25
comment Should we avoid language features that C++ has but Java doesn't to increase maintainability?
How are languages to evolve if people are unwilling to use new features? The purpose of the new features is to make your life easier by solving common problems. If users do not use new features, then there's no motivation for anyone to implement them.
Jan
21
awarded  Benefactor
Jan
13
awarded  Promoter
Jan
10
comment Filtering request and responses in RESTful MEAN stack
This is a good point for this particular use case, however I find myself in the same scenario for other resources, for example employee with a field salary.
Jan
10
revised Filtering request and responses in RESTful MEAN stack
edited tags
Jan
10
revised Filtering request and responses in RESTful MEAN stack
edited tags
Jan
10
asked Filtering request and responses in RESTful MEAN stack
Dec
28
comment Tracking online users with a stateless architecture
I guess I don't understand the question, why should the client be transmitted recentUserAccessTimestamp? To me it seems like you're just transferring that state information to the client. If the client sends the old token again, is the system going to behave differently than if it were to send the newer token?
Dec
28
comment Tracking online users with a stateless architecture
I think we may have the same view, just worded differently. In either case, I think it would be worth while to simply store this information server side in the database in some sort of logging / audit table. Just because your application may be saving this information doesn't mean the exposed service has to behave differently because of it.
Dec
28
comment Tracking online users with a stateless architecture
That is different than what most people would consider a stateless service. Stateless typically implies that no state information is passed between client and server. If the server wants to cache things, then that would be opaque to the client.
Dec
28
comment Tracking online users with a stateless architecture
Would this not then make it stateful?
Nov
7
revised How is spinlock different from polling?
Expanding acryonyms
Nov
7
suggested approved edit on How is spinlock different from polling?
Sep
25
comment How should I pass login data from client to server using REST API
Show me the money!