![]() |
Challenge 13 - Search utility - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Challenges (https://litdev.uk/mybb/forumdisplay.php?fid=5) +--- Thread: Challenge 13 - Search utility (/showthread.php?tid=481) |
Challenge 13 - Search utility - litdev - 08-11-2025 No activity for a while, so here is a challenge... Write a Small Basic utility program to search through a folder of SB files (*.sb) and show any files that contain a searched text. The program should allow the user to specify a folder and a search text (case insensitive), then display a list of all files containing that text. The program could be extended to: 1] Allow the user to select and show the full text of any of the found searches 2] Allow recursive search through sub folders 3] Use extensions if you like to make the program prettier or add features like compile and run a file or open it in Small Basic IDE 4] Think of other useful features, like reporting the file date, number of lines etc and maybe make these search filters Share any work in progress... RE: Challenge 13 - Search utility - AbsoluteBeginner - 08-11-2025 (translated by Google translator) This task does not look like a simple toy. ![]() This assignment already looks like a "term paper" that the student was told to complete. ![]() I wonder who can complete this task. RE: Challenge 13 - Search utility - AbsoluteBeginner - 08-12-2025 (translated by Google translator) Hi all. ![]() I noticed another interesting opportunity that this task provides for Small Basic fans. Previously, such a task would have been very difficult for most newbies in programming. For example, I would not dare to start working on such a program. But now is the century of development of Artificial Intelligence. The task offered by LitDev gives beginners the opportunity to try WRITING SUCH A COMPLEX PROGRAM using the help of AI. This is exactly what I want to do now. I want to explore how cool a program I can create now that I have AI help. ![]() RE: Challenge 13 - Search utility - z-s - 08-12-2025 Gpt 5 is released more trained model. RE: Challenge 13 - Search utility - litdev - 08-13-2025 I didn't realise this would be a bit tricky. This is my effort BVWL530.000. I tried to show some other useful ideas like dynamic control positioning with window resize, button toggle, saving session data and what I think is a good structure for interactive window program, all in standard Small Basic. Good luck with AI - personally I find it less than useful, but maybe I'm too old and haven't worked hard enough with it. RE: Challenge 13 - Search utility - AbsoluteBeginner - 08-17-2025 Hello everyone. ![]() The process of me completing this challenge is developing in an interesting way. The AI Qwen3-Coder that I chose to complete the challenge told me that it doesn't know the Microsoft Small Basic programming language at all. ![]() Now I have to first teach the AI how to use Small Basic, so that the AI can then write a program for me. The challenge has become even more interesting. RE: Challenge 13 - Search utility - z-s - 08-18-2025 What Small Basic Coder Made : https://g.co/gemini/share/f9262e7dd222 Need some corrections in the code. RE: Challenge 13 - Search utility - AbsoluteBeginner - 08-18-2025 Hi all. ![]() I want to save all the necessary files that contain reference information in a special folder on my computer. Then I will create a small script for the autoclicker program, which will allow the AI to independently download files from my computer that it will need for "thinking". I will do this because my AI claims that it does not have free access to the internet. In addition, the autoclicker program will allow the AI to save on my computer the information that the AI considers necessary and that it cannot save in its system. When everything is ready, I will inform the AI that it can begin its autonomous work. I'm curious to know what the outcome of this challenge will be. ![]() |