Reputation
1,254
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 6
Newest
 Necromancer
Impact
~53k people reached

  • 0 posts edited
  • 4 helpful flags
  • 2 votes cast
Apr
10
comment Detailed Scope of Work.. Waterfall?
You can start by building a simple prototype / sketches as a deliverable. Charge for that work and work in the same agile way as you would normally do so they get in the flow. Then after delivery of the sketches with desired features you can together agree on where to start.
Apr
10
comment What is the ideal mindset for a developer participating in a requirements gathering meeting?
And try to reflect, so if you know think you know "exactly what they want" tell them: So, to summarize, you mean: "x, y, z". And then you will learn what you missed.
Mar
29
comment REST: Can I use POST request to read data?
For a route tool that's not a strange choice I think. It depends on what you want to do with the data later. If the driver uses this route daily then it might be interesting to store them to improve the optimal route etcetera.
Mar
29
comment REST: Can I use POST request to read data?
If you stick to not saving then yes your only option is to use parameters. In that way your only option is to reduce their size (like single character params names: ?l=1221331,1212321&d=123213123etc). In REST you would more likely create a resource: POST /routes which then returns; /routes/somerandomid so you can keep updating the resource. So you would store it then. If you don't want long term storage you could even add a timer (cron) after which you remove the older rows. Just make sure your code understands error 404 and that will work quite seamless also.
Mar
29
comment REST: Can I use POST request to read data?
Without the real world case I cannot really answer it. Just the fact that you don't save it at this moment doesn't mean that is the only way to go. Also I think that the amount of parameters might need some review because that will be quite a lot of them.
Mar
29
comment REST: Can I use POST request to read data?
What real problem are you trying to solve? Are those search queries for a webshop, searching through big data or whatever else. So the real thing you are trying to achieve, not the technical issue. That might make it much easier to answer with a better answer.
Mar
29
comment REST: Can I use POST request to read data?
What is the real world case here?
Mar
14
comment Do I have to gather requirements from external stakeholders?
Strongly makes sense for a more business like analysis. You get requirements like quick ordering, payments at the table, digital invoice etc. I would not do the analysis on the internal processes with them, so you could do 2 sessions: One with both and one only with the restaurant owner. Also staff is very interesting off course.
Feb
27
awarded  Necromancer
Feb
2
awarded  Yearling
Jan
14
comment how to unit test constant that define an implementation detail?
If you export the expire date you can make a relevant check. Like http has an expires header. You can check if that date is enough in the future.
Dec
9
answered What's the best way to return an array as a response in a RESTful API?
Nov
25
comment Workflow for chains of dependent pull requests to projects that depend on other projects
What you also sometimes see is just a github fork being used during the time that the library is not updated. Then later when updated it's switched back to the original source.
Nov
9
comment Maintain hundreds of customized branches over master branch
First get more insight: Let developers make a diff between the current version and the customized branch. So you at least know what differences there are. That list allows you to see where you can win the quickest reducing of branches. If 50 have custom fieldnames just focus on that and it will save you 50 branches. Then look for the next one. You might also have some which are not restorable, but then at least the amount will be lower and it won't grow further when you get more clients.
Nov
3
comment must all urls for a resource be same
If you use something like hateos you could return a list of links and maybe the date and title at: /api/companies/{companyName}/posts which would link to: /api/posts/{postId}. The the list of posts for a company is a resource. And the post itself is another resource.
Oct
21
comment Is it OK to use mongodb's query object format as a parameter for my api?
Check out meteor.com/mini-databases meteorpedia.com/read/Understanding_Meteor_Publish_and_Subscribe which is doing that. Works very fine in practice and is secured. It can be a great example of how to define which data is allowed and how to scope that data with publications.
Apr
16
comment How deeply can a JSON object be nested?
If you get so deep many times you are actually dealing with different data. For example: Graph data or time series data. There are better formats to store that and that's about the only reason why you might run into this issue.
Apr
16
comment Web developer sending port in web service from server to client
The port is integral part of the address of your service. You are asking: If I know the street how can I find the house number? In general you cannot or you should walk the whole street (port scanning). This is the reason why most services have well-known port numbers like: 80 = web, 21 = ftp etcetera. Only way you could know it is if the server contacts the client (but then needs to know the address of the client).
Apr
16
comment Handling source code table alignment
The first document doesn't look tabular but spaces indented. Maybe it's not shown well here. You could use the third one from the start, that's what I suggest, then you have a stable format which is extendable a bit. But still: That's your issue because of using the wrong tool. In some languages you might be able to store some json in a string and then parse it. In some scripting languages we have HERE docs en.wikipedia.org/wiki/Here_document which might be useful. But in the in clearly it might not be the best solution. Maybe check config files which could be more flexible.
Apr
16
comment Handling source code table alignment
If you format the data as tabular data (preferably in a separate file / source file) then you would never run into this issue. Because then you formatted upfront and you won't have to change it. Issue you still have is that most diffs work per line (try adding/removing a comma at the end of a line). So then you know where the change is but you don't instantly see the real change only. What you then could do is format each row on many lines (json/yaml etc). At that point you should also consider: wrong tool for the job. You try to store data tables in a source file, there might be a better tool