• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Need to hire someone

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by doodab View Post
    Question #2, for those who are interested:

    How would you marshall and unmarshall java objects to/from XML if you aren't allowed to use JAXB or otherwise analyze schemas at compile time?
    This is basically writing a generic persistence framework for object graphs.

    The key insight is cycles in the graphs. You can write a persister that introspects an object to map it to XML, without too much trouble. But if that object references its parent you can hit an infinite loop when you follow the references- so you have to keep track of where you've already been.

    Comment


      Originally posted by mudskipper View Post
      System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(DoodabsObje ct.GetType());
      x.Serialize(Console.Out, DoodabsObject);
      Yeah, it's tough in the .NET world isn't it?

      These poor Java peeps, stuck in the 20th century when their toolset was last updated.



      You can create you own custom serialization too of course for version compatibility as types evolve.

      Custom Serialization

      Comment


        Originally posted by DimPrawn View Post
        Yeah, it's tough in the .NET world isn't it?

        These poor Java peeps, stuck in the 20th century when their toolset was last updated.



        You can create you own custom serialization too of course for version compatibility as types evolve.

        Custom Serialization
        you don't expect Oracle to spend money improving a product do you? Their entire business model is based on buy a competing product, make it worse so customer spends even more on support.
        merely at clientco for the entertainment

        Comment


          I would go with greping using StringUtils and collections of collections.

          Comment


            Feck me you lot do a lot of really boring stuff and for not much money either
            Hard Brexit now!
            #prayfornodeal

            Comment


              Originally posted by sasguru View Post
              Feck me you lot do a lot of really boring stuff and for not much money either
              I don't think any of us do this really boring stuff. If we didn't this thread wouldn't be 12 pages long.
              merely at clientco for the entertainment

              Comment


                Originally posted by eek View Post
                I don't think any of us do this really boring stuff. If we didn't this thread wouldn't be 12 pages long.
                Fair enough. Surely this sort of thing is what Bobs are for?
                Hard Brexit now!
                #prayfornodeal

                Comment


                  Originally posted by sasguru View Post
                  Fair enough. Surely this sort of thing is what Bobs are for?
                  Yes but if you want a job done probably you can't guarantee Bob will do it.
                  merely at clientco for the entertainment

                  Comment


                    Surely this sort of thing can be done in vi with grep, sed and awk?

                    Programming, pfsst....

                    Comment


                      Originally posted by sasguru View Post
                      Fair enough. Surely this sort of thing is what Bobs are for?

                      Correct, but the problem is Bob lacks the ability to realise what toolset or API is needed to tackle a problem. Once someone decides on the solution Bob will implement it by doing a copy paste from some online forum.
                      Vote Corbyn ! Save this country !

                      Comment

                      Working...
                      X