Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #139134

Re: Methodologies for C programming

Newsgroups comp.lang.c
Date 2018-12-27 09:22 -0800
References <376535a0-079d-4e93-811b-8fdcfabd6cb2@googlegroups.com> <87a7kr2mgu.fsf@informatimago.com> <1bedf01d-7579-4dee-83fd-e14fe79b41c8@googlegroups.com>
Message-ID <fa5f04d9-3ff4-41b2-91be-540da0120ff8@googlegroups.com> (permalink)
Subject Re: Methodologies for C programming
From fir <profesor.fir@gmail.com>

Show all headers | View raw


W dniu czwartek, 27 grudnia 2018 16:54:51 UTC+1 użytkownik Thiago Adams napisał:
> On Thursday, December 27, 2018 at 10:17:15 AM UTC-2, Pascal J. Bourguignon wrote:
> > Thiago Adams  writes:
> > > With methodologies do you use? 
> > > What do you think about TDD? 
> > > How to you reuse code?
> > 
> > Methodologies don't depend on the programming language, but on the size
> > and kind of project.
> 
> Points where C is different from other languages:
> 
>  1 - We need to create a lot of basic code, data structures
>      compared with other languages like C++, Java, C#...
> 
>      So, for instance, we need to choose a methodology to test
>      this basic code. We need to build the program and see if
>      the ideas are working. Before to make the perfect
>      data structure we need to move forward implement other parts.
>      Then latter it is time to put more attention on the basic
>      code we had created some months ago and trying to move forward
>      incrementally. This can happen in any language but in C this 
>      is very common. strings, dynamic arrays, error codes..
> 
> 
>  2 - There is no common (universal) pattern for libraries or for code 
>      organization build etc etc.
>      Some languages like C# that has a big framework you can just
>      copy the way the framework is implemented. Languages with modules
>      also creates a common pattern for usage and distribution.
> 
>  3  - In C everything is very customized. If you have to create something
>       then you create just what you use and for the specif cases.
>       This is an advantage in terms of size and performance, but at the
>       same time customized code can be difficult to reuse.
>       Personally I reuse code but I change it a little each time I reuse.


what damn methodology ? ??
i personally know only one c methodology:
write it normal way

in c sources there are more differences but i think its more difference by style 
not 'methodology' (maybe tehere are some methodlogies but i never heard)

and as to style the most important point is probably: dont use macros (c without macros gets much more normal imo), also longer descriptive function names are important

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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