23
pesar
5y

You want to call a function? STOP!!!
Nowadays it is so amateur and old fashioned! Instead you must:
- Make a soap request
- Write a router to handle soup requests
- Write an XML to define which controller responds to this request
- Write an XML parser on top of another XML parser
- Write a controller to trigger an event in response to the request
- Write an XML which defines the event
- Write an XML that defines the event observer
- Write a plugin which calls event observers
- Write a router which delegates the task of calling event observers to that plugin
- Write an event observer which calls another plugin
- Write a plugin that "Calls a function".
It's better because... it's more Object Oriented!

Comments
  • 19
    I think you might be using an outdated stack but thats just my $.05
  • 11
    @ganjaman SOAP?! XML?! AAAAH
  • 11
    @ganjaman
    Right, today's stacks all use JSON and YAML.๐Ÿ˜
  • 7
    @metamourge in my whatever long carreer never once i have seen yaml being used unironically
  • 5
    Dude, soap Is suppose to be dead... unless it's a bank/finance company.
  • 2
    @metamourge I’ve seen all kind of shit but not yml
  • 3
    @Alice I’ve read once that people still uses XML because of some pros cons compared to JSON, but I forgot
  • 2
    @devTea WSDL validation is handy, at least the api can't lie ๐Ÿ˜…
    But yea I'll take json anyday.
  • 1
    @C0D4 yeah, just remembering it somehow painful
  • 2
    @devTea I sill use soap ๐Ÿงผ... but only because I work with dinosaur companies that I realllllly don't trust with a REST api. They hardly keep their systems working as it is.
  • 3
    @C0D4 I’ve seen XML format on JSON string and then parse it back, can you beat that?
  • 5
    @devTea... jsonp inside xml would have to be near the top of my list, With some of the key data being XML node attributes.

    Something like this:

    <credentials user="x" pass="y">
    <callback>callback("{'key':1,'key':2}")</callback>
    </credentials>

    I sometimes regret my life choices.
  • 3
    I wish I could edit my rant and instead of:

    XML

    put:

    Blah Blah config file format. This could prevent the Config File War above!
  • 2
    SOAP, xml, those where tough days :|
  • 3
    Where the factory that gets the function dependency injected and then calls it through a method that takes the exact same parameters??
  • 3
    You didn't use any blockchain, what is this peasantry?
  • 3
    I'll have to use SOAP as well soon. :') Disgusting stuff.

    But there are Python libraries that can easily handle them.

    I'll just need to write *simple* scripts to integrate two completely different tools client uses... Fck.
  • 2
    I'm just RESTing my hand on my forehead (forcefully)
    I showed this to my friend JSON and he did the same thing
  • 3
    Sounds like my job.. welcome to the financial world
  • 3
    @C0D4

    "Dude, soap Is suppose to be dead... unless it's a bank/finance company."

    Haha. Spot on.
  • 2
    Is it just me using protobuf?
Add Comment