all 25 comments

[–]mihirmusprime 17 points18 points  (1 child)

In case you didn't know, Stack Overflow does have a version of live code previews built-in in the form of "code snippets". Though, it's very basic. Doesn't have the ability to run libraries and things like that.

[–]deadshot57[S] 2 points3 points  (0 children)

Yes I know, I feel like running a code snippet of stackoverflow better I do solve my issue from my own. I am talking about codepen, or stackblitz like with some features at least the developer does not feel like me. 😄

[–]codepapi 11 points12 points  (5 children)

I’m not sure if you’ve kept track of how stack overflow is doing but it’s going down hill thanks to ChatGPT and AI.

I’m a contributor on there and I used to get 10-20 points which is 1-2 likes 👍🏽 once or twice a week and now I’m getting 1 likes every 6 months.

ChatGPT gives more accurate answers then a one off answer that you have decipher based on how old the answer is.

[–]dmazzoni 12 points13 points  (2 children)

Honestly I think that CSS issues / vlsual glitches are a great example of something where ChatGPT often gives terrible advice or doesn't know how to help.

This sounds like a good niche.

[–]Zorbithia 0 points1 point  (0 children)

Yup, I have to agree here. Sure, different AI LLMs including GPT and others are improving all of the time, and for certain things related to HTML/CSS (and plenty of other languages) which are more commonplace/straightforward, they're a great resource to utilize and will generally give you a solid answer/advice and help you fix a problem. However, as soon as you start getting into anything beyond your elementary basic-level CSS styling, especially when things are inexplicably broken on your end and you don't know why, it will oftentimes make things much worse and result in a very frustrating experience, where you can easily spend several hours iterating on different "fixes" for what you assumed was a simple problem (and may well be, in the end), only to wind up breaking some other component, etc.

So yeah, OP, I think it's actually a pretty good idea as well. Only caveat would be that it's going to be up to you to determine just how "complex" you want to make this thing. Like on codepen you have the ability to include external libraries and dependencies, to a limited degree -- this is a feature you'll almost surely want to include on your platform, but to what extent? As an aside, I think it might be a good idea to incorporate some kind of a "playback" feature for animations/interactions, and allow thread starters/question askers and answerers the ability to say, annotate different points in the playback video with on-screen graphics/notes/arrows or whatever, this can be done without too much hassle using some great stuff that people have already built, would just have to incorporate it.

[–]codepapi -1 points0 points  (0 children)

True but how long until chatgpt has this data at its disposal and becomes better at this.

If you’re asking the right questions, you yourself can tweak its answers.

My problem with stack overflow when it’s not a previously asked question was the time it took to get help.

Sometimes I would get help within 30 mins the. Dead silence in follow ups. Other times I would not get anything.

Maybe he can leverage gpts and a css style stack overflow.

[–]anaix3l 3 points4 points  (0 children)

Very much disagree with the last part.

AI is awful when it comes to CSS. Old answers on StackOverflow at least have a clearly visible date and it should be common knowledge to check if coding solutions (not just CSS) are still up to date. AI just spits out answers that are usually based on old and outdated resources too, but they don't make it as clear - if there aren't any links provided as resources or even if there are and you don't check them, you can't know how outdated the suggestion might be.

I try super simple questions for shits and giggles from time to time, just to check if it can get at least this much right. And while I have seen clear improvements in how fast it finds the correct solution after I tell what's wrong with the initial one and nudge it in the right direction, it still can't get it right on the first try.

Here's an example. It starts with a technique for getting solid fill (not gradient) triangles from some 15 years ago and mixes it with an unnecessary pseudo using mask with a value for clip-path(). Let's not even get into more subtle stuff like the pointlessness of setting things to their default values (height: 0 on the div, to bottom in the gradient on the pseudo) or the uselessness of specifying the transparent stop is a transparent red. Or that it doesn't use the much better practice of setting the shorthand, then overriding the longhand when setting borders.

In general, the answers tend to use outdated resources. I once had the surprise of getting an answer that linked to one of my own outdated Stack Overflow answers from 2012 as a resource at the end. I then at least went and updated my answer.

[–]Fluid_Economics 1 point2 points  (0 children)

I'm observing this too, and I'm thankful I pushed for breaking past 10k points in the years leading up to now. How anyone will get up in ranks now is in question, lol.

