The Box, development tool, "Structural programming"

Re: The Box, development tool, "Structural programming"

Postby Lyberta » 07 Apr 2020, 01:44

Deleted.
Last edited by Lyberta on 01 Oct 2021, 09:41, edited 1 time in total.
Lyberta
 
Posts: 765
Joined: 19 Jun 2013, 10:45

Re: The Box, development tool, "Structural programming"

Postby jdc » 24 Sep 2021, 15:49

outdated
Last edited by jdc on 27 Jun 2022, 15:17, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 28 Sep 2021, 11:30

outdated
Last edited by jdc on 28 Jun 2022, 07:57, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 01 Oct 2021, 11:20

outdated
Last edited by jdc on 27 Jun 2022, 15:15, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby bzt » 01 Oct 2021, 20:27

jdc {l Wrote}:Count chars and lines from a file
{l Code}: {l Select All Code}
int count_chars_lines (FILE *f, int *nl, int *rc )
{
int rc = 0;
int rl = 0;
while((get(f)) != EOF ){

if (c== '\n'){
rc++;
}

}
*nl = rl;
*nc = rc;
}
was debating a bit on global's.
FYI, there are no global variables in the above code snippet at all. It's like debating whether "The King of USA has a hat or not".

jdc {l Wrote}:but what it seems is that global's in C are the pointers
No, they are not. I have absolutely no idea where you get that from.
{l Code}: {l Select All Code}
int hi_I_am_a_global_variable_but_not_a_pointer;
int *hi_I_am_a_global_pointer;

int main(void) {
   int hi_I_am_neither_global_nor_pointer;
   int *hi_I_am_not_a_global_pointer_by_no_means;
}
I have hard time believing you understand the concept of visibility scope. It has nothing to do with pointers nor with the pointed address.

Unlike other programming languages, C does not force any data model on the variables (like typically all OOP and scripting languages) nor on references (like passed by ref / value), with one notable exception, strings must be zero terminated. But save that, C's approach is the other way around: it does not mandate how variables are stored in memory, rather it provides different ways to describe the memory. That's why C is so good for low-level, embedded and system programming.

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

Re: The Box, development tool, "Structural programming"

Postby jdc » 06 Oct 2021, 12:20

outdated
Last edited by jdc on 28 Jun 2022, 08:39, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby bzt » 06 Oct 2021, 16:02

Forgive me, but I still don't have no clue what on earth you're talking about, although I have several decades of experience in programming as well as in project management. It looks to me you're just throwing in completely random stuff without comprehension or cohesion.

My advice is, first learn the basics, what is for what and how to use them. Write many little programs to learn the language, to learn how to use specific libraries, create PoCs for DB handling etc. before you want to start a project like this. This way you'll realize yourself why so many things are wrong with your current specs.

Also work on your project management skills, first try to coordinate simple projects with a small team, that's still isn't trivial. Right now your posts make no sense, you're jumping between incorrect low-level specs and inconsistent high-level specs, furthermore without any obvious relation between the two.

Honestly, given its current state, I don't think anybody will want to work on this (please don't feel offended, I'm writing this as an advice).

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

Re: The Box, development tool, "Structural programming"

Postby jdc » 12 Oct 2021, 12:22

outdated
Attachments
st_variables.c
(140 Bytes) Downloaded 186 times
ut_general_manipulation.c
(84 Bytes) Downloaded 185 times
interface.C
(6.3 KiB) Downloaded 186 times
Last edited by jdc on 27 Jun 2022, 16:19, edited 2 times in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 12 Oct 2021, 12:37

outdated
Last edited by jdc on 24 Oct 2022, 09:15, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 21 Oct 2021, 11:42

outdated
Last edited by jdc on 28 Jun 2022, 07:58, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 08 Nov 2021, 15:52

outdated
Last edited by jdc on 28 Jun 2022, 08:45, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 04 Jun 2022, 07:54

outdated
Last edited by jdc on 24 Oct 2022, 09:16, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby bzt » 04 Jun 2022, 08:50

I'm sorry, but you make less and less sense to me. You do know that ncurses is just a terminal abstraction layer right? All it does, it adds OS-specific escape codes to the output stream to make the text colorful and positioned. It is definitely not a game library.

jdc {l Wrote}: people looking to enter in to C, and have the same problem as me
I've told you, your problem is that you want it all at once. Learning programming requires patience, you have to do small steps, and only one step at a time. No library can magically replace your lack of knowledge and experience, you have to build that up on your own, little by little.

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

Re: The Box, development tool, "Structural programming"

Postby jdc » 04 Jun 2022, 10:22

BZk which time you talk, you talk as you are a expert on which library. Think i read in one of your posts "pretty hard to do that" (close to unhuman that kind of behavior)

