After a first date dinner, I walked her to her car. While we were saying goodnight, I noticed her license plate started with TTF and I said, "hey, cool, truetype font". Then I had to explain myself. Anyway, we celebrated our 15th anniversary this year.
But does she know the difference between a Stack and a Queue?
(I took some programming courses in University more than a decade ago, back when we were told computer programmers would always be in demand. Before AI, before the dark times)
Well I haven't done programming in a long time. But I'm a gamer and PC user, and my brother is in software development. I've noticed that programs have gotten much less efficient and reliable, I'm assuming partially because of reliance on AI written code. Which is ironic (or moronic), because that basically means people need better hardware, but AI is increasing the cost of that too.
nah, the actual array still starts at 0. The language just lies to and uses 1 for people that do not fully understand logic, wasting the hidden resources. Think of it as a red flag for what else might be wrong with that environment :{
I mean, you can even use 1 as the first element of an array in most other programming languages, if you want to. Just means the element at index 0 is never used. But you have to always increase length by 1 for all initializations and checks.
That's insane to think. There are arguments. Compiler character processing speed is absolutely so very far from remotely related to one of the reasons. No. Character count does not impact compile time in any remotely significant manner. Compilers don't iterate over text one symbol at a time. You should write one some day, just something basic, you'll learn a LOT.
In order to tokenize the source code, I don't see how you could do that without checking the characters one at a time. I've built ASTs from scratch a couple times, and I'm at a loss for thinking how you'd get all the way through compilation without checking each character. Not disagreeing that unnecessary whitespace would matter significantly in terms of total compile time, though.
There are arguments? Like that more bits is easier to process than less bits?
I understand MOST modern compilers will drop MOST of these but not all and…
You get smaller file sizes with tabs because it takes someone 2-4 spaces to cover a single tab and the less character the better… also the less keystrokes the better according to Linus
And you should be following a set spacing guide/schema
Python would be the only exception I can recall, but Go definitely works better with just tabs
glovelyday
DiracsDelta
*laughing in matlab*
CrisprCAS
*crying
hellfirerains
I absolutely hate it. There is no point in it, and it just creates extra complexity for no good reason. The first item should not be 0!
TripleDane
Thats what OP is saying. The first entry should not be 0!
1000PLTX
Option Base 1
DiracsDelta
Weird to talk about a 2nd date when you haven’t yet had a 1st date. This was clearly the 0th date.
alcamar
Maybe it is the 1st and that's why the argument over whether it's the 1st or 2nd date, this no 2nd date
BellerophonM
Nah, 'second' is an ordinal number and not an index number, ordinals associate by index + 1.
LeftRightThere
JackieTreehornProductions
bottledham
// easy solution to that problem...
#DEFINE 1 0
fractalsphere
Jokes on you, I'm into that!
Hexidimentional
Thank god my wife is a huge fucking dweeb or i'd have gotten nowhere with her
BoobJiggle
Math and tech need a 0
cousteau
Matlab and Lua have entered the chat.
AyrA
In VB (but not VB.NET) you can just do "ReDim Varname(-8 to 15)" if you want an array starting at -8 and ending at 15
cousteau
Yeah I think that's also a thing in VHDL (and therefore probably in Ada too) and Verilog.
TyrCarter
doing the lord's work
BlindGardener
Off by one error.
TripleDane
in lua array start at 1 but 0 is available.
i used the 0 index as the pointer to which entry in the array is the current selected one....
dont get mad...
xypotion
Not in Lua! And some other languages.
CrisprCAS
Is this an i+1 language or an i-1 language?
Marikhen
i C what you did there.
ATLandNerdy
The two biggest problems in computer security are input validation, session management, and off by one errors.
fartharder
She'll probably forget when it's important
androgenoide
Wasnbo
Old-school Black Hat shenanigans. I knew him as Pork Pie Hat Guy. Dude was a MENACE for most of XKCD's run.
androgenoide
It's hard to say which XKCD best represents his character. Sometimes I think this one...
androgenoide
Or sometimes this one...
ItsMoreComplicatedThanThis
For me, it's this one:
StrandedonEarth
There's an xkcd for everything...
Denvercoder09
Very true
JodyBird
Or a Simpsons, one or the other
lonosham
There are two types of people:
1) those that can extrapolate from incomplete information
There are 10 types of people:
01) those that understand binary
10) those that don’t
Badprenup
Based on these two statements I have arrived at two possible outcomes.
1. Either they are lies and there may be up to four types of people to account for possible combinations, OR
2. 100% of people who can extrapolate from incomplete information either do or do not understand binary.
sfrinlan
There are 2 hard problems in computing: 1) Naming things 2) Cache coherency 3) Off-by-one errors
InitHello
I've got 99 problems, and off-by-one errors are all 100 of them.
Canigetbannedagain2
Everything in this universe is or is not a potato.
chiefrunswithscissors
There are two types of people
1) those who believe there are two types of people
2) those who do not
ContentCup
There are 1-bit types of people:
Boolean true
Boolean false
ironhive
After a first date dinner, I walked her to her car. While we were saying goodnight, I noticed her license plate started with TTF and I said, "hey, cool, truetype font". Then I had to explain myself. Anyway, we celebrated our 15th anniversary this year.
khora
Unless you're working with XPath.
hogninja
Out there doing the Lord’s work.
archon325
But does she know the difference between a Stack and a Queue?
(I took some programming courses in University more than a decade ago, back when we were told computer programmers would always be in demand. Before AI, before the dark times)
LordOfTheFleas
FILO & FIFO basically
HelpfulCorn
You'll still be in demand. There's just a dark time now when people *think*you can be replaced with AI
archon325
Well I haven't done programming in a long time. But I'm a gamer and PC user, and my brother is in software development. I've noticed that programs have gotten much less efficient and reliable, I'm assuming partially because of reliance on AI written code. Which is ironic (or moronic), because that basically means people need better hardware, but AI is increasing the cost of that too.
thisStanley
What about Do vs While loops :}
https://galactanet.com/comic/view.php?strip=307
Sangueffusor
It depends on the programming language. Some do start at 1
thisStanley
nah, the actual array still starts at 0. The language just lies to and uses 1 for people that do not fully understand logic, wasting the hidden resources. Think of it as a red flag for what else might be wrong with that environment :{
soulmata
https://iq.opengenus.org/array-indices-start-from-1/
zagibu
I mean, you can even use 1 as the first element of an array in most other programming languages, if you want to. Just means the element at index 0 is never used. But you have to always increase length by 1 for all initializations and checks.
TiredTait
if the girl says "Pascal is my favorate programming language!" the only words leaving my mouth are "check please"
cousteau
Also Matlab, Lua… yeah, red flag right there.
cousteau
(ok Lua is kinda cool, except on the array thing)
WillyVanilli
big red flag, Dim uglyArray(5 To 10) As Integer
pancreas
but what about perl?
drinkthederpentine
Excuse yourself to the bathroom and never return
deaththeunholy
And tabs are better than spaces
alcamar
Tabs for life! I can't tell you how much i detest spaces even without it being the logical choice
deaththeunholy
You can downvote me all you want but IT COMPILES MUCH better with fewer characters. That’s literal computer science.
fubizdaddie
That's insane to think. There are arguments. Compiler character processing speed is absolutely so very far from remotely related to one of the reasons. No. Character count does not impact compile time in any remotely significant manner. Compilers don't iterate over text one symbol at a time. You should write one some day, just something basic, you'll learn a LOT.
deaththeunholy
Compilers literally iterate through each character and then DROP WHITESPACE that is unnecessary during tokenization
More characters means more CPU cycles to process. Saved on disk or loaded into memory means more space. They literally teach this in school today.
What’s insane is your reaction here and how confrontational you get
sfrinlan
In order to tokenize the source code, I don't see how you could do that without checking the characters one at a time. I've built ASTs from scratch a couple times, and I'm at a loss for thinking how you'd get all the way through compilation without checking each character. Not disagreeing that unnecessary whitespace would matter significantly in terms of total compile time, though.
deaththeunholy
There are arguments? Like that more bits is easier to process than less bits?
I understand MOST modern compilers will drop MOST of these but not all and…
You get smaller file sizes with tabs because it takes someone 2-4 spaces to cover a single tab and the less character the better… also the less keystrokes the better according to Linus
And you should be following a set spacing guide/schema
Python would be the only exception I can recall, but Go definitely works better with just tabs