« first day (1526 days earlier)      last day (3427 days later) » 

11:00 PM
I hope puppy doesn't suddenly become OCD
 
I think, I actually don't notice or care what the casing is.
 
@Puppy Yeah. Fuck 'em. If it works for you, and isn't totally insane, then fine.
 
Ell
> knowN TO HAPPeN
 
consistency should be reserved for things that are actually problematic if they're not consistent.
 
11:00 PM
lol
 
and naming schemes are definitely not on that list.
 
Ell
@Puppy is wide going to be case insensitive?
 
no.
 
Ell
Why not?
 
user1804599
When things are inconsistent they're hard to remember.
 
11:01 PM
Try working on a big project made by more than one person that doesn't strive for consistency
have fun
 
why would it be case insensitive?
that's additional effort for no benefit as far as I can see.
 
Jesus.
 
@rightføld "there's an environment for that"
 
user1804599
 
@rightføld I don't need to remember if a thing is a variable or a member or a class or stuff like that.
 
11:02 PM
so you can keep that hovering going
 
Hi my name is la-a.
 
for everything
 
Ell
@Puppy to protect programmers from people that change case halfway through a piece of code
 
they don't need protection
 
because otherwise you have no idea what is going on
 
user1804599
11:02 PM
@Puppy If you call one function fooBar and another one BazQux then you also have to remember how it's cased.
 
@rightføld No, I don't.
 
user1804599
If you call them fooBar and bazQux you only have to remember the words, not the casings.
 
user1804599
Because you can infer the casings from the project's consistent style.
 
Ell
@rightføld no block caps pls :'(
 
I have not found miscasings to be any hindrance in my ability to push enter to autocomplete the function's name.
or to read the correct name from the autocomplete list.
 
Ell
11:04 PM
@Puppy you seem pretty intent on people consistently using autocorrect etc.
 
Can you read your code without using an IDE
 
user1804599
I want to use autocomplete as much as you want consistency.
 
I currently have no use case for performing any serious work on it without an IDE.
 
@Ell May as well argue that you should always comment out the previous version of your code, just in case people don't use source control.
 
user1804599
11:05 PM
Is the Wide standard library also going to be full of this crap?
 
tools exist for a reason and it's to do work that the programmer does not want to perform that could be performed by a machine.
 
Just a quick question, in heapsort and quicksort, do I need to sort all elements to find the 10th largest?
 
user1804599
wat
 
and "Is this thing a class or not" is a thing that I don't want to do and can readily be done by an algorithm.
 
Ell
@Puppy autocomplete is for productivity
 
user1804599
11:06 PM
To find the 10th largest element you don't need to sort anything.
 
Ell
I find productivity through other means
 
@rightføld then how you can find it?
 
Ell
Version control can't be solved by some other means
Because its the solution not the problem
 
finding the 10nth largest is linear
 
sure, you could just run regular backups and comment out all the old versions and stuff.
 
Ell
11:06 PM
Meh wait
 
but anyway
 
@Jefffrey sorry, when I say 10th I mean n th
 
if you want to waste your time instead of automating that work, that's your problem and not mine.
 
Ell
I fucked that last argument up
 
the only problem arises when I can't employ the solution of my choice.
 
user1804599
11:08 PM
A consistency-introducing tool! Glorious!
 
It's about this little irrelevant thing we call working with other people
 
Actually the question is: does the size of the array I am sorting matter (quicksort or heapsort), when I am trying to find the x largest element?
 
yes
 
Ell
Yes
 
OK...
 
11:09 PM
it's a linear operation over the container
 
user1804599
No. Computers are fast enough.
 
So, if the array is largest, the algorithm will perform worse?
 
will maybe take longer
 
Ell
But profile etc etc
 
Oh, I see your point, it has to scan the whole thing
 
11:10 PM
@CatPlusPlus Only thing I really need to read code is syntax highlighting.
 
user1804599
I can read Go code without syntax highlighting.
 
I mean, I can do without it but it's better if there is some.
 
Ell
Delimeter matching helps a lot too
 
Actually in Heapsort, does the size of the array I am sorting matter, when I am trying to find the x largest element?
 
Xeo
VS's code highlighting regularly dies for me :(
 
Ell
11:11 PM
Is delimiter the word? Brackets braces etc.
 
Xeo
Or rather, breaks
 
@Ell yes thats correct
 
I wonder...I need to post process LaTeX produced by Pandoc, to wrap some foreign language bits to set different font. Now, I need some sort of regular expression or such for it. And for that I need to know ranges of Unicode code points or something for those foreign languages...if it makes any sense.
 
Ell
Coolio
 
Xeo
When the code is compilable and perfectly fine syntactically, I get no highlighting and just blue keywords, nothing else. When the code is broken syntactically, I get full highlighting.
 
11:12 PM
It's actually O(n+m*log(m)) I think. To find the mth largest element on a n elements container
 
user1804599
lol
 
@Jefffrey thanks
 
@Jefffrey Uh why
 
or O(n*log(n))
which one is better for you
 
I guess there's more comparisons
 
11:14 PM
well I'm thinking about worst case behaviour and I'm not sure how you could better O(n log n) or O(nm).
 
@CatPlusPlus if you have a small m you can sort the first m elements of the container into a FIFO queue (max -> min), and then push new greater element on the left as you go along the rest of the container
 
oh unless you used a linked list or something to store the m elements.
then you could get O(n + m*log(m))
no, wait, that's still not correct, because you may have to change the storage of the m elements n times, if you had a worst-case (already sorted in the opposite order) input.
 
You can probably do quicksort but only descent into one half in every step
 
that doesn't change the complexity, I think.
so I'm actually not sure if you can do better than just sort and then take.
unless m is smaller than log(n).
 
Wouldn't it be n + n/2 + n/4 + ... = 2n?
 
11:19 PM
Meh, just sort first, and if you're doing it often keep the input sorted
 
user1804599
11:39 PM
 
user1804599
Best song ever.
 
@rightføld lol, absolutely not!
 
user1804599
fu
 
user1804599
ok wat use Clojure, Go or Scala?
 
@rightføld For what?
 
user1804599
11:42 PM
Tool.
 
@rightføld Clojure.
 
@rightføld Go
 
Racket
 
DISCLAIMER: That choice is absolutely uninformed.
 
user1804599
Scala it is.
 
11:43 PM
robots are awesome in factorio btw
 
Ell
@Jefffrey they're okay.
 
@Ell you can make super compact modular (with on-need delivery system to the player as well) production lines
complete with resizable buffers
 

« first day (1526 days earlier)      last day (3427 days later) »