First library's are extensible; html is not for games but you can do them in html.

2º best to learn is from code and manual. Can't just learn from manual or just code.

3º no one talked about games, is a tool software. it says in topic development tool

4º "you do not make sense to me" who care about your opinion?

5º C is modular and cross platform; Much more then C++ the more rules you create the less modular it becomes (restrictive).

6º In C you can work width all kind of library's if next we want to add graphics from graphics library we can add them (graphics.h) (not easy but can be done).

7º we have access to the source code we can do whatever we want is not a frame work.

8º stop bugging people width your opinion?

9º want to help? go on and learn ncurses very stable project. read the posts comments on Youtube every one say that...

10º Unity projects are not 100% a topic for this forums, since you can't access the source code of the engine.

and so on...
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby bzt » 04 Jun 2022, 12:16

Ok, my last post to you.

jdc {l Wrote}:BZk which time you talk, you talk as you are a expert on which library.
I'm bzt, and yes, that's correct I'm an expert. I have more than 30 years of programming experience, not just in C but in many other languages as well (compiled and interpreted alike). And I'm not only expert on most of the commonly used C libraries, but I have even written lots of libraries myself.

jdc {l Wrote}:First library's are extensible; html is not for games but you can do them in html.
Html is not a library, and you cannot do games in pure html. You would need some code to do the logic and interactions, either Javascript on the client side or something else on the server side. Html alone can't do that.

jdc {l Wrote}:2º best to learn is from code and manual. Can't just learn from manual or just code.
Yes, you can. I've learned programming behind the iron curtain where source code and manuals were literally non-existent. Everything we knew we've learned from studying the disassembly and doing reverse-engineering. Simply there was nothing else to study from back then.

jdc {l Wrote}:3º no one talked about games, is a tool software. it says in topic development tool
Ncurses is neither a tool software, nor a development tool.

jdc {l Wrote}:4º "you do not make sense to me" who care about your opinion?
Why are you posting here if you're not interested in people's responses?

jdc {l Wrote}:5º C is modular and cross platform; Much more then C++ the more rules you create the less modular it becomes (restrictive).
That's true.

jdc {l Wrote}:6º In C you can work width all kind of library's if next we want to add graphics from graphics library we can add them (graphics.h) (not easy but can be done).
See? This is not how you do graphics at all. Take a look at one of my simple C projects, xstoneage to see how to add X11 graphics to a C code. Hint: there's no graphics.h, and knowing how to invoke X11 functions syntactically isn't enough by far. You have to understand the semantics too.

jdc {l Wrote}:7º we have access to the source code we can do whatever we want is not a frame work.
I have hard time interpreting this. I wonder if you can do whatever you want with xstoneage for example, provided its code is Free and Open Source.

jdc {l Wrote}:8º stop bugging people width your opinion?
Start listening to C expert's advice.

jdc {l Wrote}:9º want to help? go on and learn ncurses very stable project. read the posts comments on Youtube every one say that...
Why would I learn ncurses when I already know it, have used it, what's more, I'm in a position that I could actually write ncurses?

jdc {l Wrote}:10º Unity projects are not 100% a topic for this forums, since you can't access the source code of the engine.
Again, what has this to do with anything? Are unity projects development tools too? (sarcasm, only a rhetorical question)

I repeat my advice once more, you should stop looking for libraries and start learning first, because you lack understanding of the fundamentals. I won't bug you any more.

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

Re: The Box, development tool, "Structural programming"

Postby jdc » 25 Jun 2022, 04:25

outdated
Last edited by jdc on 24 Oct 2022, 09:28, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 26 Jun 2022, 12:46

outdated
Last edited by jdc on 24 Oct 2022, 09:30, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc » 28 Jun 2022, 14:54

Moved all posts in to a blog. Leave only the new stuff to prevent people from losing track.


In her for next post will be only version posts. Bit hard to administrate in here, if you like to read development post can follow in there.

Also front page of this forum is updated width the links a bit more easy to access information if need any links will be in there. Also add a account for Flattr for any donations...

[url]
https://thebox0.blogspot.com/[/url]
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby Technopeasant » 12 Jul 2022, 03:26

bzt {l Wrote}:Html is not a library, and you cannot do games in pure html. You would need some code to do the logic and interactions, either Javascript on the client side or something else on the server side. Html alone can't do that.


Well, actually...

https://en.wikipedia.org/wiki/Hypertext_fiction

And even...

https://libregamewiki.org/The_night_wol ... of_Venzone
User avatar
Technopeasant
 
Posts: 176
Joined: 22 Feb 2017, 03:38

Re: The Box, development tool, "Structural programming"

Postby bzt » 12 Jul 2022, 08:29

