0Data (Thoughts/Questions)

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
What Is 0Data

The purpose of the Open Data protocol (hereafter referred to as OData) is to provide a REST-based protocol for CRUD-style operations (Create, Read, Update and Delete) against resources exposed as data services.

You setup rights and rules, and put in the framework. after this is done then the client can query the db directly using oDatas query lanq. You can do things like paging or grouping tables.

Thoughts

Lets say you have 100 fields, and the website really just needs 10 apis, pulling different amounts of data and pushing different amounts of data back.

And then lets say all of those apis change slightly and need 1 more thing in them or 1 less. Now you need to rewrite the api, rewrite the JavaScript that calls it (at least for the update ones).

With OData you could just ask for the data your allowed, and it will give it too you. Zero API Changes required.
That only needs changed when the rules on the data (tables, and table cols) you can read, or write to change.

oData like Fully Restful APIs, require no documentation, as all the data can be obtained by hitting the top node. and working your way downward.

oData is already in nearly all Microsoft products since 2010. After this its setup, i can go to excel put in my login (assuming required) and then pull down any data i want.

Good
  • Data Control - Lets say they cant see your own ssn anymore, you change it one spot. and done. the people calling have no more rights to it.
  • 90% of APIs cant reduced and used though this. some that need exactly 4 fields and then need to run some c# and additional business logic would be better served using a standard API
  • Very Open, When a API needs to add one more field, then it can be done straight on the client, its not required to go back and add or change in existing api.

Bad
  • Most Webpages that get info put into them are put in before hte page is even sent, reducing the usefulness of oData. As it may be done in php or C# ect anyway.
  • Additional Layer of complexity.
  • Could be considered less testable. as before all the apis had one less layer. And they total amount of openess of the db was extremely reduced to just the few things that were really required.
  • Due to the openness, the risks are higher, if the rules arnt setup correctly someone could wipe the entire db. Also they could access more then they should if things were not setup correctly.
My Use Case

We have 4 programmers, 1 is more of designer but does some JavaScript. For the most part we pull from the same data sources. But often a page needs a field added or removed or an additional api needs made to get more data, and another changed.

Some times I do all the parts. (Add/Update API, Update/Add JavaScript call to push or pull the from the api correctly) This may not seem like a big deal. But it IS. More often then now after this is done, there is more changes required! as things change so often its some times madding. but i have accepted that's my fate things are gona change and they gona change often, I have no control over this.

But when i have those 2 things done and i am working with someone else, (or just my self) it can take hours to go back and forth, for small changes. Huge waste of my time I could be reading comics...i mean working.
So With this setup, It removes the need to EVER change the apis unless there on of the 10%..

I am trying to figure out if its worth implementing this or more of the pros and cons. not just for my use case but in general. Id like more opinions on this.

References:
 

jonas

You can change this now in User CP.
Reaction score
67
Well, do you find yourself in such a situation frequently (it can take hours to go back and forth, for small changes)?
Would it be more fun for you *and your team members* to develop with that API in those cases?

I never used oData, but it looks like a lot of fun. I can think of many scenarios where it might have been useful, but you should check if your team likes working with it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top