Details
-
AboutHi! My name is Gaetano, I'm a novice programmer, and I'm still a student. I also do music and stuff... Please check me out on SoundCloud (link below) or YouTube, if you want to (^◡^) See ya somewhere! 💙🎶💻
-
SkillsI know: C#, HTML/CSS, JavaScript, PHP, SQL, Csound. Currently learning: C++.
-
LocationItaly
-
Website
-
Github
Joined devRant on 6/6/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
the nurse just called to say that my moms heart surgery is done and it went well. shes now sleeping under heavy narcotics and anesthesia in the shock room. thank you GOD and Doctors 🙏🙏🙏❤️❤️❤️5
-
tomorrow, my mom has heart surgery. thats one of the most serious surgeries to exist. i hope and pray the advancement of medicine and technology has improved well enough for the results to be ok 🙏6
-
my mom is still in hospital but in extreme pain. she keeps crying and vomitting from pain. heart surgery is a serious fcking surgery not smth to joke ab5
-
Somebody claimed to be an "ex-McDonalds chef". This is right up there with "prompt engineer". Buahahahahahahaha!!!
I guess I should put on my resume: "Hardee's Chef - 2 years" hahahahahaha!!!14 -
Share your desk!
This is 80% of time my desk, besides this kitchen (also living room) table.
I can sit here for eight hours straight without standing up. No, I don't have any back issues or smth.
I wonder how your workplace looks like47 -
I am now a free man.
I got exempt from the military service by fattening myself up, I've never been happier for failing an exam (the medical exam) 😊
Now comes the time for extreme dieting and finding a job abroad to gtfo outta third world9 -
- clicks update and shutdown
- goes brush his teeth
- comes back, is welcomed by login screen
Man I love Windows6 -
The handle on the faucet in one of the bathrooms broke off today. You can still operate the faucet with some finger strength. It is just difficult. We also got a reminder today that we are not to be streaming video or music using the company wifi. They ask that we use our own bandwidth on our phones.
So on the bathroom door where the faucet handle is broken I placed this sign:10 -
Getting into a bed with fresh sheets after a long shower is heaven
Not many things would get me out of bed rn9 -
I did it, I found the fountain of youth. It is the cat fountain in my living room. Tragically, it was discovered by my daughter.
When she grabbed onto it, I tried to pry her off. But I was too late, she was nothing but a baby when I succeeded.
My wife likes to claim she was a baby before grabbing onto it, but what the fuck does she know.2 -
I hate mobile dev. I am doing iOS amd Flutter for 12 years. I want to do Rust stuff, blockchain and so on.
I need some mentor even though I have read two books. Should I find one or rely on ChatGPT?
Any Rust devs here? What is it like?19 -
Spent the weekend to configure my pc to be able to build Love2D to Android. Had problems with NDK, but it turns out that I need to install an old version of it (release 9 to be exact). Productive weekend ftw!
-
The Love2D documentation is so lovely to read, this has been my favourite experience learning a language.1
-
Lua users, have you used moonscript?
It's a little language that has it's own interpreter or can be compiled down to Lua and it's absolutely lovely (currently using it with Love2d).
Of course, as with most things, what I love about it also royally pisses me off sometimes.
For starters local has to be declared for variables, unlike lua.
Otherwise the variable goes to _
Also note, that some tutorials literally tell you the opposite.
all variables are local by default
unless you don't declare them
then they go to _ (throwaway)
Some tutorials get this wrong too.
all variables have to be declared local
except tables. failure to declare a table WITHOUT a local will cause things like
table.insert to fail with "nil" values for no god damn reason.
No tutorial I could find mentioned this.
Did you know we call methods with '\'?
By the way, we call methods with '\'.
Why? Who the fuck knows.
Does make writing web routes more natural though.
Variables in the parameters of new are declared and bound for you. Would have loved to know this before hand instead of trying
to bind to them like a fucking idiot.
Fat arrows are used to pass in self for methods.
Unless you're calling a method. Then you use backwards slash. This fact is unhelpful when you're a beginner and dealing with the differences between the *other* arrow, the backslash, the fat arrow, and the fact that functions can be called with or WITHOUT parenthesis.
And on that note..
While learning all this other shit, don't forget parenthesis are optional!
Except when they're not!
..Like when you have a function call among your arguments and have to disambiguate which args belong to the outer call and to the inner call! Why not just be fucking consistent?
But on the plus size, ":" is now used for what it should have been used for in the fucking beginning: binding values to keys.
And on the downside, it's in a language thats built on top of another language that uses it for fucking *method calls*, a completely
different fucking usage.
And better still, to add to that brainfuckery thats lost in the mental translational noise like static on a fucking dialup modem, you define methods with the fat arrow. Wait, was that the single arrow or fat one? Yeah the fat one. Fuck. But not before you do THIS shit..
someShit: =>
yeah, you STILL include the god damn colon just so when you're coming from lua you can do a mental double take. "Why am I passing self twice? Oh right, because fuck me, I decided to use moonscript." It's consistent on that front but it also pisses me off.
A lot of these are actually quality of life improvements disguised as gotchas, but when you're two beers in to a 30 minute headscratcher it sure doesn't fucking feel like it.
Nevertheless, once I moved beyond the gotchas, it was like night and day. Sure moonscripts takes a giant steaming dump all over the lua output, like a schizophrenic alcoholic athena from the head of zeus, but god damn, when it works it just WORKS.
Locals that act like locals? Check.
Sane OOP? Check.
Classes, constructors, easy access to class methods, iterators? Check, check, check, check, check.
I fucking hate ceremony. Configuration over convention is for cunts. And moonscript goes a long ways toward making lua less cunty.
If you've ever felt this way while using lua, please, give moonscript a try.
You'll regret it, but in a good way!6 -
My God is map development insane. I had no idea.
For starters did you know there are a hundred different satellite map providers?
Just kidding, it's more than that.
Second there appears to be tens of thousands of people whos *entire* job is either analyzing map data, or making maps.
Hell this must be some people's whole *existence*. I am humbled.
I just got done grabbing basic land cover data for a neoscav style game spanning the u.s., when I came across the MRLC land cover data set.
One file was 17GB in size.
Worked out to 1px = 30 meters in their data set. I just need it at a one mile resolution, so I need it in 54px chunks, which I'll have to average, or find medians on, or do some sort of reduction.
Ecoregions.appspot.com actually has a pretty good data set but that's still manual. I ran it through gale and theres actually imperceptible thin line borders that share a separate *shade* of their region colors with the region itself, so I ran it through a mosaic effect, to remove the vast bulk of extraneous border colors, but I'll still have to hand remove the oceans if I go with image sources.
It's not that I havent done things involved like that before, naturally I'm insane. It's just involved.
The reason for editing out the oceans is because the oceans contain a metric boatload of shades of blue.
If I'm converting pixels to tiles, I have to break it down to one color per tile.
With the oceans, the boundary between the ocean and shore (not to mention depth information on the continental shelf) ends up sharing colors when I do a palette reduction, so that's a no-go. Of course I could build the palette bu hand, from sampling the map, and then just measure the distance of each sampled rgb color to that of every color in the palette, to see what color it primarily belongs to, but as it stands ecoregions coloring of the regions has some of them *really close* in rgb value as it is.
Now what I also could do is write a script to parse the shape files, construct polygons in sdl or love2d, and save it to a surface with simplified colors, and output that to bmp.
It's perfectly doable, but technically I'm on savings and supposed to be calling companies right now to see if I can get hired instead of being a bum :P19 -
No-meds is a real privilege. Let me explain.
There are people who have to take a shit ton of medicines/pills to 'just' function normally.
Then there's people like me who don't need any of them, barely fall sick in a year and can ocassionally smoke weed just for enjoying life.
It's the only privilege I can get behind the idea of.4 -
The state of operating systems in 2024.
Windows - has a user interface that changes with every update so Microsoft can push ads even though it costs $200
Mac - an unusable interface designed solely for consuming media anchored to hardware that costs 4x what it should
Linux - absolute freedom to do everything you want so long as you don't want to play games, connect to Wifi, or listen to audio
I'm just going to go be a beet farmer in the 1600s61 -
Pick one:
Live out your school life again as a 10-year old with the same level of knowledge you have now.
Or,
Be 65 years old with $10 million in the bank.42