Click here to Skip to main content
15,914,066 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: New serializer name Pin
Jörgen Andersson1-Jul-16 8:56
professionalJörgen Andersson1-Jul-16 8:56 
GeneralRe: New serializer name Pin
Super Lloyd1-Jul-16 18:44
Super Lloyd1-Jul-16 18:44 
AnswerRe: New serializer name Pin
den2k881-Jul-16 9:15
professionalden2k881-Jul-16 9:15 
AnswerRe: New serializer name Pin
Slacker0071-Jul-16 9:38
professionalSlacker0071-Jul-16 9:38 
AnswerRe: New serializer name Pin
Blutfaust1-Jul-16 10:21
professionalBlutfaust1-Jul-16 10:21 
AnswerRe: New serializer name Pin
Marc Clifton1-Jul-16 14:03
mvaMarc Clifton1-Jul-16 14:03 
RantBig companies vs Small companies Pin
Stephen Gonzalez1-Jul-16 6:58
Stephen Gonzalez1-Jul-16 6:58 
GeneralAll my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 5:21
Super Lloyd1-Jul-16 5:21 
As you might have heard... I am working (at home) on a new home made serializer.
I painfully wrote and debug quite an extensive test coverage ...

Then I looked at my work and thought: this just won't do! The type meta data is just too wasteful! I must do a complete rewrite!!!

It took me a whole week!
Not because of the number of lines of code (about one thousands) but because I fumbled in the dark for a while before I manage to find a way to do what I wanted....
It is now much more betterer (more compact, more performant)!

But.. well... all the tests are red now... Cry | :((

I guess more debugging is awaiting me... OMG | :OMG: Roll eyes | :rolleyes:

[EDIT] [VICTORY] Fixed all the bugs....
Bonus feature, my new format is yet more compact (though strongly typed) and the serialization is now also faster than NewtonSoft.Json! Cool | :cool: Thumbs Up | :thumbsup: Big Grin | :-D

For fun here is a comparison of NewtonSoft.Json to my serializer with text output (support binary as well) for a list of 10 points:

NewtonSoft.Json
[{"x":0.98958661732710274,"y":0.72857453754571011},{"x":0.59292879821403366,"y":0.060559290023781027},{"x":0.28072819964994128,"y":0.69400526568945742},{"x":0.653773632204986,"y":0.0040844688211029712},{"x":0.35002548915800896,"y":0.14401983802394003},{"x":0.7088265291921918,"y":0.3565747599846566},{"x":0.82151659662905918,"y":0.32049972578906444},{"x":0.33498869106871482,"y":0.41123141274379166},{"x":0.65187721031339707,"y":0.77326123405865455},{"x":0.89198039560205322,"y":0.0075930333731663571}]

My Serializer (Thought I christened it, in honor of silly Javascript library names: TRex, the assembly name might either be Galador.Utils or Galador.Serializer)
1 7 8 805569025 9 806093313 10 "System.Collections.Generic.List`1" 0 2 11 "Capacity" 12 16777227 13 "Count" 12 14 17825792 0 1 15 553648129 16 "Galador.Core.Tests.SerializationTests+Point2D" 17 "Galador.Core.Tests" 2 18 "x" 19 16777232 20 "y" 19 16 10 10 0.98958661732710274 0.72857453754571011 0.59292879821403366 0.060559290023781027 0.28072819964994128 0.69400526568945742 0.653773632204986 0.0040844688211029712 0.35002548915800896 0.14401983802394003 0.7088265291921918 0.3565747599846566 0.82151659662905918 0.32049972578906444 0.33498869106871482 0.41123141274379166 0.65187721031339707 0.77326123405865455 0.89198039560205322 0.0075930333731663571 

Well... I guess I just have to work on the CodeProject article now! Cool | :cool:
All in one Menu-Ribbon Bar
DirectX for WinRT/C# since 2013!
Taking over the world since 1371!


modified 1-Jul-16 13:22pm.

GeneralRe: All my test went from Green to Red! :'( Pin
KarstenK1-Jul-16 5:40
mveKarstenK1-Jul-16 5:40 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 5:56
Super Lloyd1-Jul-16 5:56 
GeneralRe: All my test went from Green to Red! :'( Pin
W Balboos, GHB1-Jul-16 6:05
W Balboos, GHB1-Jul-16 6:05 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 6:07
Super Lloyd1-Jul-16 6:07 
GeneralRe: All my test went from Green to Red! :'( Pin
BillW331-Jul-16 10:36
professionalBillW331-Jul-16 10:36 
JokeRe: All my test went from Green to Red! :'( Pin
User 110609791-Jul-16 6:09
User 110609791-Jul-16 6:09 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 6:10
Super Lloyd1-Jul-16 6:10 
GeneralRe: All my test went from Green to Red! :'( Pin
kmoorevs1-Jul-16 6:10
kmoorevs1-Jul-16 6:10 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 6:26
Super Lloyd1-Jul-16 6:26 
GeneralRe: All my test went from Green to Red! :'( Pin
ZurdoDev1-Jul-16 6:54
professionalZurdoDev1-Jul-16 6:54 
GeneralRe: All my test went from Green to Red! :'( Pin
Stephen Gonzalez1-Jul-16 7:35
Stephen Gonzalez1-Jul-16 7:35 
GeneralRe: All my test went from Green to Red! :'( Pin
TheGreatAndPowerfulOz1-Jul-16 7:16
TheGreatAndPowerfulOz1-Jul-16 7:16 
GeneralRe: All my test went from Green to Red! :'( Pin
BillWoodruff1-Jul-16 10:10
professionalBillWoodruff1-Jul-16 10:10 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 18:36
Super Lloyd1-Jul-16 18:36 
GeneralRe: All my test went from Green to Red! :'( Pin
BillWoodruff1-Jul-16 19:09
professionalBillWoodruff1-Jul-16 19:09 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 19:28
Super Lloyd1-Jul-16 19:28 
GeneralRe: All my test went from Green to Red! :'( Pin
Super Lloyd1-Jul-16 19:49
Super Lloyd1-Jul-16 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.