« first day (1810 days earlier)      last day (3142 days later) » 

6:00 PM
Well in Russia thats the only word for black people...
 
@набиячлевэлиь Huh.
 
user406009
@Mikhail Context is important. I am sure there are all sorts of common words which are actually swears in another language.
 
user406009
Anyways, it's the words themselves which aren't the issue. It's the racism around them.
 
evening inferior beings
 
I am not inferior. ;~;
 
6:08 PM
@Lalaland The one should imply the other, more or less.
 
ITT puppy is actually a cat
 
how do you know?
 
cpx
@fredoverflow Did it take long?
 
@Lalaland I strive to make APIs both simple (for the simple use cases) and flexible.
 
@ThePhD You saw nothing!
 
6:14 PM
@Morwenn Me too! That's why I'm refactoring all my code.
And it's a terribly slow, horrible, soul-wrenching process. ;~;
 
Ew~, some things are crazy hard to port back to C++03.
@ThePhD Haha, I know what you mean :D
 
Title of the day:
-16
Q: do you have any suggestions?

Urmila ThakurI would like to add a moving carousel to my home page. My page is www.vikaswedsnitika.com I would like to add it under the our story section. The problem I am having is that I am using the zenith theme template and I dont know how to access the area where to add the code in order for the slider t...

 
@Morwenn Why would you want to do that, anyway?
 
user406009
@Morwenn The issue is that sometimes you have conflicting needs. For instance, you can usually simplify an API by adding invariants.
 
user406009
For instance, GLUT has a simpler API because it makes certain demands on how your application is structured.
 
6:16 PM
@набиячлевэлиь Well, my vergesort for random-access iterators worked for C++03 (it was easy). Now that I have a version for bidirectional iterators, I thought that making it work with C++03 would be easy too. I was wrong.
 
moving carousel on the home page is almost as bad as falling snow from the cursor in Javascript
 
@Lalaland GLUT's API isn't simple, it's shit.
 
also holy shit this ISP
 
What about it?
 
@Lalaland Rethink APIs until you get both. It make take years.
 
6:17 PM
they don't provide router admin password
 
As in?
You can't log in to your router?
 
user406009
Another good example would be requiring default constructors vs having construction functions passed in as arguments.
 
well yeah they locked down their router (as in, the ISP-provided router)
 
user406009
An even better example would be getters and settors.
 
I know the ISP's provided routers are shit, but this takes the cake
 
6:18 PM
Can you do a fucktory reset?
And then enter the default password?
 
gonna try
 
user406009
The flexibility of gettors and settors comes with the cost of making the API much more verbose.
 
Properties /o/
 
@Lalaland They don't actually add any flexibility really.
 
@milleniumbug careful, you might void your router's EULA! :p
 
6:19 PM
@Lalaland getters and setters are irrelevant. Invariants are.
 
user406009
@Puppy Depends on whether on not you care about API compatibility with external code.
 
Does that also mean you cannot change any router settings?
 
changing x = y; to setX(y); is not a serious problem
the problem that setX(y) may no longer make sense is a serious problem.
 
@набиячлевэлиь yeah they told me I can call them so they change the password and/or SSID (lol)
I actually didn't expect one can do such a thing
 
Anger Symbol U+1F4A2
💢
--.--💢
 
6:22 PM
That's not an internet connection, that's shit
 
user406009
Another great example is promise or future api.
 
user406009
You can create a simpler API by not allowing promises or futures to be cancelled.
 
@cpx Well, I started 5 months ago, but there was a major pause of several months in-between. According to my git logs, I have been working on it on 35 distinct days so far. Assume an average of 4 hours per day and you end up with 140 hours.
Looking at the total number of lines of code, I write about 18 lines of code per hour ;)
 
I need something that makes a slim, templated function object for &my_class::my_member that generates an operator decltype(my_member) () for getting it and an operator=, but only if my_member is non-const or the passed my_class is non-const.
I also need it to provide an overloaded operator()( x ) for setting (if not const), and an operator() () for getting.
 
@Lalaland Not really; you write less code, but your API consumer may well have to write a lot more code to properly handle cases where they need to cancel it.
the "simplicity" of not permitting it is an illusion.
 
user406009
6:28 PM
@Puppy But what about "pausable" futures or promises? How do you decide when to stop adding functionality?
 
simple
"Do my API users actually need this? Yes -> add it. No -> don't add it".
 
and if the answer is "I don't know", then default to no.
 
@jaggedSpire ^ doesn't look very firey
 
