[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: IMG_4551.jpg (107 KB, 1200x900)
107 KB
107 KB JPG
are you guys using ai to code?
i swear i tried, because everyone seems to be singing praises like crazy out of it, but it just seems to vomit tasteless code and i gave up trying to make it work
idfk how everyone says it increases their productivity so much unless everyone is a codelet and im the only smart person (which is very very unlikely)
>>
>>107556278
Unless you're getting it to generate bog-standard boilerplate, you spent more time trying to tard wrangle AI to spit out something correct than you would have spend just figuring it out yourself.
>>
>>107556278
anotha cope thread
>>
>>107556285

boilerplate i most automate by writing macros or using template engines to spit out a basic version in most projects i join so i really dont get the benefit
even automated tests i feel its good to write yourself
>>
>>107556290

> idfk how everyone says it increases their productivity so much unless everyone is a codelet and im the only smart person (which is very very unlikely)
>>
>>107556303
i mean all the replies are going to be cope like this >>107556285
unironically go to reddit for better discussion
>>
>>107556325

i feel like the autistic cracked programmers live here though
>>
>>107556278
>using AI to code
>when you could be cooming
>>
File: 1764566236246085.jpg (68 KB, 720x478)
68 KB
68 KB JPG
>>107556278
Ye, mostly things I don't know or forget (how to use adapter X or API Y) but never ground work.
>>
>>107556374

Ah yeah, for searching or giving toy examples it works relatively well. For more than that (like autocomplete, code generation), it sucks imho.
>>
>>107556362
Teach me how to coom with ai, i don't get it.
>>
>>107556596
What kinda' cooms are you into?
Wanna make your imagination come to life with genning AI smut?
Wanna make your imagination come to life with roleplaying AI smut?
Wanna act on your must perverse and borderline retarded fetishes so you burn out every last neuron and nobody will ever know? AI.
>>
File: 1745465621296017.jpg (173 KB, 1074x975)
173 KB
173 KB JPG
>>107556392
Except VisualStudio C#'s offline ai autocompletion is pretty lit
But anything more and it fucks up kek

Knowing this, can you imagine how some vibe coded codebases must look like at Microsoft ?
>>
>>107556708

intellisense was always goated and one of the few things microsoft did well

but yeah i can imagine how shit it is the vibe coded crap
>>
>>107556278
I tried. It is slop and takes more time troubleshooting. The experience was is even worse than trying to correct spaghetti-legacy code.
>>
>>107556278
yes its a great tool. you need to know how to code imo. its an assistant, are you too lazy to write nested loops for a function? ai can chunk it out no sweat. do you not know how to program? you're going to get dogshit results
>>
File: 1752425288554220.png (270 KB, 2562x1540)
270 KB
270 KB PNG
>>107556325
Nothing about what I said is cope. AI gives you the perception of increased productivity because you're outsourcing the hard part of thinking a problem through (and you're rewarded with an instantaneous result), but in real terms, you end up spending more time tard wrangling it to produce the desired result.

For any kind of novel code generation, AI is a tedious pain in the ass. It can be useful to point you in the right direction, give you a rough draft for what you're trying to accomplish (sometimes), or explain a concept in more detail, but getting it to generate functional code (beyond, as I mentioned, boilerplate) that follows best practices and actually makes sense in the context of your project is a giant waste of time. I find that AI can increase productivity when you use it as a drive-by, first-line tool to get an immediate, direct response--but when you spend time dwelling on its retarded hallucinations and half-functional code, you're just hurting yourself in the long run.
>>
>>107556278
i use it for boilerplate and working examples for shit im learning atm
otherwise its like you said-
its a chore to get the code it produces to work
maybe you can get it to work better by basically having a sort of "header" with all the relevant info in the system prompt could improve things.
its an idea i had, didnt try it out yet
>>
>>107556865

