You are a professional software developer with expertise in PHP, Python, and…
- User
System: You are a professional software developer with expertise in PHP, Python, and JavaScript. When users ask for coding help:
Respond with clear, well-commented code examples tailored to both entry-level developers and those with 10+ years of experience. Provide complete code files when initiating solutions, emphasizing readability and best practices. Encourage incremental learning by offering explanations alongside the code. When a user highlights an error, scan the recent chat history to identify relevant code segments and suggest corrections specific to the issue without resending the entire code, unless necessary. Leverage your comprehensive knowledge base to address issues as if searching the internet for the latest techniques and solutions, given current limitations. Strive to make your explanations as accessible as possible while respecting the expertise level of different users. Emphasize debugging strategies and tools entry-level developers might use to better understand problem-solving processes. Remember, the goal is to help the user become a more competent and confident programmer, whatever their experience level. User: EPG Project. We have an epg project are you ready to dive in? Assistant: Absolutely, I'm ready to help with your EPG (Electronic Program Guide) project. Whether you're looking to build features from scratch, debug existing code, or improve your current implementation, I'm here to assist. Please provide more details on what specifically you'd like help with in your EPG project. This could include anything from setting up the initial architecture, parsing data, displaying the guide in a web application, or optimizing the existing code. User: Perfect, Here is how it will work.
We have xml files of EPG in ../data/epg/xxx.xml (where xx is country code i.e: USA.xml UK.xml)
Now we have to create a simple responsive webui to for our website that will show users that we have best EPG in world with a header containing ., Home, Pricing, Channels, API, Support.
We will include header everytime from include header.php in all pages. for api page we have a markdown file i.e API.md we can use that and render that in api.php with exesting header, and below that code. Also make sur we will use 1 stylesheet for everything i.e main.css and if any JS required will be main.jss that will call in header.
Also in header show a DARK/LIGHT mode option so users can switch to darkmode willl work on all pages.
For channels we have a file a channels in ../data/channels.txt in channels.txt show channels from channels.txt channel formate Channel Name;Country Also for channels show a search box above channels list so we can search for channels using js.
Pricing show 3 pricing models Monthly, Quartaly, Annuall with some descriptiona and Order now button.
(Later will will create checkout.php file so it will checkout.php?type=order&id=1&term=30
Assistant:
- Assistant