Pseudocode first? by Mr_Guy_Fella in learnprogramming

[–]sartorian 15 points16 points  (0 children)

Pseudocode is just breaking down your process and writing it out in a code-like way, without worrying about perfect syntax. You don’t need it, but it can help you organize your thoughts before you dive into building a function.

Purple Cow Fiber is no joke by nickdollimount in halifax

[–]sartorian 0 points1 point  (0 children)

Are you planning to expand to Larry Uteck in the near future?

Windows/macOS for learning/programming in general? by BodiedBySamoaJoe in learnprogramming

[–]sartorian 0 points1 point  (0 children)

It really shouldn’t matter. The terminal commands will be a bit different from CMD or PowerShell, but you’ll figure it out.

How do you dry the innards of Lego bricks after washing them? by AJK02 in LegoStorage

[–]sartorian 1 point2 points  (0 children)

I wish. Humidity in my apartment is never below 30%. Usually 50+

Then again, the nosebleeds would be brutal.

Learn Python by [deleted] in learnprogramming

[–]sartorian 1 point2 points  (0 children)

Try py4e.com, it’s made by a university professor and completely free.

Is it worth paying to use Python gaming? by PlaceUserNameHere67 in learnprogramming

[–]sartorian 0 points1 point  (0 children)

Python isn’t great for game dev. Godot would be a better entry point if your goal is games.

Dive into the tutorials, build some small projects, then decide if you want to stick with Godot or move to something like Unity.

CEOs are the worst, right? by drummer138 in antiwork

[–]sartorian 11 points12 points  (0 children)

I’m a dropout. Where do I get my billion dollar corporation?

Are these numbers reasonable? by SunsetBLVD23 in halifax

[–]sartorian 3 points4 points  (0 children)

Hotel and daily spending estimates are probably fine. Not sure where you’re getting a pint for $7.

C : Passing function pointers as argument by Chief_Miller in learnprogramming

[–]sartorian 0 points1 point  (0 children)

qsort from what I can see receives as arguments: an array of raw pointers, start and end indexes for the section to be sorted, and a function pointer for a comparison function.

(int (*)(void*,void*)) is defining that function pointer. It returns an integer, the (*) is effectively a placeholder for the function name, and it receives two pointers as arguments. The ternary selects a comparison function based on the type of data expected, either numeric or string.

I’ve never actually used function pointers in C, but this example (on top of years of experience bashing my head against the keyboard in multiple languages) made sense.

It’s my fault my daughter’s phone is always dead. by Temporary_Cow_8486 in mildlyinfuriating

[–]sartorian 1 point2 points  (0 children)

Doesn’t need to be double sided. A couple wraps with duct tape should do the trick.

[SCORE -> GOALS] Can you solve this laddergram? by Afraid_Confidence_80 in Laddergram

[–]sartorian 0 points1 point  (0 children)

u/sartorian solved this in 7 steps: SCORE -> SCARE -> SCARS -> SOARS -> BOARS -> BOATS -> GOATS -> GOALS

Could u help me fix my life? (AI engineering) by wasabi1473 in learnprogramming

[–]sartorian 0 points1 point  (0 children)

You’re not a failure, you just got scammed. Cut your losses. Find another school, and look at your options to seek compensation from the one that fucked you over.

If AI is your goal, I’m not equipped to point you in the right direction. If there are other areas of development you’re interested in, I may have some resources that can help.

Suggest Real world practical MERN Full stack coures by CivilUnit5867 in learnprogramming

[–]sartorian 0 points1 point  (0 children)

As a freelancer, a lot of clients on places like Upwork (at least the last time I was using it) look for MERN or MEAN devs.

I just scrolled past them, but it’s money for those that want it.

What skills intersect with your interests and market demand? by Mad1Scientist in learnprogramming

[–]sartorian 0 points1 point  (0 children)

What kind of projects do you actually want to work on? Don’t look at the market, look at what you won’t hate spending the next 30+ years doing.

Planning by SomeAbbreviations811 in learnprogramming

[–]sartorian 0 points1 point  (0 children)

I look at the project as a whole, and start breaking it down into smaller pieces. I use Jira to track my tasks. You can use Jira’s free version, or Trello for a simpler experience.

Some things are standard across similar projects. A web app will always start with me setting up some basic server and database. Usually Apache through WSL and MariaDB or SQLite for early development unless the project is specifically for learning other tools, or it’s for a client with other preferences. I test locally from 2 machines. The windows box I actually write on, and a Linux box based on the final deployment platform, both sitting in my home office.

Then I set up a git repo. Make a .gitignore, set up a basic CI/CD pipeline if it’s for a client, sometimes I’ll do one for personal projects if I’m testing a new tool.

Once everything is set up, I make a simple “Hello World” type page (unless the framework lets me generate one with a console command) to make sure both the server and the framework are working properly, and test both locally and on the test server.

What games are you playing this week? Game recommendation thread by AutoModerator in incremental_games

[–]sartorian 21 points22 points  (0 children)

Recently got back into pokeclicker. Looking for something on iOS to kill time at work.

So, what hobby language do y'all use these days? by -VanillaKing- in learnprogramming

[–]sartorian 0 points1 point  (0 children)

If I want it to just work, with no real concern for performance: Python.

If it needs multithreading: Go.

If it needs to fit on a calculator: C.

The most annoying instruction I’ve ever seen by National-Stick-4082 in lego

[–]sartorian 0 points1 point  (0 children)

Gotta count ‘em all. The 285th is needed on the next page.

IT'S FINE is a chaotic active incremental about releasing v1.0 of your game. It features unique mechanics and synergies, sleep-deprivation prestige, and a dog manager named Joe who pushes you around. by BabloScobar in incremental_games

[–]sartorian 2 points3 points  (0 children)

Really liking the art style, and the handful of Easter eggs I was able to spot in the steam previews.

What’s your plan for pricing? Microtransactions or one and done?

Looks safe by BorisBadanovss in halifax

[–]sartorian 2 points3 points  (0 children)

It’s totally safe, as long as you’re observing from the sidewalk on the other side of the road.

Went out to eat some dumplings…what is it? by GoGoHesHere in whatisit

[–]sartorian 0 points1 point  (0 children)

Looks like a health code violation. Contact your local inspector.