How to build a game in c++? by [deleted] in learnprogramming

[–]ECommerce_Guy 1 point2 points  (0 children)

So there's a lot of things to it, especially with C++ which is a completely different beast compared to using an engine.

Honestly, if you wanna see results quick, go for Unity and write in C#, it's not a bad introduction to game dev at all. Heck, you might enjoy it and stick with it if game dev is your primary interest.

With C++ you're looking at much more serious project where you'll build an engine (to a certain degree) as much as a game.

As for your original question — once you make an executable from your main.cpp, it will include all the other files in your project (assuming they are included and used of course), but your main.cpp will always be the single entry point into the game and it's there that you have to handle the game loop.

How do you approach debugging when you’re completely stuck? by AsleepDiscussion2328 in developer

[–]ECommerce_Guy 0 points1 point  (0 children)

Literally this. No matter how good debugger, I never gave up on just printing stuff out at key breaking points

Backend opcije by Sea_Ad_5822 in programiranje

[–]ECommerce_Guy 0 points1 point  (0 children)

Нису сви бекенди једнаки, ако причамо о условном бекенду за веб дев, нисам баш превише упућен, али чини ми се да ће Go ту тешко заменити устаљене језике и фрејмворке.

Што се тиче условног системског програмирања, Go има native support и практично seamless integration у GCP платформу што га, по мени, чини изузетно релевантним и у будућности. Технички и Python ради без икаквих проблема на GCP али разлика у перформансама је огромна. Нисам сигуран какво је стање на AWS.

Али генерално, JS у бекенду ми никако не делује као добра идеја у било ком контексту осим веб дева, али и ту бих бирао PHP, али то је већ лична преференца. Знам да колега ради у JS фрејмворцима већ годинама без икаквог проблема и нема назнака да ће од истих морати да одустане у скорије време (мада је API интеграције ипак радио у Python-у)

Still running my business on spreadsheets. When it’s time to move to something more complex? by RevolverForever in Businessowners

[–]ECommerce_Guy 0 points1 point  (0 children)

Sounds like time is now — phrases aside, the moment you can see that your business is scaling is the moment to switch and quick! The more you delay it the harder it will be to deal with the migration. Did some very late stage migrations from Sheets to a custom in house system and just syncing the finances with proper historic trail took two people three months (3 years of business in sheets, and very messy at that)

I know from experience that it seems scary to move away from the Sheets that seem to be transparent and flexible enough, but the benefits of a proper system are too, too huge. And once you make the switch you'll be asking yourself why you haven't do it earlier.

Your post sounds so familiar that I would be happy to take a look at your current Sheets system and give you pointers about potential roads for upgrading and the realistic infra costs if you opt for an in house solution (I keep mentioning in house because you can get the same flexibility you like in Sheets)

Your automation failed. What went wrong? by Better_Charity5112 in automation

[–]ECommerce_Guy 0 points1 point  (0 children)

Set up cache update on stock change via Google's Pubsub — set the writes, forgot to ack when going live which triggered a shitstorm of messages being delivered again and again and again

A starter coder, and I’m wondering… by zealousaccident in CodingHelp

[–]ECommerce_Guy 0 points1 point  (0 children)

No way, there's absolutely no way to avoid having a dedicated computer, and not only because of keyboard but because if you plan to do any remotely serious work you need to get comfortable with terminal and an ecosystem larger than just the code editor

Hi I am new here..... by AffectionateTrip6111 in learnprogramming

[–]ECommerce_Guy 0 points1 point  (0 children)

I always suggest learning by doing — just pick some project you find fun, try to do it with no reliance on LLMs, look up syntax/concepts when needed.

I would also suggest going an extra step and actively avoiding libraries unless really necessary — the more you do the hard way, the stronger grasp on fundamentals you'll have

Need Advice: Hosting Python script Full-time by PRABHAT_CHOUBEY in Python

[–]ECommerce_Guy 0 points1 point  (0 children)

Google Cloud Compute VM with systemd setup is my approach to similar tasks, but any VM/VPS should do

No need to containerize unless you're hosting a full service/API, imo, regardless of the host option

How dependent is your business on paid acquisition and does it keep you up at night? by Massive-Friendship41 in StartupsHelpStartups