6:28 PM
It is pretty tho.
 
@ThePhD reduce the color range to orange, change bg to black
 
user406009
@Puppy So you would default to simplicity over flexibility when the functionality is not guaranteed to be needed.
 
it's only actually flexibility if somebody needs it.
otherwise it's not flexibility at all, it's just dead code.
 
user406009
Yes, that is my approach as well.
 
user406009
I was simply wondering other people's opinions because I just had an argument with someone who thinks that flexibility should always be preferred.
 
6:30 PM
 
user406009
Even if there is no current need for the functionality.
 
No black BG but it does look better
I think if I interpolated the pixels near the edges towards red/black and orange/black (to simulate ash) it'd look less like a party popper
 
then they're an idiot.
clearly they should offer literally every possible function, just in case it's needed in the future.
why not offer an asynchronous FFT? who cares if you're implementing a shopping cart
 
@Lalaland you prefer ease of future refactoring
 
user406009
@AlexM. Yep.
 
6:32 PM
prefer that to predicting future features
 
user406009
@ThePhD Fire simulation?
 
...
THE FACE WHEN YOU HAVE TO IMPLEMENT YOUR OWN INTERPOLATE FUNCTION
 
@ThePhD --.--💢
 
@ThePhD return a * t + b * (1 - t);?
 
6:34 PM
@fredoverflow But is that all there is?
IS THAT TRULY IT?
 
If t goes from 0 to 1, yes.
 
And if it doesn't?
HMMM?
 
user406009
(a-b) * t + b is an alternative formulation.
 
Well, then you have to scale it accordingly.
 
then change it so it is
0-1 master race.
 
user406009
6:35 PM
I wonder which one has better performance on floating point numbers.
 
@Puppy OpenGL doesn't like 0 to 1 q_q
 
measure
 
then fuck OGL
 
It does -1 to 1
 
as if you needed an additional reason to fuck OGL over the fact that it's a terrible global state machine
 
6:37 PM
I think... DirectX does 0 to 2...?
... No, it does 0 to 1. 0.5 is the center of the screen.
For OGL, 0 is the center of the screen.
 
@ThePhD for what?
 
@thecoshman It's natural normalized device coordinates
 
why are you messing with that again?
 
cpx
@fredoverflow Does it work like a real one?
 
A little too thick now... need to spread the base out I think.
8
But I got the "smoking ash" effect right, I think!
There's no math.clamp in python?
 
6:58 PM
There's numpy.clamp.
 
Guess I'd better get used to using numpy
 
It's handy when you're working on big arrays.
 
We should have a std::unique_try_lock
 
I have big arrays but I'm iterating them often
 
7:00 PM
which I think means I need to not use numpy as much?
 
Hey, I finally got the damn thing working with C++03. std::partition is really verbose when you don't have lambdas.
 
Ell
@ThePhD I like playing with particle systems
they're really fun
I made a game of pong once
with lots of particles
 
cpx
@Ell: I am guessing it required some maths such as using vectors?
 
Ell
yah
it was just really fun though
 
Oh wow
700 particles only and my framerate TANKS
Goddamnit, python. =/
How am I supposed to do anything fun with you?
 
7:15 PM
alright guys
 
cpx
I would like to try after I finish some matrices lectures.
 
how hard is it to repair jeans yourself?
 
@Puppy Buttons are easy
 
rip in the crotch
which I'm sure has nothing to do with my massive dick
 
@Puppy Not too hard. Presumably you'll need a patch, though.
 
7:16 PM
indeed
 
cpx
@Ell 3D?
 
I have just ordered the aforementioned from Amazon
 
Ell
@cpx 2D
 
@Puppy I've only done it with a sewing machine and a patch. Was pretty easy. Not sure how hard it would be to do by hand, though.
 
Xeo
go to a clothing shop and get it done for 5-10 bucks or so?
 
Ell
7:17 PM
@Puppy very
I'd just buy new ones
I didn't know you could even repair ripped jeans without them looking ridiculous
 
@Xeo I actually looked and Google doesn't locate any in my immediate area.
@Ell They're black jeans. With a black patch and black thread.
 
Small clothing shops might not be in google
 
cpx
I have seen people ripping their jeans for purpose to look stylish.
 
Ask the locals
 
@cpx yea not in the crotch area though
 
7:20 PM
also not when you weigh as much as puppy
 
> meet the brightest engineers in java, microservices and devops
Gosh. Nope.
 
Ell
@TonyTheLion some cowboys :P
 
@Puppy Where are you at currently?
 
