Thursday, March 14, 2024

m

 The MVC or separete logic from presentation. is a well knowned paradigm.


 Its knowned that MVC Frameworks implemented the Model View Controller.


In MVC we have a

-> model -> view -> Controlelr.

  • Model - That is called afther the user imput in the controller
  • View - The interface
  • Controller - Controles user commands



This is created in the year 1970 to be able to reclicle code. Lather i think the paradigm evolve because of mainting code. Is not just to recicle but to make updates.

In separte logic from settings we can have a similar effect of code efficiency. Wid out using objects. Which are kind of heavy on the system since they antangle a lot of information.


Function update_interface (interface var1 var2 var3 int1 )

{


}


Global interface 

Global var1 

Global var2 

Global var3 

Global int1 

Function update_interface ( )

{

access interface

access var1 

access var2 

access var3

access int1  

}



This way you can change your setting the way you want width out the need to change functions.


These is achieved width objects but these have limitations. First these variables are inside objectes which you need high amount of knowledge to access them. These way the variables are acessible for any one and objects become more modular.

Wednesday, March 6, 2024

Simple two file graphics library for C/C++

 

[b]Found this two files graphics[/b], not bad graphics for 2 files. It may be of some help for some one. Think i can start from here if it works. Have a costume graphics that is more modular and people can add there stuff like as mention holographic design. If we can make this code modular, it will be easy to add other styles of graphics.

Still, i don't know i will take a step at a time, because i'm not expert. But it will be nice to have a engine that have all the code modular. Any one can add new graphics or things to it. This is the objective of the Box, a engine that serves to study and development of engines and projects like games.

https://www.codeproject.com/articles/363908/simple-two-file-graphics-library-for-c-cplusplus

Libraries

 A costume code editor to manage stuff dedicated to our style of code. And mainly for C language.

In the end might end up using all of them or what is best since C is modular we may add several things:


It should possibly manage, external librarys :

  • GTK 4.x
  • Ray Lib
  • Ncurses
  • Graphics.h
  • Vulkan
  • GraphApp



  • Graphic.h - for librarys development
  • Ncurses - applications in console or basic things
  • GTK - more complex things
  • Ray Lib - graphics or games development.
  • Vulkan - High graphics performance.

Facebook Page

  See if we can have some community around the software with a Facebook page : https://www.facebook.com/The-Box-101342814696181/?modal=admin_todo_tour


Added a couple more tools like the encrypt and links manager tools for example : to not have links running around company's and probably hackers exploit a lot the information on the users. This will allow to have things protected inside the computer even if some one hack the computer cant access the information that easy.

the encrypt.c tool will be in the folder "tools".

Also now all tools or topics have tutorials on the top of the page for example :

the encrypt tool "encrypt.c" :

// http://www.trytoprogram.com/c-examples/c-program-to-encrypt-and-decrypt-string/

A tutorial on how to encrypt

the projects tool "projects.c" :

//#include <stdio.h>

//#include "application_structures\file.h";

// https://www.tutorialspoint.com/c_standard_library/c_function_getchar.htm

// https://www.tutorialspoint.com/c_standard_library/c_function_gets.htm

// https://www.tutorialspoint.com/c_standard_library/c_function_scanf.htm

// https://www.tutorialspoint.com/cprogramming/c_pointers.htm

// https://www.tutorialspoint.com/c_standard_library/c_function_fprintf.htm

// https://www.tutorialspoint.com/c_standard_library/c_function_fputs.htm


// https://www.tutorialspoint.com/cprogramming/c_file_io.htm  file open

// https://www.tutorialspoint.com/c_standard_library/c_function_strtok.htm explode

/*
https://www.w3resource.com/c-programming-exercises/linked_list/c-linked_list-exercise-1.php
https://www.dummies.com/programming/c/how-to-create-a-linked-list-in-c-programming/
*/

It detail all functions used to make it work.

----

This will make very easy to follow and to grab the code, which is very hard in most projects.

Software

  Found this introduction to C, it speaks of the benefits of using C. 


If any one want to help or follow there are instruction on how to start using C, with Codeblocks. Very easy to set up.


https://www.programiz.com/c-programming


The article speaks that C, is cross platform, probably is one of the reasons it was adopted in Linux. It was not: [quote]Linus stubbornness[/quote] - Lyberta.

https://www.codeblocks.org/

Future of programming...

  " Think we are only a couple of months away of every one is capable of programing a A title. 

why the triple A. In US the max grade is not A? Should be a A title or Ace."

When i post this comment the AI was not even so big as it is now or is starting to be.

Objects in C

 I though C language does not allow objects but you can achieve something like that width function pointers. 

Found this tutorial that explain more about it,  most online tutorials like w3schools  don't focus this part of C. Go up only to variable pointers.

Actually don't know why because this is such a important part of the language. I have seen a good amount of them in projects code but the explaining why or how they are doing still "flee me" up to this point...


https://stackoverflow.com/questions/840501/how-do-function-pointers-in-c-work

m

 The MVC or separete logic from presentation. is a well knowned paradigm.  Its knowned that MVC Frameworks implemented the Model View Contro...