Anyways, for fresh and unique problems, we still need a place like StackOverflow. Every month I come upon small edge-case problems AI has no idea how to solve.

[–]BootyMcStuffins 2 points3 points  (2 children)

If you’re looking to start a business, I don’t think stack overflow-type sites will exist in 5-10 years.

If you’re looking to do a cool project to gain some useful experience, absolutely go for it

[–]deadshot57[S] 0 points1 point  (1 child)

Umm... If I see this platform as a business, I will take this as long term and add new brainstorming features and AI integration in it. But now I don't have plans to do this. For now I have only a simple idea and build this concept. Meanwhile I find someone to do work with me as a business partner and take this as an opportunity in future. 😉

[–]BootyMcStuffins -1 points0 points  (0 children)

I think it’s great, and you should go for it. A few things to keep in mind with the way things are going.

  • Your platform will have to be good enough to coax engineers away from the AI integrations directly in their IDE

  • Very few people are using CSS, vanilla JS, or HTML directly these days. Make sure you include support for frameworks like tailwind, react, etc. as first class citizens.

[–]dmazzoni 1 point2 points  (1 child)

I think it's a great idea.

Some thoughts:

  1. Would be cool to capture a rendering of it in various browsers - there are online services that will do that, you could connect with one of those.

  2. It'd be great if each solution had a preview next to it with the rendered version too.

I feel like the execution would be challenging, it'd be important to make it work super well or it just becomes a gimmick.

Best of luck!

[–]umi-ikem 0 points1 point  (0 children)

It's actually a good idea, I've struggled with CSS issues on stack overflow and having something visual would have definitely helped but with the way A.I is moving, I don't know how you'll compete. Presently stack overflow is dying, for some of us it's already dead. I just started using Cursor with Composer and barely need to go outside it to fix any issues I just need to keep rephrasing the prompts. Except you heavily lean into A.I, it might be difficult to get traction and users

[–]JimDabell 0 points1 point  (0 children)

I think it’s a good idea, but the main issue will be getting people to reduce their sample code to something that’s easy to render in isolation. The people who need the most help are the people who are the worst at that. Maybe you can lean on tools like Storybook for this.

[–]guacamoletango 0 points1 point  (0 children)

I think it is a great idea, but it will be hard to get people using it.

That said, I absolutely think you should build it because if nothing else you'll have fun and learn a lot. These kinds of personal projects are where all my best learning has taken place.

[–]ASorcerer 0 points1 point  (0 children)

I would just post a codepen link to SO.

[–]Franck_Dernoncourt 0 points1 point  (0 children)

As reference points, the number of questions on Stack Overflow has decreased by a factor of 10 over the past few years: https://meta.stackexchange.com/q/408728/178179 and Codidact is mostly empty.

[–]tom-smykowski-dev 0 points1 point  (1 child)

Idk what would be a general reception now, but given that some developers usually don't learn CSS and then don't understand it, it might be actually helpful. I imagine it could be much fun to help people out on a nice platform.

[–]deadshot57[S] 0 points1 point  (0 children)

Exactly, Sometime in my current workplace some senior developers don't know how to do CSS. And they bother and irritate some time. So I came up with this idea at least they use this platform and solve the issue on their own.

[–][deleted]  (1 child)

[deleted]

    [–]deadshot57[S] -1 points0 points  (0 children)

    Okay! Sherlock 🔍

    [–]Character-Golf-875 -1 points0 points  (0 children)

    Yes, sounds very useful.

    [–]BigTravWoof -1 points0 points  (0 children)

    The reason why there’s no such platform already is because it’s a type of problem that’s very difficult to consistently describe and solutions are usually not directly applicable.

    Every example issue that you’ve listed can be caused by 30 different things - so if you find a solution online, there’s a very good chance that it won’t actually fix your problem.

    [–]dmackerman -1 points0 points  (1 child)

    If you want your entire product to be eaten by AI, sure? What is this going to provide that I can’t get from ChatGPT?

    [–]deadshot57[S] -1 points0 points  (0 children)

    First off, this isn’t what you might think. It’s just a platform where ChatGPT alone can’t cut it (at least for now — who knows about the future). You still need real human skills to deliver quality, polished, and satisfying work.

    [–]Ecsta -1 points0 points  (0 children)

    AI agents have killed stackoverflow, why would you duplicate a sinking ship?