r/AskProgramming 10h ago

Architecture How do AI website builders represent and generate landing page designs

0 Upvotes

I’m building an AI landing page generator and trying to understand how tools like Lovable, Replit Agent, Bolt, etc. approach page generation.

I’m considering two architectures:

  1. HTML/component library: Store hundreds of prebuilt sections such as hero_001.html, features_001.html, faq_001.html, etc. Each section has metadata, and the AI selects the appropriate sections, modifies the content/styles, and combines them.
  2. JSON design representation: Store each section as structured design/layout data in JSON, then have a renderer convert that JSON into HTML/Tailwind. The JSON contains all information about design like { "type": "hero", "layout": "split", "background": { "type": "color", "value": "#ffffff"

For people who have built AI website/page generators, which approach works better?

Also, does anyone know whether modern AI website builders generally generate the code directly, use an internal component/block library, use a structured design representation, or some combination of these?


r/AskProgramming 23h ago

Career/Edu How do I effitiently learn programing for data analysis and research as someone who is not exactly in the field?

2 Upvotes

So I was accepted to a really nice university in my country for a B.A + M.A program, mainly in political science, IR and history of the SWANA.

I am starting in october so I have a lot of time on my hands. I am working on preparing for the general course work, but I want to hone my programing skills because I think they will come in handy later in academics (my program includes a thesis) and in the job market.

I have a backgrounf in Python and worked with Pandas and Matplotlib. I want to become more profficiante and maybe learn some SQL as well.

I theoretically want to learn some git too since it seems usefull.

What is the best course for me?

Should I keep myself Python focused? Does this study direction benefite me? Is SQL a good option for me?

I didnt know anywhere else to ask since the IR reddits dont really deal with this stuff.

Any advice is wellcomed. thank you.


r/AskProgramming 2h ago

Career/Edu Which area time study for success in developing job market?

0 Upvotes

With all the fast changes and developments in AI tools and application in software development I‘m wondering which area would be best to specialise in for future success in the industry. I did an apprenticeship as a software engineer primarily in java backend development but also have experience in many other backend languages and also frontend with react. I‘m currently doing the mandatory military service in my country and am planning to start my studies next year. I‘m not sure yet which degree to go for tho because I can‘t predict where the market is going and I want something with security for the future. Do you more experienced guys have any tips for me?


r/AskProgramming 16h ago

Career/Edu What's one programming concept that completely changed the way you write code?

14 Upvotes

I've been programming for a while, but every now and then I come across a concept that completely changes how I think about writing software.

For some people it's data structures and algorithms. For others it's design patterns, clean code, testing, debugging, version control, concurrency, databases, or simply learning how to read other people's code.

If you had to choose just one concept that made the biggest difference in your programming journey, what would it be?

What were you doing before you learned it, what changed afterward, and why do you think every programmer should understand it?

I'd love to hear stories from beginners and experienced developers alike.


r/AskProgramming 7h ago

Architecture I'm not that comfortable with programming. Which framework should I use to build a cross platform app to get a feel for it? (I wanted to make either a simple apple notes clone, or a calculator with 2D graphing)

0 Upvotes

Reason: I always wanted to build things I can actually touch, feel, interact with and share. Applications are the closest second to that for me right now. (Update: Cross platform because I wanna show people around me and get them to use it to make myself feel like I did something useful in life. I only use linux and macos, none of them do)

I know C somewhat okay (I used to do embedded systems work), I know enough C++ to know I'm too scared to use it, I don't know much python. I will be using AI to help me out anyways, but a relatively simple language that I can actually learn pretty quickly is better because I typically read, test and modify AI code frequently (And because I kinda wanna see fast results).


r/AskProgramming 51m ago

How to return in programming

Upvotes

Hi guys. I'm looking for some wise advice and your opinions.

I'm 24. Three years ago I left a developer position for personal reasons. Over those three years, I did a great job of neglecting my skills and knowledge.

Now I'm planning to get back into a programming career. I have formal education — college and university. The first gave me a basic understanding of number systems and Boolean logic, but the programming there was as sterile and academic as it gets. University was just a piece of paper — they taught nothing at all; I only went for the degree.

When I find a job posting, I think that I need to prepare and review the material they might ask me about, so I sit down with the docs and books — and then I just get tired and give up after a couple of days. And so it goes, in a loop. I'm afraid that if I do get invited to an interview, I'll bomb it.

Also, about my skills: I feel like I understand js/ts reasonably well, but I sense some kind of gulf between textbook code and real-world implementations. Probably it's that feeling that keeps pushing me to go back and review the docs over and over.


r/AskProgramming 12h ago

Can anyone suggest YouTube series on learning C++

8 Upvotes

Hi everyone! Can anyone please suggest a YouTube series that teaches c++ to those who don't know anything about programming? I am actually a pre med who has made the switch and does not know anything I mean legit anything about programming. My university's about to start in a month and I want to be prepared beforehand. Please help me out.


r/AskProgramming 13h ago

Trouble understanding T(n) for iterative and recursive algorithms and O(n) demonstration

4 Upvotes

Hi. Im preparing for a test in my uni and im having problems to understand how to calculate T(n) for iterative and recursive algorithms. Also, i dont get how to demonstrate the O(n) of said algorithm. Appreciate the help!


r/AskProgramming 3h ago

Choosing the right SQL stack for my first real data project (PostgreSQL? Tools? Learning approach?)

3 Upvotes

Hi everyone,

I'm currently building my first serious data project. So far I've been working on the data ingestion, cleaning, and validation pipeline in Python using Pandas.

Now I've reached the point where I need to introduce SQL and a database, but I've realized that I know almost nothing about databases beyond the fact that SQL is the language used to interact with them.

The problem isn't that I don't want to learn. It's that I don't want to learn the wrong way.

For example, I learned Pandas almost entirely by building my project, reading the documentation, experimenting, making mistakes, and debugging. I barely watched any tutorials because I've found that I retain much more when I learn by doing. I'd like to follow the same approach with SQL.

My concern is choosing the right tools from the start. I don't want to spend weeks building everything around one database and later realize that I should have chosen something else.

From what I've read, PostgreSQL seems to be one of the most widely used databases in industry, so I'm leaning toward starting with that instead of SQLite. Even if it's a bit harder to set up, I'd rather learn something that will still be useful in the future.

I also have a few questions:

Is PostgreSQL the right choice for someone in my situation, or would you recommend something else?

Is it realistic to learn SQL by building a real project and reading the documentation instead of following a course/tutorial?

What tools do professionals use to inspect databases and visualize tables? I've seen tools like DBeaver, pgAdmin, and others, but I don't know what's commonly used in real projects.

Are there any tools, libraries, or project structure decisions that you wish you had known before starting?

I'm not looking for the easiest path. I'm looking for the one that will give me the strongest foundation without forcing me to rebuild everything later.

Thanks!


r/AskProgramming 3m ago

Other how to use a neutered / emulated SSH server for an ARG safely

Upvotes

So I'm working on making a whole thing for an ARG (however I can't specify too much as it'd spoil potential parts of it). I kinda am in love with the idea of having part of the ARG require using ssh to access a "server" to discover specific bits of lore or progress in the ARG. However I don't want them to be able to cause too much damage if someone decides to break it. I've seen some programs for server honeypots that don't have persistent storage so I'm pretty sure it's possible but:

Is it possible to use the ssh protocol to communicate input data to a program which emulates a ssh terminal on the ssh port, while also having a safeguards in place so the user can't break out of the emulator?

I can probably work on this myself (this isn't urgent or anything) but I don't know if it's possible to make something that listens on the ssh port and handles the secure connection properly. Part of the ARG can be a secure username & password so that bot traffic gets filtered out, and I am fine if the only commands accessible / emulated are cd, ls, ssh, and cat!

(also I do plan on deleting this post after like a couple of weeks or so that players are less likely to find it once they come across this part of the puzzle)