Technopeasant {l Wrote}:
bzt {l Wrote}:Html is not a library, and you cannot do games in pure html. You would need some code to do the logic and interactions, either Javascript on the client side or something else on the server side. Html alone can't do that.


Well, actually...

https://en.wikipedia.org/wiki/Hypertext_fiction

And even...

https://libregamewiki.org/The_night_wol ... of_Venzone
Both of these rely on a server side logic as I've said. Actually implemented by the webserver's URL routing. (Or if you download the files locally, then on your OS's path resolution and filename lookup).

And I would also argue if some hyperlinks alone without any game state is actually can be considered a real game (how could it be a game without any game state?). You probably don't know, but in the '80s to the early '00s there were a lot of interactive game books, very very very similar to what you have linked (for a list). But there was a big difference: all of these books expected the reader to throw a dice sometimes and, more importantly keep the game state updated on a paper, and that's addition what made those a real game and more than some books with non-linear chapters.

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

Re: The Box, development tool, "Structural programming"

Postby PeterX » 12 Jul 2022, 08:36

Why should "The night wolves..." and similar sites not count as games? They don't have an official data state but nontheless they are games.

Greetings
Peter
User avatar
PeterX
 
Posts: 270
Joined: 01 Oct 2020, 21:44

Re: The Box, development tool, "Structural programming"

Postby bzt » 12 Jul 2022, 12:13

PeterX {l Wrote}:Why should "The night wolves..." and similar sites not count as games? They don't have an official data state but nontheless they are games.
Because without a game state and game logic, then they can't be called games, simple as that. They are nothing more than interactive books, which, don't get me wrong, can be fun on its own right, no doubt about that. Just not games per definiton. Same goes to other genre too, for example is Bandersnatch fun? You bet it is! But can you call that interactive movie a real game?

How to explain this... if all choices are fixed and predetermined, then the world is static, it doesn't matter what the player do, there will always be the same choices and with the same outcome. On the other hand, in a real game one would expect that the world isn't static, that the choices are different depending how the player progresses (which assumes there's some kind of game state storing the current progress).

For example, in an interactive book there can be no fighting the monsters, because nothing stores the player's HP and what weapon they have. But this is true to all kind of games, no matter how that choices are technically implemented and what the "state" actually means. I could even mention table-top board games or card games too, their "world" isn't static either, there's always some kind of state showing who's winning or loosing and what possible moves each player have. Even simple single player games, like Solitaire offers different options to the player depending what cards are on the table.

These are just some stupid examples, but does the lack of game state and logic make sense to you? But again, I'm not saying that interactive books cannot be fun! They surely can be! (And just for the records, it is possible to create an interactive book with so many pages that it would create the illusion of having a game state, just most interactive books don't have that many because one page for all possible combination means astronomical number of total pages.)

@jdc: I apologize we've derailed your topic a little bit. I won't post about games in this topic any more, you can keep posting about box.

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

Re: The Box, development tool, "Structural programming"

Postby jdc » 08 Aug 2022, 11:04

outdated
Last edited by jdc on 24 Oct 2022, 09:23, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Re: The Box, development tool, "Structural programming"

Postby jdc2 » 03 Sep 2022, 14:59

The Box Script

*I was not able to login in to my email so i did another account for now,

Don't know if this post is a bit complex to make, this things are almost for a manual... but we will see... is a alternative to web scripting, see if i will end updating it to programming...

It's 2 or 3 times more modular then the web stuff we have today. Is not actually a script but just rules, we load it to C and he creates the things for us. Is mainly to create a graphic environment.

1 - we can work in any amount of projects in the same file (project=the box)
2 - it does not uses extensions they are declared (image_extension=jpg,png)
3- reuses code parts (line_id)
4- it have security enable checks (security=ask)
5- load text from files in to it (element=10)
6- the end of line is at the begging and not in the end bullets like style ( tbs -> )
7- in theory could support other languages but i don't know if it will happen (css, html, js, php, C# ->)
8- tags stack (id=sub_menu, id=main, level=2, block=list, text_id=text)
9 - it have levels (level=2)
10 - at the bottom you can see other language code how is incredible they are much more complex...
11 - Loading order is organized by order tag "order=1, order=2", to arrange thing for us. (is decimal in case we need to re- organize 1,2 ... 1,7 without the need to change others)

basically one while loop organize the rules and the 2º loop construct it is very simple. Think in putting it to work in just a html server it just need text to work...

while(1) // organize
{
project the box
order =
level =
line_id =
id =
blocks=
text=

project Medivel titans
order =
level =
line_id =
...

Project Eva project
order =
level =
line_id =
...

}

while(1) // assemble
{
the box
load images
load windows
load text
load models
load templates
load modules
...
}

What is happening in the examples:

- we are reusing a login/register throw 3 projects, the_box,eva project, medivel titansl.
- we doing auto querys to the db
- We have web script width real time security
- Call on effects functions
- we have losse programming if you want to add something at the begging to the box project, and lather call the other two projects, you can re assign the box project again in a 2º time and continue to do things.
- we don't have large amount of text in the file is coming from other files throw element= tag, we can have titles, sub titles names, etc... any text... but if not needed is not inside. Make the file really small.
- define in the script amount of pages or item per page
- tags for other languages : C#->, PHP -> normal or composed, C#, PHP, TBS -> a line that support multi programming languages, (could generate more errors)

*some things still need more work like how templates, modules inter act and programing at this stage did only most web things.

The rest you can see for your self...

Ex:

tbs -> project=the box
tbs -> current_page=boot
tbs -> version=1.x
tbs -> img=logo order=1
tbs -> project_folder = applications/pages/the box
tbs -> assoc_keys=
tbs -> file_link=articles
tbs -> image_folder=
tbs -> icon_folder=
tbs -> image_extension=jpg,png
tbs -> torrent=8A5148D6306606F5250F8E14AC7657FC9012A520
tbs -> tile=the box
tbs -> id=main, items_pages=10
tbs -> autor = jdc
tbs -> email = eva.project.dev@gmail.com plex
tbs -> link = https://thebox0.blogspot.com/?zx=8aeda2665c691d35
tbs -> db=users, db=articles, db_query=all store=db_articles
tbs -> link_file=icons store=icons elements=all
tbs -> allow_commads(), effects
tbs -> id=all, space: m 10, p 20, text_translate(),
tbs -> id=main, type=box, level=1, text_id=text1
tbs -> id=sub_menu, id=main, level=2, block=list, text_id=text
tbs -> id=right_menu, id=main, level=2, block=list, text_id=text
tbs -> id=links
tbs -> id=effect_hover, block=effect, level=3, script=hover_effect
tbs -> id=sub_menu, text_replace(), text_translate(),
tbs -> id=login_menu, user_login(), user_register()
tbs -> page=login, page=register, page=main, level=2
tbs -> page=boot, level=1
tbs -> open_file(), security=ask
tbs -> array security=
tbs -> url= redirect=no security=1
tbs -> text= the box , order=1, text= software development tool order=2
tbs -> id=main text= web site dedicated to make posts on the software
tbs -> line_id=1 list=Link1, Link2, Link3

tbs -> file_link=articles element=10

tbs -> order=5 display=list title= Downloads, Media Fire text =

Preferring "Media fire" over other projects, like Github you have to upload file 1 by 1 which is very pre history for computares and software capability today. Another issue you can't have empty folders or move large amount of files in your project, you have to move them 1 by one. Can't delete folders, you have to remove files for it to disappear. And you guessing how you remove files for it to disappear? Maybe you guesses correctly again you have to remove files 1 by 1. Insane work! It is not possible to administrate a large project like this moving files 1 by 1. There is a lot of editing to be done.

Why not use the tool for the page? They maybe attempt to attack again : why use this wired tool when you have FTP's services for like dozens of years. In computeres that's a lot. Like from the 1920's or so we have FTPS services.


tbs -> line_id=1

tbs -> order=5 display=list title= Downloads, Media Fire file_link=articles element=2

img=project_tool

tbs -> project = tides of time

tbs -> title=tides of time

tbs -> button= login, register

tbs -> password, re-password, user name, translation=all

tbs -> icons=gold,food,

tbs -> links= Characters, Attack, exception= on page-tides of time remove=characters, attack

tbs -> clock=4m

tbs -> project=medivel titans

-> line_id=1 (links)

tbs -> project=eva project

-> line_id=1 (links)

-> structure= math lib
-> structure= standard variables

-> module= player

-> module= map

-> script = attack if=range<200

-> template=a1

-> JS-> snyppet = javascript

-> map=level1

->graphics=opengl 2.0


php, C#, Css, HTML, Js ->


------------------------------

css -> p {margin-top: 100px; margin-bottom: 100px;}
html -> <div id="main"><ul><li> a </li><li> b </li><li> c </li><li> d </li></ul></div>
js -> let x = "Volvo" + 16 + 4;
php -> echo strlen("Hello world!");
C# -> using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Java ->

public static void main(String[] args) {
Main myObj = new Main(); // Create an object of class Main (This will call the constructor)
System.out.println(myObj.x); // Print the value of x
}


$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
jdc2
 
Posts: 1
Joined: 03 Sep 2022, 14:36

Re: The Box, development tool, "Structural programming"

Postby jdc » 10 Oct 2022, 15:09

outdated
Last edited by jdc on 24 Oct 2022, 09:24, edited 1 time in total.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

Who is online

Users browsing this forum: No registered users and 1 guest

cron