Details
-
AboutI'm 37. My dad taught me BASIC when I was 8 and I've been coding ever since. My current project is developing an interpreted declarative language in C++.
-
SkillsC/C++, JavaScript, Swift, Objective-C, Unix, macOS, iOS
-
LocationKingston, ON, Canada
-
Github
Joined devRant on 6/14/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
-
Lol my main rule about JavaScript is this:
If you’re not sure, don’t assume anything! -
@PerfectAsshole 😂
-
@PerfectAsshole It’s idempotent not impotent 🙂 but yeah you got it. With PUT you can submit the same request multiple times and it will be the same as calling it once. Not the case with POST.
-
@PerfectAsshole
-
@TempestasLudi PUT also updates if the id already exists.
-
@PerfectAsshole I believe PUT is idempotent while POST is not, therefore it should be the other way around.
-
You actually speak to recruiters? I consider that stuff spam…
Am I a bad person? -
@GreenGirl Thanks! And welcome to devRant 🙂
-
@GreenGirl Well I still work with him but the topic hasn’t come up in a while so I’m not actually sure if he still wants to learn programming or not.
I always try to be supportive if I can, but I would not personally trust any code written by this guy, lol. At least not until he has a lot more practice doing it. Luckily he’s still just sales here. 😛 -
@-ANGRY-CLIENT- I’m not saying it’s wrong, just not very accurate.
I mean that’s literally an error of 50%. -
Lol I guess they rounded up
-
@WIPocket and his font is like, way too big.
-
@Kandelborg That’s a huge question and there’s no short answer. As for the maths, good ole algebra has been the most useful to me personally, but I would imagine statistics would also be very handy if doing stuff like machine learning. I honestly don’t see calculus as being all that helpful, unless you’re doing actual mathematical or scientific programming.
I would start with classical algebra and geometry and go from there. Linear algebra (matrices) is worth knowing as well, especially if you get into graphics programming.
As for CS, like I said start with complexity and get a good handle on “Big O” notation and how complexity combines and grows. You will need a general understanding of functions and how they look graphed out (n, n^2, n^3, log n, n log n, 2^n, etc). These relate directly to how computationally expensive an operation is based on its input size. You will relate back to this knowledge with every single algorithm you write. -
@kweakzs It actually wouldn’t be bad if the arrows were just moved over a little.
-
Is it just me or should web servers just not be GUI-based?
-
@lunorian No, he was doing my job for me, which is entirely different.
Anyway like I said we worked it out. -
@xprnio No I disagree. If the day and year values are both 1-based, the month should be too. Just because you *could* look up a month name in an array doesn't mean that you necessarily have to. If I were just writing a date in numeric form, there's no array and nothing to index. It doesn't make sense that I would have to +1 the month field but not the others. Consistency is what matters here.
The Calendar library does it right though: it returns the date component as a value of the count of that many units. So the fifth month would have a month component value of 5.
I just tested it and it does return 1-based months. -
The Calendar library is actually pretty handy. See component(from:) in https://developer.apple.com/documen....
-
How are you getting the month value? Date is based on a timestamp so it doesn’t have a month field, and my understanding was Calendar.components returns 1-based months.
-
@frickerg It’s cool we actually have a pretty good relationship. It wasn’t too hard to convince him of a better interface, it was just the way he approached it (that I’ve seen many times before in corporate environments) that bothered me.
The good news is I’ve basically taken over and have free reign to do what I want with it now. I came up with a much better gesture-based interface that is way more intuitive and looks like a real app. 😉 -
My personal belief echoes Brian Cox’s who recently discussed it on Joe Rogan: in all likelihood there exists intelligent life elsewhere in the universe. The question is a matter of how rare is it. According to Cox, he finds it very plausible that we could be the only intelligent species in the entire Milky Way.
Couple that with the limitations of General Relativity and communicating with such advanced species becomes all but impossible. It would take millions of years to receive a response even from our closest neighbouring galaxy. -
@rantalicious I consider it authoritarian
-
Heads up, I’m in control here. Don’t get any funny ideas. You do what I allow you to do, not the other way around. I am an inanimate object bossing around a sentient being. Doesn’t that make you feel small? Doesn’t that make you feel inadequate? Pathetic? Good. Good. Now hang on while I reboot. Oh were you in the middle of something? Yeah, don’t care.
-
This simple flowchart might help.
How To Tell If It’s Broken
Does it work?
|— Yes: It’s not broken
|— No: It’s broken -
Well this is off to a good start!
-
Lol this person’s been playing too much Fallout! 😂
-
while (!user.is_home) {
sleep(2 * 60 * 60 * 1000);
} -
@Root Money is not a reward if it is required for survival. Let’s implement some form of universal basic income and then we can talk about rewards. Right now we are each of us forced to work to survive. Just think about that for a minute. Back when this was roughly equivalent to the work you’d perform to survive anyway that would have been a fair trade. But now people work entire full-time jobs for someone else and still have barely enough to survive on, while fat cat execs sit on their incomprehensible loads of cash and watch us fight over breadcrumbs. Don’t tell me you think them sitting up on their mountain is completely fair just because they were “successful” and the rest of us weren’t.
-
@Root Again, why do you see money as success? To me it is just a tool; a necessary evil to achieve things and that people do terrible things for. Why should we consider obtaining power over our fellow person the goal of life to the point where we consider that “success”? I’m richer than you; mission accomplished.
-
@Root Hate is a strong word. I just find it disreputable. And why do you assume lots of money is success?