Home > 程序/算法 > SlimXml:终于也开源了一把

SlimXml:终于也开源了一把

把以前写的一个简单的XML parser完善了一下,在google code上共享了

详情请看这个页面

我不是所谓开源精神的信奉者。当然我们已经从开源项目中受益很多,比如boost,stlport,apache等等等等,通过阅读优秀的源代码(虽然我本人没怎么干过)无疑可以加速程序员的成长;但是开源不开源完全是人家的自由,没必要极端到认为“私藏代码是邪恶的”吧?

开源的好处之一是会逼迫你去考虑更广泛的用户需求,而不是写出来只要自己会用或者自己的项目组会用就行。这样你就有动力不断的去完善,优化,仔细斟酌每个接口的必要性。

可能有重新发明轮子的嫌疑,在google code的项目托管上搜xml parser能搜到一百多个,但是粗略看了下,全面支持多种编码(multi-byte,utf-8,utf-8 no mark,utf-16,utf-16 big endian)的还真没发现。而最得意的是SlimXml能自动生成Xml文件对应的c++数据结构和读写代码,这样你就不用费尽的挨个找节点读取数据了,只要调用结构的read(),然后所有数据就都在你的结构里了。

Categories: 程序/算法 Tags:
  1. July 18th, 2017 at 00:20 | #1

    I must say you have very interesting posts here. Your content can go viral.

    You need initial boost only. How to get massive traffic?

    Search for; Murgrabia’s tools go viral

  2. August 2nd, 2017 at 10:22 | #2

    Hi admin, i must say you have hi quality content here. Your
    blog should go viral. You need initial traffic only.
    How to get it? Search for: Mertiso’s tips go viral

  3. August 4th, 2017 at 17:00 | #3

    I see you don’t monetize your website, don’t waste your traffic, you can earn extra cash every month because you’ve got hi quality content.
    If you want to know what is the best adsense alternative, search in google: adsense
    alternative Mertiso’s tips

  4. November 26th, 2017 at 17:24 | #4

    I have checked your page and i’ve found some duplicate content, that’s why you don’t rank high
    in google, but there is a tool that can help you to create 100% unique content, search for; Boorfe’s tips unlimited content

  5. January 18th, 2018 at 21:34 | #5

    Hello admin, i have to say you have hi quality articles here.

    Keep up good work !

  1. No trackbacks yet.

 

Spam Protection by WP-SpamFree