Git Product home page Git Product logo

despack's Introduction

Bacagine

I'm a technologist in Systems Analysis and Development at FATEC Carapicuíba.

C/C++ Developer.

Linux User (Arch Linux)

See bellow a brief explanation of the coding method I use in my programs

Hungarian Notation

In my programs I use a customized version of Hungarian Notation.

Hungarian notationaims to facilitate recognition of the type of variable in a program, just by looking at the name of the variable. See below a table with the type of indicators for each type of data.

Indicator Type
g Global
k Constant
a Array
p Pointer
v Void
b Boolean
ch Char
i Integer
f Float
d Double
sz String
st Structure
un Union
e Enum
fp File Pointer
dp Directory Pointer

Hungarian Notation Usage Example

typedef struct STRUCT_PERSON {
  int iID;
  char szName[64];
  char chSex;
  float fHeight;
  double dSalary;
  bool bLive;
} STRUCT_PERSON, *PSTRUCT_PERSON

const double gkdPI = 3.14; 

...

int main(int argc, char **argv) {
  PSTRUCT_PERSON pstPerson = (PSTRUCT_PERSON) malloc(sizeof(STRUCT_PERSON);
  
  ...
  
  free(pstPerson);
  pstPerson = NULL;
  
  return 0;
}

despack's People

Contributors

bacagine avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.