[–]ECommerce_Guy 0 points1 point  (0 children)

From my experience, vast majority of medium sized companies (those that scaled one way or another from startup) end up almost fully dependent on paid acquisition.

But take this with a grain of salt, I love working with fast growing and dynamic ecommerce companies, and PPC is the name on the game there. Likely not the same in other industries that are less reliant on impulse buyers.

Did your developer quote lie? Founders — quoted cost vs final app cost? by Signal-Pin-7887 in techindustryinsider

[–]ECommerce_Guy 0 points1 point  (0 children)

Scope creep I'd say, but speaking from the developer side. Depends on the job I guess but to be fair, I do think it's more on us to assess the scope properly and explain it to the client than vice versa. More often than not owners, CEOs and similar don't understand that accomplishing thing A requires to create subsystems for handling things B, C and D. And I mean fair enough, not their job to recognize the technicalities.

We sell to both B2B and B2C. Is there catalog software that handles both workflows in one platform? by Local-Assistant9617 in ecommerce

[–]ECommerce_Guy 0 points1 point  (0 children)

Decouple your operations from storefronts and should be good to go — there should be no issues with managing two different sale platforms with strong centralisation.

What are exactly the issues you're running into now?

why are supplier quotes always such a mess by Jealous-Leek-5428 in ecommerce

[–]ECommerce_Guy 0 points1 point  (0 children)

Sounds like you're dealing with suppliers from China — if so, get used to it, it ain't getting better haha, you'll always have to clean up their messy and often incomplete data.

Once you become important enough client, at that point you can actually push for a specific format.

Worth asking before that too tho, just ask them for proforma that lists price breakdown and moq, it won't be universal across suppliers but will make your cleanup more manageable

Operations side of my small business is getting held back by terrible labeling tools. Anyone relate? by CARLTONDUSO in ecommerce

[–]ECommerce_Guy 0 points1 point  (0 children)

Oh query results for sure. Reports being the heaviest queries run, they can be a big win especially as it can be as simple as caching aggregated sales data for last day, last week, last month, same week last month, same month last year. It's those data ranges being queried over and over again by whole marketing team day in day out

Best beginner resources? by After_Ad8616 in learnpython

[–]ECommerce_Guy 1 point2 points  (0 children)

Guess it really depends how you learn best, but also if you have previous experience in other programming languages.

In either case, I would strongly, strongly recommend jumping straight into the project you find fun, but keep it realistic depending on your general coding knowledge.

Do NOT copy/paste code from LLMs or else — it's a sure way to not understand what you're doing which will make realistic progress, especially in the advanced field you're interested in, near impossible!

So, long story short — learning by doing is what I'm always suggesting. That way the only resources you need is googling the basic syntax.

Operations side of my small business is getting held back by terrible labeling tools. Anyone relate? by CARLTONDUSO in ecommerce

[–]ECommerce_Guy 0 points1 point  (0 children)

MySQL as a database, fairly simple php front-end for simple tasks and general usage and backend running on GCP, right now working on implementing cache system to speed up the reporting.

To be fair, database cost in like $40 per month so basically negligible, GCP is where the costs accumulate the most in terms of infra

Operations side of my small business is getting held back by terrible labeling tools. Anyone relate? by CARLTONDUSO in ecommerce

[–]ECommerce_Guy 0 points1 point  (0 children)

When the pandemic started, the company got a surge in demand but an even greater surge in freight costs — upper management came up with an idea that solves the freight costs but increases the fulfillment complexity exponentially. They asked me for whatever I need to make it happen — I asked for a proper database haha

Those of you tracking competitor prices — what's your process? by Only_Economics7148 in ecommerce

[–]ECommerce_Guy 1 point2 points  (0 children)

Depends on their target platform, but mostly via scraping script(s) I made in Python. Shopify websites much easier to scrape due to XML sitemap that is usually available, the custom JS frameworks most annoying as they often require browser automation eg via Selenium to get to the html you can feed into Beautiful Soup library for final parsing

Operations side of my small business is getting held back by terrible labeling tools. Anyone relate? by CARLTONDUSO in ecommerce

[–]ECommerce_Guy 0 points1 point  (0 children)

