简体   繁体   English

对于学习曲线和初学者的适合性(HTTP客户端),提升vs POCO

[英]boost vs POCO as for learning curve and suitability for beginners (HTTP client)

which library would you advise me to use? 你建议我使用哪个图书馆? I don't know any of these libraries. 我不知道这些库中的任何一个。 I heard, that Boost is very often used but also it's hard to code in. 我听说,经常使用Boost,但也难以编码。

So to make this question as objective as possible: Just simply from the aspect of beginner programmer (I've coded ~1000 LOC in C++ in my life) which library would be better to learn? 所以尽可能使这个问题成为客观:只是从初学者程序员的角度来看(我在生活中用C ++编写了~1000 LOC)哪个库会更好学习?

I'll be using it mainly for HTTP client. 我将主要用于HTTP客户端。

The answer is bound to be subjective but with particular emphasis on for a beginner then I think POCO is clearly the way to go. 答案肯定是主观的,但特别强调初学者,我认为POCO显然是要走的路。 It actually has some HTTPClient classes and once you get beyond the point of being happy that something works the code is clear enough to follow so that you can dig in and understand why it works if that is where things lead you. 它实际上有一些HTTPClient类,一旦你超越了开心,某些东西可以工作,代码就足够清晰可以跟随,这样你就可以挖掘并理解为什么它可以工作,如果那是事情引导你的地方。

POCO is well written OOP code and does not require much in the way of understanding templates and such. POCO是一个编写良好的OOP代码,并不需要太多了解模板等。 The classes are well integrated with one another, extensive, and the documentation more or less points you to the next (or previous) class that you need. 这些类很好地集成在一起,范围广泛,文档或多或少指向您需要的下一个(或上一个)类。 You won't be dashing around 20 separate libs as Boost is likely to have you doing. 你不会在20个独立的库中冲刺,因为Boost可能会让你这么做。 (There is always time for that later!) (以后总会有时间!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM