534 reputation
412
bio website
location
age
visits member for 3 years, 3 months
seen Feb 14 at 19:56

Feb
10
comment Secure Form Submission
HTTPS. See section 5 of RFC 2396 for a definitive answer.
Feb
2
comment RESTful Api: Send email with links to client URL
@Gaz_Edge he's talking about if your clients (the businesses) have their own API, and they want your API to request something from their API to figure out how to link to their site. I don't think it's necessary, your clients should just be able to tell your API how to make that link (first point in the example scenarios at the bottom of this answer).
Feb
2
comment RESTful Api: Send email with links to client URL
@Gaz_Edge sorry, I was referring to the thing syrion talked about in his answer. There is no partner API. :)
Feb
2
comment RESTful Api: Send email with links to client URL
@syrion this answer also covers it. "Allow the businesses to set up the redirect path (with some simple token replacement) through another part of the API." This is all you really need; making a call to the partner's API isn't a necessity because you can send all that info to the remote server in the query string via replacement tokens. The focus of this answer is the bigger picture, though (which ironically you seem to have missed in your answer, despite talking about "architectural level" and "flexibility in the subsystem").
Feb
2
revised RESTful Api: Send email with links to client URL
deleted 5 characters in body
Feb
2
comment RESTful Api: Send email with links to client URL
And the answer is "you don't." I can pretty much guarantee at some point someone will want click tracking, and then you'd need to throw at all that work and implement it with redirects anyway. The key point here is to have the API respond in a sensible way to requests for HTML content.
Feb
2
revised RESTful Api: Send email with links to client URL
added 1359 characters in body
Feb
2
comment RESTful Api: Send email with links to client URL
@syrion having the API respond to requests for HTML content in an appropriate way and forwarding on to a remote resource is entirely different from the approach you describe in your answer, IMO. The only similarity is having the client (business) configure a redirect path, which seems unavoidable. I assume the downvote was yours. I find your answer to be rambling and of low quality, and I think the method I describe here is cleaner, so I will downvote yours also.
Feb
2
answered RESTful Api: Send email with links to client URL
Feb
2
comment Web Api design - Using Nouns vs verbs
You could use PATCH to allow updating arbitrary fields on the resource; this would cover both cases you mention. If you want something closer to your example instead, you could have /closed as a sub-resource, and have clients PUT a value of true there. That seems a little awkward IMO though; PATCH would be more flexible.
Feb
1
comment How to inform WebStorm's autocomplete about WebGLRenderingContext
They probably do have a place to live, though (wherever WebStorm keeps the annotations for the rest of the built-in stuff). What might really be useful is a thing to convert IDL to JS annotations. I don't know if anything like that exists.
Feb
1
comment How to inform WebStorm's autocomplete about WebGLRenderingContext
So you're really asking where to find annotations someone else has already written, or what?
Feb
1
comment How to inform WebStorm's autocomplete about WebGLRenderingContext
Why is it silly? Aren't the things WebStorm recognizes annotated in the same way? You should be be to add your own annotations alongside the ones that ship with the IDE.
Feb
1
comment Why would many duck-typed dynamic programming languages use a class-based approach instead of prototype-based OOP?
This should be a good answer to point to next time someone lists inheritance as a requirement for OO :)
Jan
28
comment How to store users' info in network app?
If you decide to go with sqlite you could just stick everything in there. Retrieving blobs from sqlite should be faster than using separate files for small, compressed images.
Jan
28
comment How to store users' info in network app?
@avidProgrammer it doesn't, the database just lives in a file, and the RDBMS is embedded in the program.
Jan
28
comment How to store users' info in network app?
Is authentication a requirement of the project? If so I don't see how it can be a pure P2P setup, you'll need an authentication server. If not, don't worry about username/password, just store the display name and the other stuff on the client, send it to other clients when they request it and cache it there (for large things like a picture that you don't want to send with every message).
Jan
28
comment How to politely decline a pull request?
Sounds like this boils down to finding a polite way to say "your contribution is hardly understandable and I doubt it will be helpful." Might be on-topic for the ELU site.
Jan
28
revised How specify acceptance criteria for randomness?
improve scenario readability
Jan
28
suggested approved edit on How specify acceptance criteria for randomness?