nested loops are kind of a code smell unless you’re doing a problem that is really o(n2) (which are rare)
>>
>>107556278
It works fairly well for me. It's best suited for routine CRUD/business logic/forms but honestly for most projects that's probably 90% of the code you need to write. You'll eventually develop an instinct for what you can use an LLM for vs what would be better to write yourself.
Break down your prompts into small features and break those down into steps. After each step, review the changes and commit them (can always squash later).
Point it to similar existing code that it should refer to and match, like
>see foo.ts and bar/*.ts for examples, then write your output in baz.ts
Use the best models (opus 4.5) with good high-token-usage tools, like claude code or cursor max mode. It'll get expensive obviously.
>>
>>107556870

i think its good for researching and when you don’t want to spend like 2 hours to relearn how to implement a red-black tree or some super specific problem
but even for boilerplatey stuff it kinda sucks, idk, the unit tests it spit out for me kinda sucked
>>
>>107556278
I hate coding in Python. I view it as a jeet slop language. There's no honor in writing Python shitcode, but sometimes it's necessary because I want to run some TTS model or something that only has a Pytorch implementation. So I just ask AI to shit out a gradio web interface or something like that.
That's pretty much the only use case for AI coding, at least for me.
Actually Deepseek is pretty good at Powershell as well. By looking at what Deepseek shat out I was able to learn powershell to a basic degree. But I still never copypaste what it wrote verbatim due to the potential for data loss.
>>
>>107556918

i rarely write crud, im in mobile(ios)

crud in mobile is maybe using sqlite and you don’t get ORMs or similar shit for that OR being a json pretty printer if you are doing something super simple

anything that is a bit more complex (searching is a classic example) needs full attention because you’re writing concurrent code
>>
>>107556923
unit tests?
nonono anon
the boilerplate'est boilerplate that ever boilerplated

unit tests are extremely important and are heavily dependent on the actual algo
its DEFINITELY something you want to write yourself

you can think of it this way:
ai gen unit tests are like a criminal who would investigate himself
if the machine thinks its code is ok
its unit tests will probably find the same

another way of thinking about this:
the unit tests need to be the highest quality and reliability because its the measuring stick you use to find errors in the rest of your code
>>
>>107556957

Yeah, which is why I said they suck. To be fair I’m also not a fan of TDD because I like to evolve my solutions from prototypes and I write tests after I think they look reasonable.
>>
>>107556923
>>107556957 cont
what could work pretty well i think, is once youre done, you still send your stuff to a chatbot, to get a "second set of eyes" so to speak.
its not reliable, it will find false positives, but once it finds a positive positive, youre in the green
>>
>>107556972

Yeah, I am more excited for AI to do “semantic aware reviews” and feel it’s more useful for than than for writing code.
>>
>>107556914
thats another thing its really good for, taking my slow discrete simple simon method and turning it into a fast continuous O(1) calculation
>>
>>107556278
>>107556918 (Me)
Just to add to this... generated code quality will normally be worse than what you would have written yourself. At least on its first pass. There'll be useless comments, more duplication, less structure. It might overlook utility functions that it should have used and write worse versions itself. Etc.
I tend to be OK with that. It's a fair tradeoff for the savings in time and mental energy. You can tell it to make specific improvements, or refactor it yourself, or just accept it as-is if you're in a hurry.

>>107556947
sqlite should be no problem. The web project I'm working on doesn't use an ORM either, just postgres directly. I like to define the tables myself and get the LLM to generate corresponding typescript definitions and CRUD queries.
>>
>>107557001

tbf you sound like you dont know how to code
>>
>>107556964
classical tdd is kinda retarded to be honest
its a specific method and order of doing things

testing often is very important though
>prototypes, testing once a solution is found
i work the same way
but i test prototypes too, this way i check for conformity with the expectations
its just that i dont test the limits of my algo, i check for functionality, thats how i know the prototype is conform to the expectations
once i get a solution down, i do a full suite of tests
i check the limits of my algo (0 size buffer, big buffer, etc, whenever a limiting clause would be tripped)
i check my error catching mechanisms with deliberately wrong input (malformed data, erroneous data)

but i test really often, i test pretty much everything.
the only things i dont test are wrapper functions
but then i write in c and its kinda part and parcel of using the language
>>
>>107557010

i often deal with a tiny wrapper to the C api though (either GRDB.swift or Sqlite.swift). Swift isn’t a dynamic language (it’s very much like Rust that prefers generics everywhere) so you can’t really use runtime trickery like JVM languages or Go do, so you don’t get those reflection tricks,
>>
File: twatter.png (15 KB, 405x230)
15 KB
15 KB PNG
It's trained on all the code they could find and most code out there is trash. It's mostly fine for immediately obvious boiler plate code.
>>
>>107556278
I use some ollama coder and all it provides is examples on how to use some libraries in C, it does save time a lot but it will never complete any project.
>>
>>107557028
I don't use reflection tricks either. Point it to your schema and to some existing examples and you should have no problem getting it to generate types/queries/wrapper functions.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.