1,104 reputation
26
bio website
location
age
visits member for 2 years, 10 months
seen Dec 22 at 13:29

Dec
2
comment A separate endpoint specifically for sync in a REST api
Http has upgrade commands which allow the client to upgrade the connection from a simple request to for example a stream. developer.mozilla.org/en-US/docs/Web/HTTP/… So for example if you make a list with all changes (audits) you can do: GET /audits/userid and then upgrade the connection to like a stream to stay up to date.
Oct
31
comment Looking for encryption method
This is doable if you, like you said, trust the black box: Create a hash of the backup. Store it somewhere, maybe in a file. Store all previous hashes also, so keep a history of them. Then when black box is asked to import a file just hash the file and see if you know it. If you don't know it don't load it. A hash like md5 will do sufficiently here. Also a MAC as noted will work. You just don't want to see the file get out and changed. Encryption is an option here (if you don't want them to able to read) but it might also give big issues because you cannot bypass that if well implemented.
Oct
16
comment Sending multiple resources under REST endpoints
Are sensors available on multiple devices with the same id? If that is the case don't you need some kind of sensor type? Generally what you want is not great for this kind of matrix things. Some times it helps to put a resource in between like a group of sensors maybe. Depends on your data: /sensorsgroups/s1 could get sensor s1 from all devices for example.
Oct
8
comment 3d Packing algorithm for item's shipping
@rcdmk Be careful about how your users will respond. The discussion might not be whether or not it's difficult. There can be personal feelings here if you say how they should do their work.
Oct
8
comment How often should internal applications be deployed?
@MattN. You are talking about a rewrite and the expectations of users. Because likely the rewrite will take time. So it will delay those smaller fixes users want. Now I don't want to bother you with the whole discussion but if this system works: Why don't you just keep bug fixing and improving?
Oct
2
comment Git Workflow for multiple sites sharing common functionality
Fix it in the code, so make plugins or template repositories of them for example. It's not something you fix in version control.
Sep
25
comment Email service or simply abstract email out and call from?
Throw an event instead of calling directly. So raise the event: CompanyCreated. Let event listeners attach to it and handle the event. They become decoupled and you can easily attach multiple, for example: SendEmailListeren, SendIphoneNotificationListener etcetera.
Sep
22
comment How to express what do do when error occurs in a user story?
Yes you are right but it's important to group all "creditcard payment" stories in one deliverable feature/epic whatever you name it. Because for business it's unacceptable to have one story (the happy path) delivered without the error path. So you need a system which makes sure you don't deliver a piece of it because it can harm. Some example I found here: iserialized.com/features-vs-user-stories-in-scrum See also the follow ups.
Sep
22
answered Should I mark what blocks mean in data-* attributes?
Sep
20
comment PHP as a target language
If it's about the costs as I read in your comments: There are so many cheap VPS companies, like digital ocean etc, which give you a server for 5 dollars or even less per month. It it really the costs?
Sep
16
comment How to design RESTful Web Api to represent Resources
Done, thank you!
Sep
16
answered How to design RESTful Web Api to represent Resources
Sep
12
comment HTTP Request & Response Parameters
This seems to give an insight on the differences: johnnycode.com/2013/10/30/… An array is an internal type of your platform (php/.net etc) so that has no relation with the POST type you are receiving. Your platform will convert it for you to make it easier for you to use in most of the cases.
Sep
11
answered HTTP Request & Response Parameters
Sep
11
answered Anonymous access to api REST, protection
Sep
9
comment How to design RESTful Web Api to represent Resources
In general that sounds as security and should be fixed by headers (like basic Auth, OAuth etcetera). It does not change which resource you show. Even better: When the owner of a group changes all urls would be invalid which is not restful. So I would suggest to leave them away and make it an attribute.
Sep
9
comment How to design RESTful Web Api to represent Resources
Why do you want to add the owner (which more seems like an attribute of a group) into the url? It can make sense but I don't see an argument for it. /api/groups/{groupId}/members seems to make more sense? Then you can add another path: /api/users/1/groups and /api/users/1/groupsOwned where you show a collection of links to the normal groups urls.
Sep
3
comment Git-based storage and publishing, infrastructure advice
That's your next most important issue. I would say that you should try to remove them. Git has an option to handle those binaries in a more efficient way though I did just Google this and did not work with it yet: git-annex.branchable.com In general keep them out of your repository. If you need it to be in git try a sub-repository. That way you can still work fast with the normale repository. In general it's bad practice so try to find some different solution. devcenter.heroku.com/articles/git#repo-size If you need more info post specifics on this issue please.
Sep
3
comment Session Management in distributable web-apps
Ok so they access the applications directly from web to specific server? You don't have an application in between like can be seen in figure 5. on this page: infoq.com/articles/microservices-intro ? In that case it will be difficult because you would have the same logic in every application. You might just add some kind of proxy service in between which handles login/session and then requests the specific server. Then you can scale your real applications without any state.
Sep
2
comment Git-based storage and publishing, infrastructure advice
tnx! You're not saying that you're storing binaries in git right? ;)