#GEEKDOME!

832 messages Β· Page 1 of 1 (latest)

untold badger
#

Post your silly programming related stuff :3

lament jasper
#

Yaaaaaaaay I'm gonna do some stuff with Hydra and talk about it here

#

In case anyone's interested

#

Also any type of project inspiration would be great

agile mango
#

might have to mess around with that during build times today

untold badger
lament jasper
#

It would be cool to do live as a paired DJ/Visual artist thing

agile mango
reef leaf
agile mango
#

made a mtg life tracker lol

lament jasper
#

I'd be down to work on Pwnagotchis or flippers too

reef leaf
lament jasper
#

And I have an unnecessary amount of Cobol experience

agile mango
#

I'm so sorry

reef leaf
#

Try making a simple note-taking website, maybe even use stuff like localStorage to save the notes.

If you wanna challenge yourself, try making it as efficent as possible or only use static hosting(no server code, just client code)

lament jasper
#

Gonna look into it

reef leaf
#

You can use InputArea element btw, it might really help

lament jasper
lament jasper
agile mango
#

yo that's cool af

#

my friend and I are starting to consider saturn or Dreamcast homebrew for our next project but idk

#

I'd like to do larger gb projects buuuut being part of a company that has formal agreements with Nintendo means that's a weird legal ground

lament jasper
#

Nintendo is a stickler for that kind of thing too

untold badger
#

making my game (resized here to have a good file size)

agile mango
#

exactly. meanwhile Sega is like lol go for it nerd

agile mango
#

gearbox software

lament jasper
#

Been thinking about getting into modding games like botw or elden ring. It looks fun

agile mango
#

you def should, sometimes I wish I stuck with level design more

reef leaf
#

Huh, neat, thought they pretty much stopped game development after Alien, and stuck to publishing

agile mango
#

nah borderlands is too big to fail at this point iamloling

#

top 25 selling game series ever or something

#

I just do silly engine code stuff though

reef leaf
#

Was just gonna ask what your job is there.

#

Got a custom one?

agile mango
#

online code, but all in the game client. so like socket code in unreal engine up to implementing the game side of friends lists, matchmaking and any other social features. which blends into boring stuff like controller mapping, managing user logins to various backend services, etc

untold badger
#

socket programming is actually hell

agile mango
#

it's not that bad once it clicks tbh

untold badger
#

damn

reef leaf
agile mango
# reef leaf Got a custom one?

as part of my grad school program yes, but that code is owned by the university. I think a lot about starting a new one but I'm more interested in actually making games in my spare time now so I use Godot and am slowly working through a set of rust and bevy tutorials

agile mango
#

we historically support split screen, and that got really messy in the PS3/360 gen and later

reef leaf
#

Ahh, because they don't use standard drivers and have special ones that only work with their controllers. (response about console controller mapping)

untold badger
#

it is so good

lament jasper
#

What was your grad program about? Did you do a bachelor's in cs?

agile mango
#

it's actually more because they console OS keeps the concept of "User" and "Controller" separate to support being able to change users without closing the game. So the game ends up being responsible for keeping that mapping accurate. Which isn't hard under normal circumstances, but once you start thinking about controllers running out of battery, consoles being put into suspend mode, or people yanking their Ethernet cable in the middle of logging in

#

For example, Xbox allows you to have four controllers all actively controlling the same user, and also let's you have four users actively logged in when only one controller is connected

reef leaf
#

Why don't they do what Steam Input does and make the gamepads virtual and handle everything outside of the game?

agile mango
#

Couple reasons, one being that Xbox historically had the Kinect which involved biometric logins - where they'd use facial recognition to log someone in even if they weren't holding a controller. Another being that console users are used to things "just working" with minimal configuration

#

third being that you can log in and out of the platform without closing the game

#

on Xbox you have to allow the game to be controlled to some minimal degree with no users logged in lol

#

PlayStation is a little more straightforward but has their own quirks

reef leaf
#

Honestly, that sounds overcomplicated by Xbox. They literally made the standardised XInput drivers

#

I believe you, I just don't know why they would do that

agile mango
#

It is, it ultimately boils down to making things simple for the user while also providing maximum flexibility

#

even on PC though, it gets complicated at times with how unreal handles dynamic detection of controllers being added and removed

untold badger
agile mango
#

every project, I spend a significant amount of time fixing bugs related to them changing the low level input code in some slight way that breaks an edge case

reef leaf
untold badger
#

YIPPIE THE PIXELATION SHADER WORKS

reef leaf
#

By just I mean about a week ago

reef leaf
#

Honestly, my only problem have been that the mesa drivers don't fully support my ancient integrated graphics.

But Windows only supported a ancient version of OpenCL with it, meaning you could only run a browser and that's about it on that OS, not to mention how it had so much stuff going on at all times for no reason

#

I guess I gotta wait a bit tho for those drivers, finding a GPU for a Small Form Factor PC is near impossible

#

First one is original, second one compressed, tbh it's pretty damn good

untold badger
#

neon white is insanely good

#

how do people even make stuff like this

reef leaf
untold badger
#

god i love the jpeg filter

#

i wish more indie games used stuff like it

agile mango
#

and having Annapurna money behind it

untold badger
untold badger
#

