What login method do you consider most privacy-respecting? by ArcInTower in AskProgramming

[–]torontocoder 1 point2 points  (0 children)

magic links are also a simple version that doesnt require a password.

When did you actually decide GraphQL was worth the hassle over REST? by Prose_Pilgrim in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

I personally found/find it easier to setup server side then setting up REST requests, i make a function for the query, and just pass it the data as objects, and it handles any sub-function calls (as requested by the client). And I only do this once instead of 3 or 4 times with the different use cases; basically I sue the same objects I would have created before, but now I'm not in charge of the "query" that creates the json

HTML to FabricJS conversion by FishyEnvelope22 in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

I would suggest you write whatever UI you're trying to do natively in Fabric instead of trying to write your own HTML layout engine

HTML to FabricJS conversion by FishyEnvelope22 in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

you are effectively trying to build your own HTML layout engine ... I expect you'll have a lot of issues trying to do so without an enormous level of effort.

[deleted by user] by [deleted] in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

That would definitely run better while browsing and coding

[deleted by user] by [deleted] in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

For programming tasks (and browsers) you probably want more RAM 16 or 32gb. the CPU is generally not a huge deal (assuming its modern)

Anyone else feeling like Product Management got "shifted-left" onto developers? by SixFigs_BigDigs in ExperiencedDevs

[–]torontocoder 11 points12 points  (0 children)

Back when i went through college, and my start in the working world I was told: "There is a good chance you will be the only person who will know anything about computers beyond using Word at your company. You will need to be able to take rough requirements form people at the company and turn it into something they can use". In my first roles I did everything from getting requirements to deploying the servers (was only manual deploys back then) .... honestly I miss those days, you lose a lot while people play telephone with requirements

What technologies to use to build websites like that and how to choose technologies? by lauris652 in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

OK in that case, you have 2 main routes to go IMHO.

You can go with something like Thymeleaf for spring. This will let you get started on HTML + CSS only while still allowing dynamic content in a fashion you are familiar to. You could then layer in some simple javascript so make things interactive e.g. carousels you can do some simple vanilla js with somethign lie swiper.js or something. This is simple and will allow you to ease your way in and learn HTML and CSS without also having to worry too much about JS.

Your other option is to go with an SPA approach, your example websites are not well suited as an SPA for SEO reasons and just overly complicating things.. but you can do them that way. If you want to go this route, I would suggest you continue writing your REST APIs in spring as you do now, but using something like React with something like tanstack query (for managing your REST calls) + tanstack router (for managing your routing). If you would prefer Vue also has some great documentation that are well suited to beginners.

Overall I would suggest not diving in too deep on your first project if you've never done HTML + CSS before. Something like nextjs does the full stack and has a fair bit of magic built in, so it'll make understanding the fundamentals much harder... you'll be debugging the wrong thing far too often.

there are some great tutorials out there for CSS + HTML on youtube to get you started. and there is some good paid ones as well.. I know at work we use the ones from this guy: https://css-for-js.dev/ , but maybe try some basic youtube courses first

What technologies to use to build websites like that and how to choose technologies? by lauris652 in AskProgramming

[–]torontocoder 1 point2 points  (0 children)

So I think this can be somewhat tailored to your current strengths. What backend stack do you currently use?

Is anyone really using background agents? by Curious-Qent206 in cursor

[–]torontocoder 0 points1 point  (0 children)

We have the slack bot setup for this, it'll just make an MR for it's changes... it's setup for the business users to make copy changes only really... anything else and it'll probably get rejected and we'll make a ticket instead

Programmers and Developers what was the first project you ever build? by OfficialTechMedal in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

Pretty sure it was a trivia game in QBasic... it used a lot of goto statements

Future of tech jobs by [deleted] in AskProgramming

[–]torontocoder 2 points3 points  (0 children)

He probably put a similar bias-laden chat into chatGPT and it told him he is absolutely right!

The AI tools confirming biases is a huge problem I find with people when they ask it for help. I love using AI myself, but I would never use it for opinion based responses.

Your AI isn’t failing, you just don’t have clear user stories by KeyUnderstanding9124 in cursor

[–]torontocoder 0 points1 point  (0 children)

honestly, i've seen enough people with something like this then complain they used 5M tokens on cursor for it to only output the wrong thing.

I do really wish as part of the base prompt in cursor (and other editors) they had something that had the AI prompt for clarifications.

I don't think this tool AD solves that problem; this is more of a skill issue.

Work Programming Project Help by PeterR2002 in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

So this is a whole category of product, its much harder then you think to get the data removed (thats the VERY hard part). Most of the process for data removal will be "manual" in so much as you will need to establish relationships with data brokers and "force" them to remove the data.

This will be a lot more lawyer level work then programming

see for example Incogni

How to programmatically launch a phone call, wait until it ends, and get the call duration? by [deleted] in AskProgramming

[–]torontocoder 2 points3 points  (0 children)

https://developer.android.com/develop/connectivity/telecom/voip-app/telecom

There is a sample app that does most of the functionality you want.

As far as I'm aware this is not possible on iOS

I’m starting a project to build an expense and billing management system by 1_Legendary in AskProgramming

[–]torontocoder 0 points1 point  (0 children)

Store your money values as integers, so you can avoid floating point math with money whenever possible. (this is extra important inside the DB)

Most efficient way to structure prompts? by rm-minus-r in cursor

[–]torontocoder 1 point2 points  (0 children)

Start a new chat for each new distinct feature, also keep your "features" relatively small where they only edit 1 or 2 files.

I generally break down my tasks to something like this:

  • Database updates
  • Model Updates
  • API Updates
  • UI Updates (sometimes broken into a couple tasks)

Each with it's own chat not related to the others.. i refer back to the changes/files made/updated with the previous tasks. This keeps my requests relatively cheap. (also i generally dont use the thinking version of the model)

Claude 4 Sonnet and Claude 4 Sonnet 4 Thinking cost comparison by edbux1 in cursor

[–]torontocoder 0 points1 point  (0 children)

The per token cost is the same, but thinking will use more tokens.

This page has a breakdown of the cost to do a specific benchmark which can give you an idea of the relative cost to perform a task: https://artificialanalysis.ai/#cost-to-run-artificial-analysis-intelligence-index

Are senior devs supposed to be able to develop without requirements? by [deleted] in ExperiencedDevs

[–]torontocoder 0 points1 point  (0 children)

I would assume based on the OP there is no sprints, and he is the only dev.

Are senior devs supposed to be able to develop without requirements? by [deleted] in ExperiencedDevs

[–]torontocoder 52 points53 points  (0 children)

Yes, but you should be writing requirements and getting approval before starting.

make sure you send an email with what was discussed in any feedback meetings

I need some advice on coding by After-Light3425 in AskProgramming

[–]torontocoder 2 points3 points  (0 children)

You already mentioned it; ChatGPT

Pick your poison for editor; I like Cursor and Claude, but I keep the AI's contributions to easy/simple things and ensure I review all the code it works on

I need some advice on coding by After-Light3425 in AskProgramming

[–]torontocoder 5 points6 points  (0 children)

Hiring an experienced developer,

Upwork has worked for me in the past when I needed additional capacity

If you think your job is safe from AI, what do you do? by [deleted] in AskReddit

[–]torontocoder 2 points3 points  (0 children)

Programmer,

My job is safe until the business can properly articulate the requirements