« first day (1983 days earlier)      last day (1505 days later) » 

12:00 AM
stackoverflow.com/q/60745783/155423 needs more downvotes so we can vote to delete
 
@Shepmaster Or, we wait for two days and then vote to delete. ;)
One would need 20k+ rep to vote to delete now anyway.
 
Turns out I know nothing about how deletes work
 
This is one of the very few cases where I'll say we don't need downvotes.
 
time to SLEEP end of day 3
 
12:10 AM
You're right. *off*
 
user11867329
12:35 AM
Quick, mods are sleeping, help me with this simple CSS question
 
user11867329
Why doesn't this text-align selector work?
https://www.w3schools.com/code/tryit.asp?filename=GCYXJCU2IRGU
 
12:56 AM
@OakDev it's span tag instead of a div tag
 
 
5 hours later…
user11867329
5:31 AM
@NebulaFox so? text-align doesn't apply on span?
 
6:56 AM
@OakDev If you use your browser devtools to highlight at the span's placement and size, that might make it clearer. By default a span exactly fits its content, so aligning text within a box that exactly fits the text doesn't really make sense. A div on the other hand expands to fit the width of whatever it is inside of by default
 
 
2 hours later…
8:30 AM
Waking up: I'll fast make a small program to ask simple math questions to my 6 yo son and the code will be so simple I'll explain it to my kid
Half an hour later: I should probably have done it in Python or JS...
Seriously: do you see a way to make this less verbose and obscure: gist.github.com/Canop/eacb06cbf9135a040f3839b5360e9ff6 ?
 
8:48 AM
@DenysSéguret first don't call a function int
this is illegal
 
why ?
 
Because Stargateur said so
2
 
I won't admit how much time it took me :(
I did almost nothing else this morning and I'm at work :(
 
@DenysSéguret Did you write an Android app for teaching French reading? I take that
 
What's wrong with books ?
My son just reads all the Asterix, Tintin, etc.
 
8:56 AM
To read the syllables
I'd just like an app with cards : when you click on them, it read the syllable
I've written one in native web code, and then packaged it with cordova, but it didn't work on android. Their web engine is shitty.
 
I stopped doing anything for Android. The OS, ecosystem, stores, community, aren't enjoyable at all
 
less obscure more verbose :p
@DenysSéguret oh... REALLY
 
9:14 AM
@Stargateur yeah... I don't want a professional looking library... I want something I can show a 6yo kid...
 
@DenysSéguret Try python lol
 
@DenysSéguret are you going to explain what unwrap does? , use ?instead
 
@Stargateur In retrospect I should have done it in python, yes
I thought about doing it in JS but the async/await readline is crap too
 
python is very good to understand basic of programming if people don't use fanzy feature for nothing
 
let stdin = stdin();
let mut input = stdin.lock().lines().map(|l| l.unwrap());
loop {
    ....
    match input.next().unwrap().parse::<i64>() {
This is disappointing. Too complex for no good reason and not even easy to isolate in a function
 
9:19 AM
But Python is imperative. I'd use Haskell to teach or something like that
 
To a 6yo ?
 
yes
Easier to grasp IMHO
The imperative instructions cut the logic into non-meaningful parts, it's hard to understand
 
I don't want to teach him programming (yet), I want to show him and tune the code with him
 
@Boiethios breaking news rust is imperative !
 
It is multi-paradigm
@DenysSéguret Oh right
 
9:21 AM
@DenysSéguret python
 
@ÖmerErden It's an option unwrap. And I don't really like the fact I have to check for None in such a loop. It's only because the API isn't right
 
@DenysSéguret Unfortunately, we have an Android tablet for this purpose, so I think that I will have to write some Java :(
 
I don't want to give a tablet to my kids. I make them use an old laptop
 
Well she's 2, that's way easier to tap than use a mouse
 
right
IMO a book is better at that age (with an adult helping) but I might be an a stupid old man
 
9:32 AM
everything can be good
 
@Stargateur you're right
 
@DenysSéguret I also use a book, but I cannot be with her everytime
 
10:00 AM
@DenysSéguret Unfortunately, i was thinking something like this: play.rust-lang.org/…
The downside is it closes application with an error
 
10:14 AM
What bothers me is the if let Some(. We're blocking until there's some, so it makes no sense. The API isn't the right one.
 
10:37 AM
it can also be done like this, but you need duplicate question creation, one for an initial other for the rest
 
11:27 AM
I'm so tired of the NullReferenceExceptions storm :( I don't want to work anymore with a language featuring a rudimentary type system…
 
@Boiethios Makes me think of Tony Hoare
I call it my billion-dollar mistake. It was the invention of the null reference in 1965. At that time, I was designing the first comprehensive type system for references in an object oriented language (ALGOL W). My goal was to ensure that all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement.
This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.
 
11:46 AM
Yes, I know that expression. I still feel the pain.
 
@DenysSéguret Mate, that must be one of the proudest days of a software engineering dad: 'Hey, my kids play CLI games... which I developed... in Rust...' -- I'm genuinely jealous!
 
@PeterVaro They ask all the time to play Lapin (mostly drawing levels).
 
@DenysSéguret <3
 
But well, you saw it: it's a small program. Most devs can do that if focusing
 
that's not the point, don't be modest!
you developed your own kids some stuff which they enjoy using
that's about 500% more than what most of the dads do
;)
 
11:54 AM
Do you have kids ?
 
Nope and I don't think I will ever have any (unless I adopt a few) -- that's a philosophical and principle thing for me..
Why?
 
Just to know your reference point, nothing important ;)
 
haha
yeah, but most of my friends do have
and most of my friends are software engineers nowadays
:D
 
 
2 hours later…
2:12 PM
Can you confirm me:
// toplabel = ALPHA / ALPHA *( alphanum / "-" ) alphanum
// toplabel = ALPHA [*( alphanum / "-" ) alphanum]
are equivalent ?
 
I can imagine a plausible meaning for this notation that makes the two equivalent.
 
 
3 hours later…
5:03 PM
@SvenMarnach You would make a very good politician ;)
 
6:03 PM
For the latest Q, I found this and this, but none of them feel good enough.
Oo, found another one.
But never mind, the OP would find another problem afterwards.
 
 
3 hours later…
9:11 PM
@Stargateur I believe that they're equivalent. In general, I believe that A = B [C] is equivalent to A = B | B C
 
@timotree thanks I hope so :p
 
9:29 PM
I think I'm better off asking in here than creating a question (tell me if I'm wrong). Is it possible implement Into generically for a wrapper type, and if not why? play.rust-lang.org/…
 
@NebulaFox I've ran into that same issue and ended up just making an into_inner() method. I'd love to see an answer here as to why it doesn't work though
 
9:46 PM
@timotree and there was me thinking it was simple, no you can't here's why. I'll post it on stack overflow
 
@NebulaFox It might be simple for someone else besides me :)
 
I look forward to @Shepmaster editing my question
 
 
2 hours later…
11:48 PM
End of days 4 - If people wonder where ipv6 textual representation is define it's RFC 4291 and yes it was hard to find
 

« first day (1983 days earlier)      last day (1505 days later) »