Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #138608
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Methodologies for C programming |
| Date | 2018-12-08 10:46 +1300 |
| Message-ID | <g70829Fc5e9U1@mid.individual.net> (permalink) |
| References | <376535a0-079d-4e93-811b-8fdcfabd6cb2@googlegroups.com> |
On 08/12/2018 02:15, Thiago Adams wrote: > > > Recently I became more interested in unity tests > and modularization. I can say that the C language is partially > responsible for that. > > When we think in unit test, we also think in TDD, although > I think TDD does not exactly reflects the methodology I want > to use. > > The reason why C is the root of the interest is that when we > start using C we need to build a lot infrastructure to program. > > In C we need to build your own data types. Comparing with C++ > for instance, we have parametrized data types like vector and map > and other read-to-use types like string. > > Therefore, to avoid doing everything again and again we need to > think in modularization and reuse. Using C++ someone else is in > charge for testing the STL containers. Doing you own data types > we need to make sure everything is working and unit tests also > become very important. If you are rolling your own. There are often high quality opensource libraries available from exiting projects. > With methodologies do you use? Mostly TDD and as many XP practices as we can squeeze int. > What do you think about TDD? Use it just about everywhere. On my current project my fellow architects are also keen TDDers so it is widely used for all of the languages we use. For C specifically, the path of least resistance for unit testing is a C++ framework such as Googletest. > How to you reuse code? Usually by extracting useful nuggets into libraries. TDD tends to produce lots of small functions (or objects in an OO language) which is a good start for building reusable components. -- Ian.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-07 05:15 -0800
Re: Methodologies for C programming Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-12-07 05:38 -0800
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-07 07:57 -0800
Re: Methodologies for C programming David Brown <david.brown@hesbynett.no> - 2018-12-07 18:05 +0100
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-07 08:08 -0800
Re: Methodologies for C programming William Ahern <william@25thandClement.com> - 2018-12-07 10:08 -0800
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-07 10:23 -0800
Re: Methodologies for C programming Wouter Verhelst <w@uter.be> - 2018-12-07 22:04 +0100
Re: Methodologies for C programming Ian Collins <ian-news@hotmail.com> - 2018-12-08 10:46 +1300
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-08 02:27 -0800
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-08 10:35 -0800
Re: Methodologies for C programming Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-12-09 08:22 +0000
Re: Methodologies for C programming fir <profesor.fir@gmail.com> - 2018-12-09 14:40 -0800
Re: Methodologies for C programming "Pascal J. Bourguignon" <pjb@informatimago.com> - 2018-12-27 13:17 +0100
Re: Methodologies for C programming "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-12-27 08:12 -0500
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2018-12-27 07:54 -0800
Re: Methodologies for C programming Richard Damon <Richard@Damon-Family.org> - 2018-12-27 11:32 -0500
Re: Methodologies for C programming fir <profesor.fir@gmail.com> - 2018-12-27 09:22 -0800
Re: Methodologies for C programming jacobnavia <jacob@jacob.remcomp.fr> - 2018-12-27 19:54 +0100
Re: Methodologies for C programming Richard Damon <Richard@Damon-Family.org> - 2018-12-27 17:54 -0500
Re: Methodologies for C programming fir <profesor.fir@gmail.com> - 2018-12-27 16:24 -0800
Re: Methodologies for C programming Chad <cdalten@gmail.com> - 2018-12-27 17:57 -0800
Re: Methodologies for C programming Chad <cdalten@gmail.com> - 2018-12-27 17:58 -0800
Re: Methodologies for C programming rbowman <bowman@montana.com> - 2018-12-27 21:34 -0700
Re: Methodologies for C programming Keith Thompson <kst-u@mib.org> - 2018-12-27 21:27 -0800
Re: Methodologies for C programming rbowman <bowman@montana.com> - 2018-12-28 08:30 -0700
Re: Methodologies for C programming Keith Thompson <kst-u@mib.org> - 2018-12-28 12:15 -0800
Re: Methodologies for C programming rbowman <bowman@montana.com> - 2018-12-28 20:42 -0700
Re: Methodologies for C programming Tim Rentsch <txr@alumni.caltech.edu> - 2018-12-29 09:26 -0800
Re: Methodologies for C programming rbowman <bowman@montana.com> - 2018-12-29 13:50 -0700
Re: Methodologies for C programming luser droog <luser.droog@gmail.com> - 2018-12-30 12:39 -0800
Re: Methodologies for C programming fir <profesor.fir@gmail.com> - 2018-12-30 14:00 -0800
Re: Methodologies for C programming fir <profesor.fir@gmail.com> - 2018-12-30 14:18 -0800
Re: Methodologies for C programming rbowman <bowman@montana.com> - 2018-12-30 16:48 -0700
Re: Methodologies for C programming luser droog <luser.droog@gmail.com> - 2018-12-31 00:06 -0800
Re: Methodologies for C programming fir <profesor.fir@gmail.com> - 2018-12-31 02:34 -0800
Re: Methodologies for C programming Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-12-31 05:13 -0800
Re: Methodologies for C programming rbowman <bowman@montana.com> - 2018-12-31 12:44 -0700
Re: Methodologies for C programming Tim Rentsch <txr@alumni.caltech.edu> - 2019-01-01 16:01 -0800
Re: Methodologies for C programming Tim Rentsch <txr@alumni.caltech.edu> - 2019-01-01 16:23 -0800
Re: Methodologies for C programming Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-12-31 05:08 -0800
Re: Methodologies for C programming Ike Naar <ike@iceland.freeshell.org> - 2018-12-31 17:32 +0000
Re: Methodologies for C programming Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-12-31 14:13 -0800
Re: Methodologies for C programming Thiago Adams <thiago.adams@gmail.com> - 2019-01-02 02:48 -0800
csiph-web