@ElimGarak He is the stage in his life where he is considering repairing ripped jeans himself.
 
7:23 PM
Bristol
 
Weight-wise, I mean. :P I was at about 137 kg when I joined the Lounge many yearzors ago.
 
oh hahaha
 
also
@BartekBanachewicz I am a local.
 
Xeo
Not local enough if you don't know any clothing shops
 
@Puppy You going out of scope soon?
 
7:25 PM
Lol
pygame.draw.circle crashes if you pass it floating point coordinates
but pygame.draw.rect doesn't crash if you give it floating point coordinates
 
Ell
@ElimGarak do you mind if I ask what you are now?
 
Who designs/tests these APIs?
Monkeys?
 
@ElimGarak Yep
 
@Ell 106.4, need to lose 9-10 kg more. Although, these last 10 kg are the hardest for me.
 
@ThePhD Yea most likely
 
7:26 PM
I need a random user input number generator. It generates random numbers with a bias for numbers that are more likely to be chosen by users. So more likely to be even, divisible by five or ten. Etc..
 
@Xeo I know loads of clothing shops. They simply retail clothes, rather than selling alterations of them
 
Ell
@ElimGarak ah congrats
 
user406009
@StackedCrooked People must have done surveys. Find a survey. Use that distribution.
 
@ThePhD lol
 
Congrats will be at 97 kg, when I am officially no longer "overweight". Tough as fuck, though. :/
 
7:27 PM
@ElimGarak Then performance anxiety while writing code stressed you so much that you lost it all, right?
 
@ThePhD PyGame is a wrapper around SDL 1.2.
It's nothing special.
 
@ʎǝɹɟɟɟǝſ Running each day and 1-2 meals a day tops, one of them being some atrocious healthy shit.
 
It's just using ctypes.
You're complaining to the wrong author.
 
Right, but if one accepts floats, the other should too.
 
SDL 1.2 is deprecated.
rect is just a struct.
 
7:28 PM
It's got ints in there
But it works if I hand it floats
 
C is beautiful
 
0
Q: C/C++ .. such language doesn't exist

redobotI came across several questions in SOO where lot of them make use of the term C/C++ which is (in my opinion) widely accepted in the industry (at least in the last two decades). In general the SOO users ask the person who is asking the question to choose a language: C or C++. Why? I understand th...

lol
 
Whatever, I'll just cast myself.
 
^ This shit
 
7:30 PM
@ThePhD FYI that's SDL 2.0 docs.
 
@ThePhD IIRC you're quite good at casts of various natures :P
 
@TonyTheLion Huff.
 
@ThePhD Hi Roboto
 
@ElimGarak Muesli, I like that :3
 
@Morwenn Given that it replaced lasagna for me, I don't like it. :P
 
7:32 PM
@Morwenn That's just rolled oats
 
350 max particles
 
how are oats a replacement for lasagna?
 
next gen phd
 
Otherwise it can't sustain the 1/60 physics framerate
"physics"
I'm not even doing anything complicated
 
ThePhD doing simple things hard since 2011
5
 
7:33 PM
WHATEVER, SHIP IT AND WRITE ABOUT IT IN THE JOURNAL
 
@ThePhD debug build? or is this python :p
 
My current meal is bread, cheese and tomatoes. Hardly healthy.
 
Pythn
 
If this was C++ I'd be cranking thousands upon thousands no problem.
 
Ell
7:34 PM
@thecoshman grind em up real fine and make pasta out of them
 
> Learn C++ ThePhD way.
 
Ueh
I've reread Brendan eich interview about wasm
 
@Ell oh right... well, not wheat flour pasta is hardly lasagna :\
 
Ell
@thecoshman why not?
 
7:35 PM
It's both optimistic and kinda depressing
 
@ElimGarak more like this
@Ell ... because it's just pasta :\
 
Ell
I mean, make your own lasagne
 
@thecoshman lol
 
@Ell oh sure... but why make your own pasta, it's just so much effort
 
No, you combine a spoon worth of oat with yogurt and that's your meal. Two tops.
 
Ell
7:37 PM
@thecoshman honestly it's not hard - 1 egg per 100g of flour
mix it together
knead it for a while
roll it into a sheet with a rolling pin
and that's it
 
Boil water, put pasta in and wait is easier.
Now I want to eat buckwheat pasta.
 
@Morwenn I hear you brother... sister... sibling
 
:D
 
@ElimGarak no wonder you don't like it, that's not food
 