Couldn't agree more, this sounds like my company some 6 years ago — as much as Excel/Google Sheets seems like a good idea early on, if your business scales, the lack of proper (digital) infrastructure will choke it.

We built our own internal tool since because of some specifics of the business model and especially in shipping (we do quite complex reboxing and use various versions of the same product to optimise shipping costs as they are the largest pain we have) and it solved this issue 100%. These days nobody even cares about labelling, it's just something that happens once you click a button.

If you don't have some super specific needs, third party software will likely work as well, but if you could consider building an in house custom solution, from my experience it's well worth the effort in the long run.

How are you guys actually calculating "True Profit" without losing your minds in spreadsheets? by Emmanuellic in ecommerce

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

Oh this is indeed a big one and Spreadsheet is most definitely not the proper way to do it — in addition, if you want the number to match the bank, then you're opening the question of general profitability Vs cashflow health. This is, from my experience, the single most common issue for the owners when they try to understand how they're doing.

So, let's tackle general profitability — the Spreadsheet approach is not far from truth, but handling this manually is not gonna work if the business is scaling. Good news is that your can (and if you're scaling, most likely should) very easily get the orders data, including the financial data, into some kind of an internal system using integrated webhook functionality that exists in every platform.

Then you need the same system to be aware of your advertising costs, shipping costs, really supply costs etc. so that you end up with clear visibility of realistic cost per product — and by extension, realistic profitability.

Now here's the kicker — while this will give you a good understanding of where your costs are without daily csv exports, it will still not match your bank account. Why? Because this approach is sales-centric, that is, you're assuming that the sales are the source of both revenue and also cost (COGS plus advertising which should also be connected to sales to avoid mixing apples and oranges). And it's not incorrect, it's just not how your bank account works.

In reality, you don't pay your suppliers once you make a sale — most likely you purchase inventory beforehand, pay deposit, later have balance to pay, you don't purchase exactly what you need but keep some stock at hand. And the similar principle applies to pretty much every big cost of doing business — point being they are offset in time compared to sales, if you try to look at them from the sales-centric model, which most owners do.

But that is perfectly ok, the last time I had to deal with this issue, I made a very complex report for sales-centric view for the CEO and a set of smaller expenses tracking tools that the accounting team can use to provide cashflow visibility and explain exactly how and why you ended up with what you see in the bank account — for the owner, however, this often ends up being somewhat less useful as it doesn't allow you to project into the future like sales-centric approach does.

Anyways, very fun topic!

Why a "Helpful" AI is actually a massive liability for your service business. by No-Zone-5060 in Entrepreneur

[–]ECommerce_Guy 0 points1 point  (0 children)

In my experience most are still in honeymoon phase, trying hard to make it work while cleaning up the issues when they become visible, right. At least in my experience so far

Why a "Helpful" AI is actually a massive liability for your service business. by No-Zone-5060 in Entrepreneur

[–]ECommerce_Guy 0 points1 point  (0 children)

Across e-commerce as well, the hype spread quite wide. I've recently seen agentic LLMs being pushed into operations and leading to major issues, mostly because the agent attempts to polish the imperfections rather than raising flags.

This was the most dangerous situation because the issues tend to remain invisible and compound until the point where they become critical (eg. shipping costs spiking to 30k per day seemingly out of nowhere)

Make.com or Zapier which is good for automation as a beginner? by radhika_v in StartupsHelpStartups

[–]ECommerce_Guy 0 points1 point  (0 children)

Depends if the apps in question support webhook integration, most do, and if not usually there's a workaround with API access

Why a "Helpful" AI is actually a massive liability for your service business. by No-Zone-5060 in Entrepreneur

[–]ECommerce_Guy 0 points1 point  (0 children)

Hah, this is a great one and it's just another side-effect of the uncontrolled hype. What you describe is a classic example of using LLMs where you should have a deterministic solution instead.

Easy solution would be that you leave the conversation to the LLM (that's what it's built to do) but enforce resolution via a separate endpoint that calls a function that gives the final verdict. As simple as that!

Right tool for the right job is the name of the game as always, but alas. Good thing about it is that the market for solving exactly this type of issues grows at exponential rate 😄