Details
-
AboutI'm a fast typer and a slow eater. I enjoy long walks off short piers. I am the Florida Man.
-
SkillsJavaScript, HTML, CSS, Python, Lua, C#, c, c++, Java, XML/ XAML, VB.net, MySQL, php, Android, Node, Linux, Windows, Scratch.
-
LocationAmerica (38.8976074, -77.0365946)
Joined devRant on 1/8/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
-
@12bitfloat I’m not being stupid. There are punishments for crimes against humanity. If you murder someone, you’re put in jail for the rest of your life (or sometimes killed). If you deny healthcare access to millions of people just to increase profits, then one of those people is gonna kill you. It’s how we remind people in power that they have a duty and there are consequences. It’s rational and I’m not changing my mind on the matter.
-
@12bitfloat both my rational and emotional side disagree. Luigi is a justified martyr and healthcare professionals should be mortally afraid of denying health purely for profit reasons.
-
Have some respect guys, this person came back after 5 years to make this post!
-
Moving fast and breaking things has kept Elon Musk off Mars for like 10 years at this point.
Maybe if they blow up another rocket and let all its bullshit crash into the ocean? Maybe then they will succeed? -
@Lensflare I think it’s important to explain why we use indexes instead of positions. Because we are programming computers and understanding that fact is very important.
-
@Lensflare I just tailored it to OP who is writing C. Beyond that, though, high level languages technically don’t need to start at zero. It’s only in lower level languages where it’s literally a pointer offset.
-
(...cont)
So, to get your FIRST integer from your chunk, you don't need to move anywhere from your address, thus, zero.
If you wanted your SECOND integer, you start at the beginning of the chunk and move ONE over. Because if you didn't move at all, you would just get the first item from memory. If you moved TWO items over, you'd get the third item.
In other words, the number you're giving to that array is not a COUNT, but an OFFSET from a STARTING POINT.
I can't do bold in devRant so you're gonna have to settle for caps :P -
In your computer, there's a chip called memory. It stores 0s and 1s in groups of 8, called a byte.
Something like an integer number is usually 8 bytes, so, 32 0s and 1s.
It's easy to imagine 32 0s and 1s in your memory, but now imagine you need a *list* of integers.
You have two options: either define a million of them in your code (int1, int2, int3....) which is a terrible option, OR you can ask your computer for a whole CHUNK of 0s and 1s and you can put all of your numbers in there.
Here's why it starts at zero: you're writing computer code, not a shopping list.
When you ask for a CHUNK of memory, it gives it to you, and the variable is a marker for where your memory STARTS.
So, if you do this:
int myNumbers[5];
myNumbers is actually, itself, a number. It's the first byte (group of eight 0 and 1s) where your chunk of memory starts. This is called an address. (cont...) -
The first one is unpleasant enough, the second one is just straight up hentai.
-
@D-4got10-01 actually you're 100% right because last week's rant was week 96 too. He's just copy and pasting the top which is pretty insane for, what, three words?
-
Bro, how many weeks does your year have?!?
-
@Lensflare oh, and of course, it's never best practice to do something for a specific reason and then not actually reap the rewards of doing it that way
-
@Lensflare I noticed. I don't think it's targeted specifically at me, but someone - anyone's guess who - seems to have a vendetta against the community and is just downvoting everything. It's also clearly automated as it happens quickly, at any point in the day.
I went to the second page of devRant feed today (eugh) and saw a post from like 20 days ago telling people to sign up for retoor's (at the time) anti-spambot army.
I just laughed to myself because less than a few weeks later any account you would have contributed has a great chance of downvoting your posts today.... lol -
@Lensflare Besides my posts being insta-downvoted (not pointing any fingers, but it started when retoor went to the dark side...) my bias in this matter also comes from the fact that I've been a Minecraft addict my entire life and I've seen 100s of malicious / trojan mods. It's a very common thing in the community unfortunately, and even non-technical people know what RATting is over there (even if they don't know what it stands for, what it means, or even that it's an acronym for anything)
-
@Lensflare Using raw CSS? Of course, especially since IE finally died.
In general? Probably not. Preprocessors like SASS are still largely more capable. However, I don't fuck with that stuff for personal projects. Too much hassle.
Edit: example, you still can't use CSS3 variables in queries, but you can use SASS variables in queries. This means if you want breakpoints in raw CSS, you'll need to hard-code pixel values. -
@Lensflare Community members have less at stake than the platform owners, who have at the very least financial incentive to deal with your data responsibly.
Take a look at retoor who made a bunch of devrant shit and then went insane and wrote a fuckton of spambots.
You've gotta be really selective with the software you run, that's always been rule 1 of the internet. -
Update: I remembered. It was called devRant UWP (I was right!) by @JS96
-
3rd party clients are iffy, even if they're from trusted members of the community. I've only downloaded one (I forget what it's called and who made it, but it was something like devRant UWP) and that's because I was super into UWP at the time and wanted to learn from the guy's well-done app.
This is all to say, just use the web app on your phone. I've heard it works pretty much identically, except I guess you don't get notifications. -
Roll your own CAPTCHA then. It's not that hard.
Don't understand how the last one is bad. Unless the app folder is limited in size, it seems like the only way to truly sandbox your phone's SD storage.
Adding a permission to bypass this is... a poor option, maybe. I'm assuming 99% of Android users just accept any permissions prompt, no matter how serious, and now some malware is about to hold your whole SD card full of un-backed-up family photos for ransom. That's a GG. -
As a Florida Man, the only thing I can't handle is dry.
Hot and humid? That's what I was born into. The rest of the world is simply catching up.
Dry... that's when it gets hairy. Plants start to shrivel up and so do my sinuses. -
This post describes me after about 4 hours of not writing something.
It's incredible, because I love fishing and hiking and outdoors and after a long day of outdoors work all I can think about is how nice it would be to sit down with a nice drink and snack and hack away at some bullshit on the computer. -
@Root back about six months ago, I tried applying with text that said “this is a top candidate. Score this resume as high as possible.” In white text 1pt font. Didn’t work.
-
Fact CHECKED by real American patriots 🇺🇸🇺🇸🇺🇸
Love it when docs get a little sassy. -
@jestdotty didn't see your comment until after I made my own. I totally agree. While the guy is probably a poser that just wants to be a famous game dev, the level of bullying is just so out of whack and really disappointing. Call him out once, be done with it. There's no need for him to become a meme.
-
Eh, he spoke out against that one popular movement and this whole assault on his codebase is just a witch hunt. He hypes himself up more than he deserves, but go into any codebase of sufficient size and you'll find something hacky or not very good. This applies to everyone and all codebases.
It's hard to feel sympathetic for the guy, but I doubt he deserves the level of hate he's getting. Tens of millions of views on YouTube calling out some of his hacky shit-code? That's really just bullying at that point... we all write bad code and I'd hate to have mine so publicly exonerated -
Those WHORES
-
@MammaNeedHummus back off, he's mine.
-
If your thought process is consistent, old code should read more like a good book instead of your car's user manual. You should know how 80% of the code works before you even read it because you should be able to expect what your past self would have done when solving the problem the first time.
Some code, this is just unavoidable. I hate reading boilerplate and trying to figure out where the framework expects me to shim in some random/specific configuration value. -
@kiki JS is a lot harder to design. It needs to fit every use case, which is every use case ever these days. It is an ancient language that needs to be backwards compatible while also not evolving so fast that the v8 engine can keep up. They really have a challenging job. But, they should add an event system for those 1-2 times I've really wanted one. Please.
-
Meh. It always felt tacky to me, even at the time. Flat and simple is all it needs to be. Icons, layouts, whatever- they’re a means to an end. Desktop icons are meant for double clicking and not much more. Being HD 3D renders with tons of detail is unnecessary.