geekdome where are you :(

agile mango
#

at work!!!

untold badger
lament jasper
#

Fighting for my life in elden ring

untold badger
reef leaf
#

Btw, do you have a event input handler like in Godot?

I remember that detecting a keypress was a mess though Python and JavaScript too.

reef leaf
# agile mango it's consoles that make it complicated

Have you considered making a script that captures the input then communicates it to all other scripts?

That way you only have to change one script as you can make the sender script change the input to work correctly before you send it forward.

#

Like translation middle man

#

Makes all the weird console languages a normal one

agile mango
#

see the thing is unreal has multiple layers of input handling already, and the issues tend to crop up in those. and part of the issue is that unreal recently introduced a completely new input system called EnhancedInput which requires lots of fixes to my company's code that sits on top of it

like in unreal the input stack is something like
drivers -> OS -> low level engine stuff -> Slate (which is the basis of unreal's user interface) -> a mess of like three different interconnected systems -> my teams code

and even that's an oversimplification πŸ˜‚

#

I suggest you download the unreal source for yourself and be awestruck by the nightmare that is a 20+ year old engine iamloling

reef leaf
#

Geez, I thought they used something like XInput and DInput, already made standards

agile mango
#

They do. That's what OS means in my oversimplification

reef leaf
agile mango
#

it's more like monolithic 2,000 line functions that handle every edge case that every unreal developer has run into in the past 20 years

#

The function that processes keyboard state every frame is legit thousands of lines long, and that's only for keyboard input. Same thing applies to controllers, analog input, mouse events, touch screen, various VR controllers, etc. etc. lol

#

and that's all before it gets routed in to the old InputAction or new EnhancedInput systems which take those key events generated at the lower level and map them to gameplay concepts. those are complicated systems in their own right, and unreal has two that solve the same problem in different ways that you can use at the same time lol

reef leaf
#

Well, I'm starting to get a headache trying to understand that while also doing something else.

Maybe I'll revisit the nightmare looking description you just made later.

agile mango
#

lmao

#

trust me this shits complicated, programmers who have been at my company for 15+ years doing this stuff aren't all that confident in their understanding of it either

reef leaf
#

I hope Godot is easier to work with if I ever wanna release to consoles.

#

I thought my multiplayer Input handler was a bit overcomplicated, didn't realise how simple it was compared to some other stuff

reef leaf
# agile mango The function that processes keyboard state every frame is legit thousands of lin...

Why wouldn't they save the input in RAM(until it gotta be removed or a specific ammount of time) when it does happen, and if someone wants to check input they just check there?

I don't get why you gotta check every frame, because performance and what if you want it before a frame is processed?

Also, will it just run more checking scripts the more input methods you support?

Will it still check for controller input if you only support keyboard?

#

Or do you manually choose what input sources to check in the project settings or something?

#

.
This Unreal Engine input system is making me so damn confused.

untold badger
reef leaf
untold badger
reef leaf
#

Ahhh, so it has the input keycodes saved as variables, that itself makes things a lot easier to work with.

untold badger
reef leaf
#

I somehow made my compressed image format download make the file 10 times larger than the original and not readable by my own damn algorithm.

That download function did some magic shit and generated new useless data that obliterates the compressed data and makes some unreadable gibberish.

I think I need a GUI interface for a bit longer.

#

Bevy may be great, but I don't know the first thing about Rust and I can barely use the programming languages I already know.

untold badger
reef leaf
#

I should try it again, even though I somehow obliterated the compiler last time I tried.

reef leaf
#

I think mixed float and double in some math equation, I was just trying make a simple area calculator based on width and height

#

It's literally just width * height.

#

Or I declared the type wrong

untold badger
#

you should use floats, most of the time doubles are completely useless

reef leaf
untold badger
reef leaf
#

I have to read entire documentations to see if a function is spelled using "color", "colour" or some abbreviation.

And individual APIs use their own names.

I can't be sure something supports "5,1"

#

It's Zem dammned Americons foult!!

untold badger
reef leaf
#

Don't let me go on a tandrum on how the American company Microsoft ruined the meaning of Kilo(ALWAYS 1000) in kb(KiloBytes).

#

It's not 1024, boo!

#

My metric system knowing ass is looking at you with shame Bill.

balmy glacierBOT
#

@untold badger has leveled up! (11 ➜ 12)

reef leaf
#

You follow the metric rules of measurements because you don't have a foot fetish or got a portable field with you at all times.

But you refuse to follow the metric standards for numbers, or even allow using them at all.

#

.
Godot uses meters yet calls it "color", but please don't stop using meters ffs.

#

Look at this damn chart and don't get a headache trying to understand it.

agile mango
# reef leaf Why wouldn't they save the input in RAM(until it gotta be removed or a specific ...

performance doesn't matter here, polling input takes maybe a microsecond or two, and checking every frame is necessary so that you don't miss player input

checking input happens very early in the game loop too, way before any gameplay systems are processed.

There are ways to check raw input state but unreal's input system lets you assign gameplay events to chorded inputs (multiple keys held), double inputs, inputs held for a certain time and a whole lot more.

Remember, it's a general input system designed to work in as many AAA games as possible without modification, so they try to handle literally every possible case. You always trade simplicity and performance for safety and flexibility when writing an engine that's supposed to work for everything

#

and yeah it tracks input for all connected devices, think about splitscreen. imagine I have three friends all trying to play a game each with our own controller. I launch a game on my steam account and navigate the main menu with my controller. how would the game know that other players are pressing to join the game? again it's not really a performance concern though because we are talking a microsecond or so for all input processing, when we have ~16 milliseconds per frame

#

and yeah you could disable controller support if you'd like and unreal will ignore it

#

oh you also gotta remember, a massive portion of unreal developers never touch c++. they stick to blueprint and so all of this stuff has.to be abstracted away

reef leaf
#

Ahh, okay. I guess Unreal engine doesn't really target lower end hardware such as old PCs and phones, so checking every frame wouldn't be a problem.

#

Or any phones for that matter, even the best popular ones aren't really that powerful.

agile mango
#

They support Android and iOS, but phones are more powerful than you might think these days

reef leaf
#

I got a Galaxy S22 that has lags significantly if I scroll fast and have Spotify on in the background or something.

It also overheats from charging, hosting a hotspot, or playing any game.

#

I got this new

untold badger
#

engineers make modern computer parts
developers dont optimise their code
the cycle begins again

#

unreal and most other engines use opengl, essentially we use the same graphics as ~13 years ago but more complex because some people want to see every individual piece of hair on a character

reef leaf
reef leaf
#

They keep marketing that their phone is great for the few things that they don't do well.

#

Like Apple saying you can game on your iPhone, while not giving you a way to add physical controlls or releasing a phone case with a gamepad glued on or something.

#

Sure you might game for a bit, but your hands will be hot and you can't check what buss to take home becuase the battery is dead

#

And you won't see anything because a phone is tiny and your fingers cover everything

reef leaf
# agile mango They support Android and iOS, but phones are more powerful than you might think ...

On paper they are, if it would have only been running only what you want like on a PC (I guess not anymore because Microsoft) then that would be great.

But those resources are split between a million different tasks, a phone wants to constantly:

Check if you got new eMail or messages.
Sync all files to some cloud storage.
Run apps so they can send you notifications.
Update all your apps.
Send marketing notifications.
Check for any new Bluetooth devices to automatically try to connect to (It literally does that for headphones that strangers on the buss are wearing).
Check for best cell tower connection.
Check if there is a WiFi network nearby and see if they are saved.
Make sure your phone assistant is always ready.

Can you tell I own a Galaxy? I literally can't uninstall OneDrive.

agile mango
#

all of those things aren't really going to eat up CPU time if properly made, they'll spend more time waiting on networking than processing anything

reef leaf
#

The thing is that very few of them are properly made

#

And very few you can disable

agile mango
#

at least at professional scale

agile mango
#

but phones also give heavy scheduling priority to which ever app is on screen which balances it out some

untold badger
reef leaf
untold badger
#

what is going on

#

sir a second linux has hit the stocks

reef leaf
reef leaf
#

If you want a GPU you buy it second-hand because it's significantly cheaper and you can no longer afford a new one, so for example NVIDIA Corp loses sales profits money.

#

These companies don't make things that are really necessary or need to be bought often like food. So people can just choose not to spend money on those things.

agile mango
#
  • Microsoft's move to shut down DEI and the former lead of that team going public against it, + ai hype slowing down
#

it's still up almost 20% since the start of the year anyway

lament jasper
#

Saw a username called "FAANG-regret"

agile mango
#

I will Uber before I go FAANG

untold badger
lament jasper
#

Can't wait for shitty AI theft and art mimics to go the way of nfts

#

And actually do something useful

agile mango
#

Microsoft is too big to fail, the US govt would literally sacrifice a third world country to keep it alive

lament jasper
#

This is true

lament jasper
#

The people working in govt can barely handle Windows

#

They'd melt

#

No one would be able to do shit

agile mango
#

even if it died, do you think the government would allow a foreign competitor to take it's place? we have a monopoly on the world's operating systems lol

#

not to mention everything else they do

#

idk Microsoft and apples success is part of the national defense strategy - prevent other countries from gaining a foothold in electronics as much as possible

lament jasper
#

God forbid it would be.... CHINESE

agile mango
#

fun fact: a former CIA director sat on activision's executive team for years. kinda funny how that happened when they tripled down on call of duty as the only game they make and pushed it as a propaganda tool

#

a good chunk of their execs were in the bush admin too actually, like I know it's common for those types to land executive jobs after holding office but still, it's a lil weird

lament jasper
#

My hot take is that CoD and fifa/nba players are the phonies people think animal crossing players are

agile mango
#

not wrong

lament jasper
#

Whenever someone says they mostly play those i know I'll never get a good media recommendation from them

agile mango
#

real lol

#

"have you watched game of thrones?"

lament jasper
untold badger
#

THE YIFFOS IS REAL

lament jasper
agile mango
lament jasper
#

Idk if it works the way it does with movies but it might be the whole dept of defense and cops thing. Like when they allow for use of their property, image and funding if a movie makes them look good

untold badger
agile mango
#

there's 100% some of that going on. Like I know for sure Lockheed and Boeing and other manufacturers have strict rules on how they can display their tech or products, from obvious ones like you can't show them being used to commit war crimes, to smaller things like you can't show them dirty or damaged or malfunctioning

lament jasper
#

BioShock

agile mango
#

not to mention they consult with the military directly for the sake of """""realism"""""

lament jasper
agile mango
#

oh absolutely

lament jasper
#

People making pro-US media and consulting with the government for it are probably ops

agile mango
lament jasper
#

What I would give to see DoD and DHS contacts blow away in the wind

#

Mostly because they want me to put in my time every day for compliance instead of just at the end of the week

#

Also I'm hit with imposter syndrome again this week

agile mango
#

felt

#

the weekly rollercoaster of going between "oh I guess I am doing pretty okay" and "fuck I am going to get fired any day" is uhhhhh not fun

lament jasper
#

Yessssss

#

Especially because there's nothing assigned to me and my teammate is basically doing everything himself

#

Including every bug fix in like 20 min

#

And I can't keep up because he did the whole front end aspect for the last 2 features

#

I don't feel bad for stealing time for 2/3 weeks but I don't want to feel stupid either

untold badger
#

yippie ai companies cant afford to exist πŸ™ lets hope ml is left for nerds in universities

lament jasper
#

And ML is actually interesting and fun when you're not a dick

agile mango
#

damn araxis merge does NOT like me opening a diff of 40 files at once lol

agile mango
#

making video games is cool and fun πŸ‘

#

enjoying work today

untold badger
reef leaf
#

I do live in the right district to be a game developer, it's just that most positions are either full-time or aren't available rn.

#

(Swedish district is like a American state, and Swedish state is like American government)

(The districts also kinda have less power and such, it's also a completely different system from the core but anyways)

reef leaf
#

.
I don't know why we decided the first thing this "being" without emotion should do is something that requires human emotion.

#

.
AI can't understand the emotional meaning of and communication art is used for.

Use it as a librarian for e-Books or something, something that still requires a more dynamic understanding of language than a search engine, but can't exist in human form.

lament jasper
#

it's just ridiculous that people have been given this tool for very practical and helpful applications and people were like "let's make it do art so we can continue to work". so unbearably capitalism brained and dystopian

reef leaf
#

And I don't think I need to elaborate what certain people in power in the USA thinks about trans people.

#

But the Swedish national army straight up offered jobs to someone who could use a Linux server. So maybe we are finally moving away from Windows as a standard.

untold badger
#

πŸ™ linus torvalds is my goat

reef leaf
reef leaf
#

Dude just backwards engineered the entire Unix OS that a big company worked on.

untold badger
reef leaf
#

I spent several hours to barely print 2 letters in assembly, he knows how to use that shit too.

#

Literally most of my free time for a bit over 2 days

untold badger
#

oof, i guess that's a problem of x86's assembly, its much easier in arm assembly

lament jasper
#

Damn I still have to use this janky ass green text terminal for zOS at work

#

Fuckin mainframe

lament jasper
#

Not really. I'm developing the alternative rn as a work project

untold badger
lament jasper
#

it literally burns a hole into my eyes

reef leaf
reef leaf
lament jasper
#

COBOL

reef leaf
#

I thought it was either Bash or Grub(a lighter bash-like that is more meant for managing hardware and important OS details).

Can't help there, these old programming languages tend to be unforgiving and without stuff like inbuilt help or manual pages

#

OH NO

#

You have to explain what everything is instead of it understanding for example that a "+" means addition.

And it tries to pretend to be jank English, so it used full words instead of quick to type abbreviations

#

AND IT DOESN'T EVEN HAVE LOCAL VARIABLES, or a way to dynamically reserve memory

#

I feel so sorry for you @lament jasper

lament jasper
#

you see what i endure now

#

mamamia it doesn't even let me compile and run without writing 2 jobs first

#

imagine going from an ide to a literal notepad screen that looks like shit

reef leaf
lament jasper
#

Lmao

#

Unfortunately my job was not impacted

#

But we have to restart a couple thousand servers

reef leaf
untold badger
#

cooking up my game 😈

reef leaf
untold badger
#

the game is going to be a coop tactical shooter, i want to make the enemu ai extra smart, like they will follow any sound the player makes, even when they're talking

#

:3

reef leaf
#

Ohh, sounds fun! Gonna add LAN play?

#

Or splitscreen?

untold badger
reef leaf
#

A Swedish number just called me claiming to be a European bank-fraud agent and saying that I have committed bank fraud with huge amounts of money and I can pay to fix it.

It was also a obviously AI generated phone voice, making the deepest voice to ever exist

#

If I had that money I wouldn't be where I am rn. Like what did they expect? It was literally grandma bait directed at a young person who is most likely poor.

#

That's like trying to rob a homeless beggar with an empty cup.

reef leaf
lament jasper
reef leaf
#

So they put the choice to say no to cookies behind like 3 menus

reef leaf
agile mango
#

trying to code is hard with a headache

reef leaf
agile mango
#

sometimes

#

most bugs I fix are like, two systems designed by different people interacting in unintended ways

reef leaf
#

Imma share a bash program cuz why not

#

echo -ne "\033]0;PCTempπŸ€’\007"

read -n 4 -p 'Measurement update wait time in whole seconds: ' WAIT_TIME

if [[ $WAIT_TIME =~ [^0-9] ]] || [ -z $WAIT_TIME ]
  then
    echo -e "\nSorry whole seconds (integers) only, reverting to the standard 5 seconds."
    echo "Press any key to continue..."
    read -s -n 1
    WAIT_TIME=5
fi

echo -e "\nThe status will be updated every $WAIT_TIME seconds. Ctrl+C will stop the program.\n"
echo "Press any key to begin monitoring..."
read -s -n 1

temp_src=$(find /sys/class/thermal/thermal_zone*/temp | wc -l)
while true
do
    clear
    echo -e "Following is the measured temperature in mili-celsius:\n"
    for (( c=0; c<=temp_src-1; c++ ))
    do
        echo "$c: $(</sys/class/thermal/thermal_zone$c/temp) m℃"
    done
    sleep $WAIT_TIME
done```
balmy glacierBOT
#

@reef leaf has leveled up! (8 ➜ 9)

reef leaf
#

Measures your PC temperature on Linux

reef leaf
#

Idk why I put an emoji in there, I don't even know if that one supports emojis

untold badger
#

dead channel lmao

reef leaf
#

Geekyness insues

lament jasper
#

I'm just checked out of coding because I'm on pto this week

#

It's not as fun to do in spare time when you do it for a living lol

reef leaf
#

I kinda made a algorithm that removes every other pixel and replaces them with the normal of the surrounding pixels when rendering, but only every other pixel that wasn't removed needs to be stored

#

The results look pretty much the same except for small things line text and edges sometimes looking weird

#

Also made a regular square compression algorithm that saves as normal PNG and doesn't need any special algorithm, it's just a regular down scaled PNG

#

But if either the height or width is uneven it gets a bit wonky

#

Sometimes it's fine, other times not, IDK

untold badger
#

how tf do i write network code and not go insane

agile mango
#

you don't, you embrace insanity

#

what are you trying to do?

untold badger
untold badger
#

anyway it isnt that bad

agile mango
#

depending on the framework you use yeah it's not that bad

reef leaf
agile mango
#

I don't think there's anything that complicated, it's mostly a pretty straightforward web api

reef leaf
reef leaf
#

Idk where else to say this... but I finally got a GPU that fits my SFF office PC!

lament jasper
#

Does anyone know how to use Pulsar/
Atom? I can get both installed and running but I can't install packages on either

untold badger
agile mango
#

i haven't used atom since maybe 2016

#

every time i try a new text editor i just go back to sublime after a few weeks

#

well, other than using visual studio for unreal projects

lament jasper
#

atom officially had a sunset in 2022

lament jasper
lament jasper
lament jasper
agile mango
#

Huge wins, I'm really happy for them

#

Though the blizzard union only covers the world of Warcraft team

reef leaf
#

I just removed a broken dvd drive and put in a fan that blows air into the side wall of the case.

THE MECHANIC

tf2 theme plays

#

.
I really need some spacers

#

.
It's so damn jank and it works barely, it might be more the open hole than the wall loving fan that improves the cooling

reef leaf
#

I fixed up the fan, gave it a silencer and tilted it so it would be blowing in air instead

untold badger
reef leaf
untold badger
#

i already hate it here

reef leaf
untold badger
reef leaf
untold badger
reef leaf
untold badger
reef leaf
#

You can kinda compile python, but I'm unsure how good the tools are.

untold badger
untold badger
#

the engine is going to be like source, like youll be able to do stuff in the console etc :3

reef leaf
#

Ahhh, makes sense, good luck!

I can do my best to help if you get stuck, but it was a while since I used python. I may not always be helpful, but I want to help where I can, because making a game engine is pretty cool.

agile mango
#

there's no reason why scripting languages can't be compiled

reef leaf
#

.
You might be able to do that compiled, but I am yet to see a example.

untold badger
agile mango
#

yeah, using interpreted languages is usually done to speed up iteration, and (broad generalization) common interpreted languages are easier for non-programmer devs to learn c++, rust or c#

#

but, the two biggest engines out there use compiled scripting languages

#

unreal's blueprint is translated into c++ and then compiled

#

it's kind of crazy how optimized unreal's build process is tbh

untold badger
#

yippie my first segfault in this project

#

YES LETS FUCKING GO I FIXED IT

#

all my loved ones flashed before my eyes :3

untold badger
#

chat did i cook?

agile mango
#

I like cyan so yeah

reef leaf
#

No need for a fancy monitor, the wonderful 1x1 resolution

#

Looks great no matter the screen

untold badger
#

im actually tweaking rn

untold badger
#

geekdome i need you

#

i cant thimk of a name for a github org

reef leaf
untold badger
#

we do be silly today

reef leaf
reef leaf
#

To yield can also mean to let arguments or demands pass and do their thing

reef leaf
quick halo
reef leaf
lament jasper
#

ok so I definitely don't recommend installing pulsar unless you REALLY need it

#

it's a pain in the ass and you install visual studio on the way anyway

reef leaf
lament jasper
#

never even heard of Kate

#

I got pulsar and hydra to work right after complaining iamloling

lament jasper
untold badger
lament jasper
#

They put mice in a detached head state

untold badger
#

constructor function
look inside
another function which is only called here

untold badger
#

im gonna hire webbop to make a text editor using tauri >;3

reef leaf
untold badger
#

once again
why does this even exist? you can just make the members β€˜const’ instead of doing whatever this is

reef leaf
agile mango
#

c++ const is a little silly sometimes, but those functions are returning copies of the member variables. const in that context is saying that this method does not change any internal state of the object it's called on

#

which in turn allows them to be called in other const methods

#

you can do whatever you want with the copies those functions return, it has nothing to do with the constness of either the member variables or the returned copy

#

if you made the member variables const you would not be able to change them after construction

#

basically, they provide read-only access to the data

what's really silly is when people do that PLUS add public set functions for private data too. it only makes sense to do that if the set functions do extra work - like on a camera class, setting the fov might update an internal projection matrix or something

#

anyway, c++ is both beautiful and horrifying

#

with great power great responsibility or something

untold badger
reef leaf
reef leaf
agile mango
#

const means different things in a few different contexts

#

const std::string const* FindString(const std::string& key) const;

agile mango
#
  1. const std::string - a const string
  2. const* - a const pointer to the const string
  3. const std::string& - a const reference to a string as a parameter
  4. FindString() const; - FindString is a constant method, meaning there is a guarantee that the method will not mutate the object is being called on
#

and then there's constexpr which is a completely different concept....

reef leaf
#

Or at least share a similar name

agile mango
#

constexpr usually means this thing is known at compile time, but I rarely use it so I don't remember all of the different use cases for it. I have to look up a reference for it every time lol

reef leaf
agile mango
agile mango
reef leaf
reef leaf
untold badger
#

god i wish we would all just abandon c++ and move onto better langs

reef leaf
#

Just like you said

untold badger
balmy glacierBOT
#

@untold badger has leveled up! (15 ➜ 16)

untold badger
agile mango
#

then that's why

#

outside objects would not be able to access the variables at all

agile mango
untold badger
reef leaf
untold badger
#

🀀

reef leaf
agile mango
untold badger
agile mango
#

do you have the corresponding cpp file?

#

or is it a pre compiled library you're including

untold badger
agile mango
#

then you don't know what they're doing internally

reef leaf
# untold badger RUST

Nah JavaScript, your OS will just not work if you don't use 20+ yo first version Internet Explorer compatible code.

agile mango
reef leaf
#

The wonderful 1 core OS where Grammarly or something has full control

#

But I have actually used a service where they did exactly that

#

It was called sky or something

#

And it had special skyOS(I think it was that) apps, storage used localstorage

agile mango
untold badger
#

oop and its consequences on the industry standards has been a disaster on the programming race

agile mango
#

they could've also declared a friend class somewhere internally that can modify things

but also remember, const is only a suggestion in c++ πŸ˜‚πŸ˜‚πŸ˜­πŸ˜­

#

thou shalt never use const_cast

untold badger
#

WHAT THE FUCK IS CONST CAST

#

why is it that when i wake up there's another random feature added to c++ which has never appeared in any piece of code ever 😭

agile mango
#

blood magic

#

genuinely, you should never use const cast without a really really good reason

reef leaf
agile mango
#

having used c++ for over 15 years now, I have never seen a valid use of const_cast

#

BUT

#

you can make any const variable non-const

untold badger
untold badger
agile mango
#

const int i = 4; const_cast<int>(i) = 5;

untold badger
#

WHY WOULD ANYONE NEED THIS

agile mango
#

valid c++ that sets i to 5

untold badger
#

istg gnu just be adding anything 😭

agile mango
#

I am sure there have been valid reasons in very low level coding cases

#

I've done arcane things with void* before lol

reef leaf
agile mango
#

there are certain features and syntax in c++ where if you find yourself thinking about using them, you should take a step back and reevaluate everything

reef leaf
# agile mango valid c++ that sets i to 5

Is it bad to say that I would actually use something like that?

I often have a variable that really should be a const, but is a let because I sometimes, maybe, under certain conditions, need to change it.

untold badger
agile mango
#

the 0.1% of cases are exclusively when writing like drivers and weird low level stuff

reef leaf
untold badger
#

wym efficient? constants only exist for the compiler

agile mango
#

The only other reason I could see someone needing const_cast is when using a legacy external library that can't be modified and needs to be hacked in some way, but again that's an extremely specific thing that most people will never do

#

declaring things const opens up more optimizations for compilers, but it's not a guarantee that it will have a performance impact

#

and if you use const_cast you're throwing that out the window

reef leaf
agile mango
#

that sounds evil

#

threatening aura

untold badger
#

webbop you are even more unhinged than me and i thought that i was the *strange one*

reef leaf
#

They help me so much at times, but they hurt me trying to read them later.

untold badger
#

threatening aura fr

agile mango
#

readability >>>>> efficiency

untold badger
agile mango
#

If I got something like that in a code review I would be tempted to fire the person in the spot iamloling iamloling

reef leaf
agile mango
#

If you want to make a living programming, you should keep your hobby projects at least close to a professional standard

reef leaf
agile mango
#

ok ok let me rephrase

#

you should keep your hobby projects at a higher standard than professionals iamloling

reef leaf
#

And have such charming class names as "aGhuJn5787Ghj"

agile mango
#

I will say, my team at work does keep a very high code standard, nearly every submission is reviewed by at least one other

untold badger
reef leaf
agile mango
#

Game developers tend to be really good at naming stuff

#

Too good actually

#

Not uncommon to name a class six or seven words if that's necessary to explain what it does lol

reef leaf
agile mango
#

And not in the "ThingManagerFactoryManagerInterface" kind of way

untold badger
#

oop fans be like: god i love my AbstractSingletonFactoryGeneratorImplementsIterationPixelCreator
fp fans be like: god i love my <..>(0) -> 10 => 20 <=> (7..8)(run_function) -> Ξ»x.(x + 10)
whatever, this shit works fans are safe from my roasting

reef leaf
#

I know what you're thinking, I can't go to hell, Satan didn't want me to corrupt him with my evil habits.

#

He uses exclusively for-loops and newarray.append for array modification, he's not much better.

untold badger
#

Earth Updates All JavaScript framework developers have been banned from heaven

reef leaf
reef leaf
untold badger
reef leaf
#

You got a point, it is a JS framework

untold badger
#

we need to get rid of c++ everywhere and start a new era of programming without bad standards πŸ™

agile mango
#

lol

#

as long as JavaScript exists horrible code will be rampant

untold badger
#

we'll rewrite it but only as typescript which uses snake_case

#

bwahahahahaa

reef leaf
#

And like 50% of all JS functions are deprecated

#

Maybe even more

untold badger
reef leaf
untold badger
#

daaamn, gleam is really nice tho

agile mango
#

psh

untold badger
#

bshoo

agile mango
#

you need to get out of the JavaScript brainrot

untold badger
#

remember when apple created another config language, which can compile to yml/toml/json, but it also has a type system for some reason??? i still don't know which issue they tried to solve there

agile mango
#

I can see that being useful actually

untold badger
#

let her cook

reef leaf
untold badger
agile mango
#

Having made an engine where everything is super data driven via config files, it was always annoying having to manually check why things would break

reef leaf
agile mango
#

would be nice to have a way to validate before that

untold badger
reef leaf
untold badger
#

0xb800

#

or smth if im not mistaken

#

i was trying to develop an os once

#

never touching c++ after that

reef leaf
#

I don't even remember myself, I just remember my Assembly code never working.

untold badger
#

arm64 > x86 assembly

reef leaf
#

I could successfully print a "P" without stealing code, that was my goddamn peak!

#

No more than that tho

reef leaf
untold badger
#

osdev wiki is amazing tho

reef leaf
#

Yes, it was thanks to them I got literally anywhere, and people were arguing that you didn't even need this Assembly bootloader and could start with C

#

I should have copied that damn 5 line bootloader script

untold badger
#

we need to combine our powers and create the SillyOS

#

it will randomly delete data on your hard drive (it forgor :( ), and replace them with kitty images

reef leaf
reef leaf
#

Ram memory maxes out at 4 gb, my short-term memory is shorter than that

#

RAM data will randomly be removed for no reason also, because you forget like that

untold badger
#

wtf mine maxes out at 128kb

reef leaf
reef leaf
untold badger
#

i use extreme compression algorithms

reef leaf
#

So you have extremely washed out cats?

reef leaf
#

Dementia cats

untold badger
#

the voices are telling me to start building communism & my game engine again

#

baiii

reef leaf
#

Well good luck, make your game engine communist to do both, everything made with it has to be open source and available for the people

agile mango
#

copyleft is the future

reef leaf
# agile mango copyleft is the future

Finally people will realise "I refuse to show you what this program does. But trust me, it's totally safe, I am keeping it a secret what we are doing on your computer for your safety." doesn't hold up.

agile mango
#

unfortunately in the context of multiplayer games, obfuscation is actually an important part to slowing down the development of cheats

reef leaf
#

Why not have the server handle it?

agile mango
#

not all cheats can live on the server + not all games can or should use dedicated servers

reef leaf
#

Movement being completely handled in the server that also checks if they can move in that way, how would you movements cheat that?

agile mango
#

you may not be able to cheat that, but aimbots just simulate human input for example

#

the most you can do is have a validation heuristic to try and detect unnatural movement, but that's not perfect and a sophisticated aimbot will be tuned against it

#

rendering related cheats are another thing, if the game knows where an enemy is even if they're behind a wall, a cheater could find some way to display it

reef leaf
#

And humans are illogical creatures that can understand that

#

The more you shoot and don't move, the more tired your arms get and your aim gets offset it a way that a bot wouldn't understand since they use the middle crosshair or other fixed spot

#

And bots tend to shoot and not look away that much

agile mango
#

I'm not talking about bots, I'm talking more about someone playing with a program that basically acts like aim assist by calculating the exact mouse inputs needed to target something

reef leaf
#

But please, tell me your thoughts @agile mango, outside input is always good

agile mango
#

It's still mostly a player in control, just with a tool that gives them near perfect aim and reaction times

#

And if a bot maker is motivated enough, they can design it to have whatever behaviors they need to avoid detection

reef leaf
#

Well, human hands shake, the program is used to keep it really steady and not shaking

#

And arms too

agile mango
#

which brings me back to obfuscation - that doesnt prevent cheats from happening in the long term, but it can stop a game from being completely broken by hackers within the first few months of the game releasing (as in the time period where games make more than half of all the money it'll ever make usually)

#

you can make the aimbot simulate unsteady hands, or to give a maximum adjustment per frame. even if it takes a few frames to finish aiming at an enemy, it's still gonna be faster than a human almost every time

#

i gotta sleep now though

#

gn

reef leaf
#

They can at least use some decent anti-cheat that doesn't brag about how many "cheaters" it has caught, that means it most likely has a bunch of false positives.

balmy glacierBOT
#

@reef leaf has leveled up! (9 ➜ 10)

reef leaf
reef leaf
#

I don't like multiplayer that much, it's mostly try-hards that make it not fun, as well as slow servers and stupid anti-cheat.

#

I like Super Animal Royale because it's pretty balanced, most try-hards can be killed with counter-weapons.

lament jasper
reef leaf
#

I have been thinking about what you would call a initiative based on making apps touch accessible or at least have a touch version, that way converting them into mobile versions is easy or just works.

Like, Linux Fedora Workstation 40 has so much interaction that you can do with the mouse/touch so you almost don't need a keyboard at all. Just a few modifications and you can make that a phone OS, and thus run stuff like Steam on it, because there are a bunch of mobile-intended apps on the Gnome store, it shows that people want and some are already using a pure Linux(No modified kernel that make things not work) mobile OS.

I came up with R.A.T (Reactive Accessible Touch), a play on the mouse too.

Reactive means also considering things like gestures. I want these desktop apps on my phone, because phone apps generally suck.

reef leaf
#

My computer is godless

untold badger
#

geekdome is dying 😭

untold badger
#

@quartz bay yo you’ll probably like it here :3

quartz bay
#

I was just scrolling through like "oh wow, this is just my niche," lmao

#

We're not beating the software developers have word music taste allegations, lmao

#

I guess I'll do a little intro in here too! My name is Faye, and I'm wrapping up my Computer Engineering bachelors at UT Arlington this year. I've had a job as a VR software developer using Unity for the past few years. Would love to talk about any VR stuff yall have worked on!

untold badger
quartz bay
#

I'm probably gonna lurk around here and respond to stuff sometimes

untold badger
quartz bay
untold badger
#

im a rust fan because functional programming is too fun
also having snake_case is a cherry on top

quartz bay
#

I've been wanting to learn rust!

balmy glacierBOT
#

@quartz bay has leveled up! (0 ➜ 1)

quartz bay
#

Didn't the white house put out a thing recently telling people to use rust instead of C?

untold badger
agile mango
#

went to smu unfortunately

#

conpsci undergrad -> professional cert of interactive technology programming from guildhall

quartz bay
quartz bay
#

If it wasn't 45k a year after scholarship I probably would have, lmao

#

UTA is cheap

agile mango
#

yeah that's why I regret it lmao

quartz bay
#

The campus is beautiful though

agile mango
#

$125k in debt .. with half of my undergrad paid by scholarship....

quartz bay
#

Dang 😭

agile mango
#

yeah LMAO

quartz bay
#

Private schools have crazy tuition

agile mango
#

but it's chill I got the """"dream job""""" and live comfortably

quartz bay
#

I think they do it to try and keep out people who don't have daddy's money

agile mango
#

for sure, being on scholarship and wanting to go into gamedev made me an outsider

quartz bay
quartz bay
agile mango
#

legit had my academic advisor try to convince me to not go into gamedev every appointment I had with him

quartz bay
#

A childhood friend of mine almost went for classical upright bass

agile mango
#

I think the music school is pretty alright tbh

quartz bay
#

That's what I've heard!

agile mango
#

engineering sucks there bc they just want you to be a servant to the business school students

quartz bay
#

She ended up going to UNT so it worked out. But she chose not to go to SMU for money reasons too

agile mango
#

"hey build this app for me, I'll pay you $5k with no ownership in the startup"

#

UNT is better for music anyway

quartz bay
agile mango
#

half the students in compsci classes in smu are business students who heard that knowing programming will make them better at running startups

quartz bay
#

Honestly they're not wrong, having a boss with zero knowledge of programming is the worst

#

But maybe a boss that knows just enough to think they know what they're talking about is worse, actually

#

I do research at UTA and my boss is in industrial engineering, so sometimes she asks for something she thinks is a small change but it actually means I have to refactor everything

reef leaf
untold badger
#

yippie i can write web ui in rust :3

untold badger
#

i just found out that the youtube api allows to upload videos

#

what if i just make an automated python bot which scrapes popular subreddits for stories, downloads satisfying videos and then puts together shorts and automatically posts them

reef leaf
#

I wanted to make a silly website that gives you a random dankpods video but YouTube said no.

untold badger
reef leaf
untold badger
#

100 free calls/min doesnt sound so bad

reef leaf
# untold badger ehhh

But you have to go into your account, make a special key, and that limit I believe is different, because a unit is not one request.

untold badger
reef leaf
#

But if it's just uploading, then you can maybe see, I am not sure if it varies depending on file size or something.

untold badger
#

welp, time to abandon all morals and fill youtube with even more slop πŸ˜‹

untold badger
reef leaf
untold badger
untold badger
#

few tweaks and the video generator will work

reef leaf
#

That's kinda it, if you want it

#

I'm actively using it myself btw, really useful to make sure it doesn't get hot, I keep it on 300 seconds to minimise the CPU impact.

untold badger
#

dead ass channel lmao

reef leaf
#

A

#

It didn't show up in the search, phew

agile mango
#

in a call with coworkers

one of them looks visibly annoyed

my lead goes: "hey Brenden, you good?"

brenden: "fucking JavaScript"

#

the rest of us nod solemnly

quick halo
#

javascript mamamia

lament jasper
#

Fucking Javascript indeed

untold badger
reef leaf
#

(Dw, it's nothing)

reef leaf
#

.
Welcome to hell (being a web dev)

lament jasper
#

Hello hello

#

I am in the sippy cup of trying to find affordable home ownership and I am being sipped dry

#

I also haven't actually done my job in weeks so I'm extremely rusty lol

agile mango
uneven onyx
#

well, there are accidentally lots of cicadas now i guess-

#

this one specifically iamloling

untold badger
#

damn i forgot about the existence of this lmao

agile mango
#

same lol

agile mango
agile mango
untold badger
#

my dumbass once ran "find . .DS_Store -delete" to get rid of all directory configs and it deleted all of the code in the directory i was in

#

if not for git i wouldve lost like 3 days of progress

#

and like looking back at old-er projects (like less or man) you can see that most of the source code is like in the root directory of the project

agile mango
untold badger
agile mango
#

it's actually evil

untold badger
#

i think tho this might be different in different browser engines

agile mango
#

EVEN WORSE

#

JavaScript is the devil incarnate

untold badger
#

using new Date(0) in the dingle dongle browser engine will remove your root directory and crash your entire os

untold badger
#

it provides exceptions to make it so invalid state is unrepresentable yet at the same time it doesnt use them when you create invalid Date objects for example

reef leaf
untold badger
#

β€œI use Linux as my operating system,” I state proudly to the unkempt, bearded man. He swivels around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme precision. β€œActually”, he says with a grin, "Linux is just the kernel. You use GNU+Linux!’ I don’t miss a beat and reply with a smirk, β€œI use Alpine, a distro that doesn’t include the GNU coreutils, or any other GNU code. It’s Linux, but it’s not GNU+Linux.” The smile quickly drops from the man’s face. His body begins convulsing and he foams at the mouth and drops to the floor with a sickly thud. As he writhes around he screams β€œI-IT WAS COMPILED WITH GCC! THAT MEANS IT’S STILL GNU!” Coolly, I reply β€œIf windows was compiled with gcc, would that make it GNU?” I interrupt his response with β€œ-and work is being made on the kernel to make it more compiler-agnostic. Even you were correct, you wont be for long.” With a sickly wheeze, the last of the man’s life is ejected from his body. He lies on the floor, cold and limp. I’ve womansplained him to death.

quick halo
#

peam

#

one of the better copypastas imo

untold badger
quick halo
#

intentionally or incidentally?

untold badger
quick halo
#

i see

reef leaf
untold badger
reef leaf
quick halo
#

the tech.lgbt enjoyers are numerous

untold badger
#

now that i think about it i should migrate from tech.lgbt, ive recently found out that the head admin has been doing some nasty stuff which has resulted in tech.lgbt getting defederated from a lot of other servers

quick halo
#

weh

#

ive also been meaning to but for nonspecific purposes

#

that sucks tho

#

another reason i suppose

untold badger
#

lowk i wanna try hosting my own mastodon instance but i just need a tsl certificate now

untold badger
#

i got the certificate and it now works

#

you know what that means?

#

mastodon time

quick halo
#

exciting

#

hosting my own mastodon instance is somewhere on the 'list' of things i want to do at some point maybe soon, but its kinda low priority because id prefer to try and get my shit together and just put stuff on my website

#

(which is NOT happening anytime soon i dont think)

untold badger
#

😭

reef leaf
untold badger
untold badger
#

bro just end me i have no idea how to fix this

charred berry
#

okay im not really into programming/pc stuff
my laptop has 475GB of storage in total and 4.18GB are free
is a 512GB memory stick worth the money to store all my music stuff on it? my music prod stuff is most likely taking up most of my storage

reef leaf
charred berry
#

the DAWs will be on my actual laptop storage the demos will be on the stick

untold badger
quick halo
#

oh cool yes please

untold badger
#

ive been up for 18 hours now good lord

quick halo
quick halo
untold badger
#

and its 00:42 for me rn

quick halo
#

whats that like moscow etc timezone

#

im 7 hours ahead

untold badger
quick halo
#

i see

frozen edge
#

me when i realize there's geekdome cacopog

#

i'm messing around with yt-dlp rn
gonna try and set up a nice bash alias for downloading videos
already got this one setup for mp3s but i wanna make my video archiving efforts a bit easier as well

#
# first parameter: a video / playlist link (several possible, space-separated)
# second parameter: output folder (optional)
# example: youtubemp3 https://youtu.be/nhbGVa0Y60w /home/milo/Music
youtubemp3() {
    if [ $# -eq 1 ]; then
        downloadfolder="/home/milo/Downloads"
    else
        downloadfolder="$2"
    fi
    yt-dlp --paths "$downloadfolder" --output "%(title)s.%(ext)s" --extract-audio --audio-format mp3 "$1"}
frozen edge
#

ok, figured it out for now i think.
these are the underlying yt-dlp commands:

# mp3
yt-dlp --paths "DOWNLOADFOLDER" --embed-metadata --output "%(title)s.%(ext)s"  --extract-audio --audio-format mp3 "INSERTYOUTUBELINK"

# mp4
yt-dlp --paths "DOWNLOADFOLDER" --embed-metadata --embed-subs --sub-format srt --sub-langs all,-live_chat --format "bv*[height<=MAXVIDEOHEIGHT][vcodec~='^((he|a)vc|h26[45])']+ba/b[height<=MAXVIDEOHEIGHT]" --output "%(title)s.%(ext)s" "INSERTYOUTUBELINK"
#

and these are the corresponding bash aliases:

# 1st parameter: a video / playlist link
# 2nd: output folder (optional, default: userhomefolder/Downloads)
# example: youtubemp3 https://youtu.be/nhbGVa0Y60w /home/milo/Music
youtubemp3() {
    if [ -z "$1" ]; then
        echo "No YouTube link given!"
        return
    fi  
    if [ $# -eq 1 ]; then
        downloadfolder="~/Downloads"
    else
        downloadfolder="$2"
    fi
    yt-dlp --paths "$downloadfolder" --embed-metadata --extract-audio --audio-format mp3 --output "%(title)s.%(ext)s" "$1"
}

# 1st parameter: a video / playlist link
# 2nd parameter: maximum video height (optional, default: 720)
# 3rd parameter: output folder (optional, default: userhomefolder/Downloads)
# example: youtubemp4 https://youtu.be/nhbGVa0Y60w 1080 /home/milo/Music
youtubemp4() {
   if [ -z "$1" ]; then
        echo "No YouTube link given!"
        return
   fi
   if [ $# -eq 1 ]; then
        videoheight="720"
        downloadfolder="~/Downloads"
   elif [ $# -eq 2 ]; then
        videoheight="$2"
        downloadfolder="~/Downloads"
   elif [ $# -eq 3 ]; then
        videoheight="$2"
        downloadfolder"$3"
   fi
   yt-dlp --paths "$downloadfolder" --embed-metadata --embed-subs --sub-format srt --sub-langs all,-live_chat --format "bv*[height<=$videoheight][vcodec~='^((he|a)vc|h26[45])']+ba/b[height<=$videoheight]" --output "%(title)s.%(ext)s" "$1"
}
#

shit that's a huge block of stuff,, apologies if that's kind of spammy!! let me know if i gotta shorten anything or smth

reef leaf
quick halo
#

i love sigbovik

#

pure peam

shrewd orbit
#

Guys I nedx

#

Help meo

#

I have homwrork

#

Does anybody jnow C++ so I can steal your brain πŸ₯Ή

quick halo
#

not especially well, and i am outside but depending on your query i could help

shrewd orbit
#

I'm making a MUD for one of my assignments and I'm stuck trying to figure out why it's not printing items in the correct order

untold badger
shrewd orbit
#

Like a videogame

untold badger
shrewd orbit
#

Wdym??

untold badger
shrewd orbit
#

I don't think so? I'm not sure what a thread is so probably not

untold badger
#

basically your computer has these things called threads, they are responsible for actually running cpu instructions and they work independently of each other HOWEVER they can share data
this leads to some situations where they try to write to the same place which results in some silly errors, for example i had this bug where i was using std::cout from multiple threads to print debug info but it just kind of corrupted the output

untold badger
untold badger
shrewd orbit
reef leaf
#

(It's C++, not your code)

shrewd orbit
#

I hate you C++

untold badger
# shrewd orbit

the only way this wouldnt output the items in the correct order is if the shop->next pointers arent ordered properly

untold badger
# shrewd orbit

also some notes

  1. id recommend using a vector instead of a linked list, so youd have a vector<ShopItem> and that would mean less work with raw pointers
  2. if a function returns a boolean you dont have to compare it with true, so remove the == true in the comparets line
  3. in shop::enter you use scanf on a char buffer, the thing is that your scanf has no constraints so if a user enters than 5 characters its undefined behaviour, consider using std::string w std::cin or make it scanf("%5s")
    generally just use c++ apis instead of c ones to make the program safer
untold badger
# shrewd orbit Wdym??

so since there is a shop->next i assume its a linked list, in this code youre iterating over this list until you hit nullptr, so if it outputs items in the wrong order then it meand the list youre giving it is ordered in the wrong way

agile mango
#

ive been professionally doing c++ for like 6 years now

shrewd orbit
#

I gotta go to work but I'll let y'all know when I'm working on it again

#

Basically I'm having trouble passing the tests for this assignment for whatever reason, it seems to be working fine (I think)

shrewd orbit
#

Okay so

#

Right now I'm failing one test, essentially the program is printing the wrong information when I do n after p

agile mango
#

so walk me through what is supposed to happen when you use n

shrewd orbit
#

I have a file with all of these items in it, when you type n it's supposed to display the next 10 in the list

#

Including the search term in the name if applicable

#

I think there's an issue with my pointer assignment

agile mango
#

what is listItems() supposed to do? specifically, what does it do to your parameters, and what does it return?

shrewd orbit
#

It reterns a shopItem and it lists the 10 items

agile mango
#

which shopItem?

agile mango
#

i ask for a reason

shrewd orbit
#

Sorry I was eating

agile mango
shrewd orbit
#

I'm trying to get the program to go forwards and then backwards once and then forwards again, but when I try to go forwards that last time it prints the wrong menu

agile mango
#

what is searchTerm set to? why do you need to check against it when iterating backwards?

shrewd orbit
#

Wdym check against it ??

agile mango
shrewd orbit
#

The count only increments if the item name has the search term in it, so even though it iterates through all of the in-between items, it only matters if the search key is included

shrewd orbit
agile mango
#

search term is set to an empty string at the beginning of that function and doesn't seem to be set anywhere? unless im missing something

shrewd orbit
#

That's what I have it initialized to at the beginning, so if the user doesn't want to search for anything the code still works

agile mango
#

ok. my first guess here is when you're building your linked list, you're setting prev incorrectly somewhere

#

unless the incorrect behavior is that its off by one

shrewd orbit
#

I HAVE ANOTHER PROBELM

shrewd orbit
#

Hey Sol,

agile mango
shrewd orbit
#

I

#

m dying

shrewd orbit
#

Oh I was gonna ask if you can help me with my homework again idk

untold badger
#

im writing my own programming language rn and ive decided to use an arena allocator

#

made my own one and it randomly stops working sometimes and causes a segfault

reef leaf
#

So many new FOSS projects are suddenly using Rust now, so there is interest :3

untold badger
#

a guy in my class has "coded" up a simulation of space and is saying that it is better than nasa’s simulation, the code is 124k loc and is split between like 4 files

untold badger
#

at the infosec class rn im genuinely going insane one of the ppl here is talking about how an sql db is no better than a python dict

reef leaf
untold badger
agile mango
#

people just be saying shit