[ home / overboard ] [ soy / qa / raid / r ] [ ss / craft ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: MiniMaxx_Logo.png ๐Ÿ“ฅ๏ธŽ (7.71 KB, 600x200) ImgOps

 โ„–22340[Quote]

So this is a split off thread from the Based thread by Bigdustycheese. it's the one with the blue PHP elephant.

Anyways I started programming A text board called MiniMaxx. I'm planing on making a YouTube video explaining how it works.

I'll be dumping updates here, instead of Bigdustycheese's thread. Also It's CC0, so you can copy the code and do whatever with it.

 โ„–22342[Quote]

File: a_look_at_v001.png ๐Ÿ“ฅ๏ธŽ (20.06 KB, 1273x632) ImgOps

This is what it looks like right now. v0.0.1

 โ„–22343[Quote]

Oh yeah… hers the GitHub link. https://github.com/soypocalypse-nate/MiniMaxx

 โ„–22344[Quote]

File: hack.PNG ๐Ÿ“ฅ๏ธŽ (2.99 KB, 323x84) ImgOps

Interesting??? I guese GitHub calls PHP files that have only HTML in theme Hack. lol, wheres my bag of Doritos, and anonymous mask!!!

 โ„–22347[Quote]

File: Lol_Hackjak.png ๐Ÿ“ฅ๏ธŽ (377.11 KB, 1366x1350) ImgOps

>>22344
Yep…

 โ„–22401[Quote]

>>22340 (OP)
Working on v2. Easy styling with css (look cool). A simple bot trap to help prevent spam. A simple speed statistic for how fast the page loaded. and something else i forgor… all removable. if you don't want it you don't need it.

 โ„–22474[Quote]

i wrote something like this but as a 150-php-liner with bare setup and replies
as soon as i get to the source i think i could publish it

 โ„–22476[Quote]

File: a_look_at_v001-B.png ๐Ÿ“ฅ๏ธŽ (18.91 KB, 1125x635) ImgOps

a look at the CSS style. I am leaving comments in the code with short explanations.

 โ„–22510[Quote]


 โ„–22511[Quote]

>>22340 (OP)
>irc and imageboards mushed together
gem would it support ascii art? iirc the requirements are just a monospace font

 โ„–22512[Quote]

>would it support ascii art?
i sound retarded but you should see if ascii art works on it i wanna know

 โ„–22525[Quote]

>database.txt
Better use a real database anon, pick SQLite: https://www.php.net/manual/en/sqlite3.setup.php

 โ„–22547[Quote]

>>22511
>>22512

Will add ascii art in the v2 update (the one I'm working on now). It doesn't work in the current version sadly.

>>22525
I know its going to be harder to use a text file in the future, but i want to stick with it. I couldn't find ANY text board that didn't use SQL. I mean I understand why, SQL is awesome and makes it easy, but I still want to try, and use a formatted text file.

 โ„–22558[Quote]

File: ascii_won.png ๐Ÿ“ฅ๏ธŽ (20.63 KB, 510x515) ImgOps

>>22512
Fixed ASCII art. Will be part of v2 ;-)

 โ„–22583[Quote]

>>22547
no don't do it chud don't do the flatfile or however the sqlmutts call it

 โ„–22594[Quote]

>>22558
FUCKING GEM

 โ„–22595[Quote]

>>22547
In this case, use JSON or any structured format.

 โ„–22597[Quote]

>>22547
You will have a lot of race conditions without a real database tho

 โ„–22669[Quote]

>>22597
Actually, Yes. This will be an interesting problem to try to fix. I Have no idea how to fix something like this, I have never done this before. But this is a golden opportunity to dig in and learn something new. Probably will go lower level on the server side with this one.

>>22595
I will probably do that. I did some research, and JSON seems perfect. Thanks for reminding me about it.

 โ„–22693[Quote]

>>22669
>I Have no idea how to fix something like this,
this problem is exactly why people use database servers like pgsql and mysql instead of flat file

 โ„–22694[Quote]

>>22693
cant you just use mutexes? it doesnt sound that hard

 โ„–22697[Quote]

>>22694
you could
but why reinvent the wheel when people have already solved this problem, including all edge cases that your own solution likely won't cover

 โ„–22724[Quote]

That's a cool project! Apart from the obvious technical lackings already mentionned, here is a list of ideas / improvements that you may find useful:

- Before adding anything big (database, file storage, …), starts by a well-structured base: Organization is key, starts by a correct naming convention for other developers to understand your project.
>You can name your modules by their plain name like "header.php", "footer.php", etc… without overheads. Separating the page by modules is a good idea.

>"database.txt" is not exactly a database, more like a message log. Rename it "message_log.txt"


>Name the CSS file "style.css", a well-known name.


- Use correct HTML5 tags, it helps everyone (both humans and machines) understanding yout website structure: https://www.tutorialrepublic.com/html-reference/html5-tags.php.
>Make use of the tags <header>, <body>, <head>, <main>, etc… for a better structure.

>Don't use <center> or <br>, style it with CSS.


>Indent your code.


- It would be better to directly include the CSS file in index.php rather than checking if the file exists (why checking?) with a condition. Less useless instructions.

- Do a makefile for straightforward installation.

- Data sanitization is crucial for security (well, except for SQL injection in your case). Here is a small resource to help you: https://zeroexp.dev/validating-and-sanitizing-user-input-in-php-the-ultimate-guide/. There are others online, do some researches.

There are some breadcrumbs, others may aggrement to those ideas. Keep in mind that starting by a simple, stable base will prevent further hassle - so don't ignore it.

 โ„–22748[Quote]

>>22724
Solid advice.



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ ss / craft ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]