Reputation
3,778
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
14 29
Newest
 Yearling
Impact
~172k people reached

Apr
27
comment Can one html page with web services replace current server-client technology?
It is possible to simultaneously provide an AJAX-oriented approach and an indexable site. So long as your individual ajax "pages" have urls (usually only the bots follow the real urls, with the users being "navigated" via the history API), even an AJAX-ified site can be indexed. Some frameworks are designed to provide strong support for a hybrid approach, providing JS users/bots with a more performant site while generating pages for non-JS users/bots. ReactJS w/NodeJS is a good example of this. Also, take note that GoogleBot has had strong javascript for a while.
Apr
21
comment HTTP Status Code for “Still Processing”
@Andy: True, but so is every other alternative. E.g., 202 is really meant to be a response to the request which initiated processing, not the the request that requested the results of the processing. Really, the most spec-compliant response is 404, since the resource was not found (because it didn't exist yet). There's nothing stopping the API from providing the relevant api data within the 404 response. Mind you, 4xx/5xx responses tend to be annoying to consume; some languages will fire an exception rather than just providing a different status code.
Apr
20
comment HTTP Status Code for “Still Processing”
@MatthewHaugen: OK, it's an answer.
Apr
20
answered HTTP Status Code for “Still Processing”
Apr
20
comment HTTP Status Code for “Still Processing”
HTTP Status Code for Resource not yet available suggests returning a 409 conflict response ("The request could not be completed due to a conflict with the current state of the resource. "), rather than a 404 response, in the case that a resource doesn't exist because it is in the middle of being generated.
Apr
19
comment Is the mechanism used in Passwordless module widely used?
For most scenarios, "avoid misusing passwords by relying on your email provider to authenticate you via the POP protocol" is worse than "avoid misusing passwords by relying on an OAUTH provider to authenticate you via the OAUTH protocol". So, I recommend OAUTH over Passwordless. As a two-factor authentication, Passwordless is reasonable. As a login substitute, I'm not a fan.
Apr
14
comment Principle of least astonishment (POLA) and interfaces
FileWriter can be made simpler by making the Close implicit. You might still have a close function, but users shouldn't be required to call it under most circumstances. Generally this is done with two features: 1) Write should flush buffers and 2) Use some form of RAII, if the language supports it.
Apr
13
comment Should temporary files be saved to /tmp or the current working directory?
In the case of C#, you probably want to FileAttributes.Temporary and/or FileOptions.DeleteOnClose. Assuming sufficient RAM, Windows will avoid storing such files on disk (see FILE_ATTRIBUTE_TEMPORARY paragraph under CreateFile function
Apr
12
comment Does the state Pattern violate Liskov Substitution Principle?
@Jimmy: I tried implementing state without the state pattern by having each component only know about its own state. This ended up making large changes to flow significantly more complex to implement and maintain. That said, I think using a state machine (ideally someone else's library to force it to be treated as a black box) rather than the state design pattern (thus, states are just elements within an enum rather than full classes and transitions are just dumb edges ) gives many of the benefits of the state pattern while being hostile to attempts by developers abuse it.
Apr
4
answered Responsible CSS for mobile devices
Apr
4
comment Responsible CSS for mobile devices
Do you mean responsive design?
Apr
3
comment Can I implement a payment feature in my own software?
"do you think a merchant would ever consider buying a POS software that itself used a another software to process transactions?" - Get it to work with a few of the big guys, then provide an API to allow customers to connect your POS to their own payment processor. Also offer paid support for those who don't want to figure out the API.
Apr
3
comment Is it ok to have a class that only has boolean properties?
Even ignoring efficiencies, HashSet better reflects the OP's intentions, as it (for example) disallows the same option to be set twice. However, it smacks of magic strings, so my preference is to avoid it unless it becomes necessary (which is admittedly likely, in the case of a vehicle catalog).
Apr
3
comment Is it ok to have a class that only has boolean properties?
I agree with JacquesB; that a bunch of the properties are boolean isn't really a great reason to put them in their own class. However, if for some reason you do want these options grouped together, it's common to use a Flags enumeration for this purpose.
Mar
30
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
@Jacko: My understanding is that --enable-gpl3 is not necessary to be permitted to distribute as gpl3. Rather, --enable-gpl3 forces the use of gpl3 (rather than LGPL) by including gpl3 components. Of course, if you do want to use ffmpeg under gpl3, you probably should include such components. However, the motivation in that case for using --enable-gpl3 is to get a more full-featured ffmpeg, not to be compliant with the license.
Mar
29
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
@gbjbaanb: Per ffmpeg.org/legal.html, "If those parts get used the GPL applies to all of FFmpeg." See also, the section 3 of LGPL 2.1: "You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. "
Mar
29
revised Re-releasing LGPL code as AGPL : need advice on how to phrase license
added 7 characters in body
Mar
29
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
@Jacko: Maybe? If you want a confident answer, consult a lawyer.
Mar
29
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
@MarjanVenema: The argument is right, but this does not contradict your statements. The licensee can decide what licenses apply on condition that the licensor gave him permission to do so.
Mar
29
revised Re-releasing LGPL code as AGPL : need advice on how to phrase license
added 537 characters in body