wow, C# room has quite a different policy regarding questions
in C#, Sep 21 at 20:04, by Tom W
Post your code or gtfo
 
Ell
7:40 PM
@Morwenn but not as fresh
or satisfying
 
I wonder how well this would work here lol
 
@AndyProwl changing this policy to apply to our customs is really easy though
s/or/and/
 
@thecoshman Wellp, it was an ally against man boobs, so I respect it a lot. :D
 
@Ell Not having to cook is satisfying enough by itself.
 
Ell
M8 cooking is the best
 
7:41 PM
@ElimGarak vOv not worth it
 
Also surprising:
in C#, 5 mins ago, by ton.yeung
@AndyProwl we don't really have anything against c++
 
@AndyProwl is it?
 
for me it is
anecdotal, but my experience at work is every single C# programmer hates C++ and makes fun of it
 
they did at my work too
except since I was there they rapidly came to realize that they did not understand and could not use it
 
By the way, I might start a new job on Monday involving Python and C++.
 
7:43 PM
how is virtual concepts going
 
user1804599
@Morwenn RIP.
 
@Morwenn Kinky! So the interview went well?
 
@Puppy Is such introspection common? I am used to seeing people stay blind and happy in their own opinion.
 
@Puppy not going yet
 
who said introspection had anything to do with it?
I was there.
 
7:44 PM
@Puppy That implies they listened AND thought about what you said.
 
@ThePhD Good enough. Now, they might still hire somebody else instead but finding people willing to develop full applications in Python is hard enough.
 
After my experience with pygame I feel it's easy enough to use python.
 
user406009
@Morwenn Why would that be an issue? Python is a pretty popular language?
 
@Morwenn cool. Where?
 
@Jaden I said it
 
7:44 PM
@elyse Honestly, it will probably be better than my previous Java/Ant/C job.
 
user1804599
lol C
 
That's a no-brainer
 
You could probably get more speed just by compiling everything down with a better python interpreter/runtime.
 
@Lalaland Pretty popular for scripting and Django.
 
user1804599
@AndyProwl But we do.
 
7:45 PM
@sehe In Rennes, France.
 
@TonyTheLion hehe. Saw that too today. Posted the other one though
 
@elyse Indeed
 
@Morwenn That's a bit far by bike for me. I won't compete then :)
 
user1804599
The C# room is full of help vampires who post unformatted code though.
 
user1804599
Don't visit it.
 
7:46 PM
I did that already
 
@sehe I'm lucky then :D
 
I think so. I mean, about the job. C++ + Python would certainly tickle my fancy
(apart from the team etc)
 
user1804599
I need a PHP 7 parser.
 
PHP 7 exists?
 
user406009
@ThePhD Yeah. They skipped PHP 6.
 
user406009
7:48 PM
Due to "reasons"
 
@sehe It will be Python 2.7 though. Officially it's supposed to run with Python 2.4.
 
@Morwenn .... Topkek, have fun.
 
I wish C++ could do inheritance at run-time so that I could build my class from virtual classes at runtime
 
@ThePhD I hope so :p
 
user406009
7:50 PM
I hope Python 3 eventually wins out.
 
user406009
The unicode handling is so much better.
 
@ThePhD They skipped PHP 6 because many books are teaching "PHP 6", which is just PHP 5.x. Naming the next version PHP 6 would confuse people.
 
@Lalaland Yeah I did, doesn't apply to me. These classes represent hardware devices aren't templated and have pragmas including different libs
 
How does one get images in github readmes?
 
user1804599
put them in the repo
 
user1804599
7:52 PM
or put them on imgur
 
user1804599
then use markdown syntax for images
 
And theenn?
 
and then you're done
 
Oh. I don't know what that syntax is. Better go look it up.
 
like links but with a bang!
 
7:54 PM
Okay, I'm done then.
20 days early.
 
@ThePhD ![Description](link-to-image.png)
 
@Morwenn I already figured it out, but thanks ♥
 
Eh~, you're too fast.
 
@Morwenn Don't worry~, for the important things I take my time.
 
@Morwenn slightly disappointing then
 
7:56 PM
@sehe I agree. At least I know the language and I like to use it :p
But Python 3.5 would have been better.
 
At least 3.x
 
user1804599
Python 3.5 is still abysmal.
 
whatever
 
indeed
 
pip install solve-my-problem-whatever-it-is is why I like Python.
 
7:59 PM
Yeah, the p2/p3 divide ruins that fable quite a bit though
 
Yep.
 

« first day (1810 days earlier)      last day (3142 days later) »