« first day (2499 days earlier)      last day (2442 days later) » 

@rightfold lol today I discovered a 5 year old bug:
val hundredBeepers = for (y <- 0 to 10; x <- 0 to 10) yield (x, y)
 
Trump's reality TV show - the revolving door of white house
@fredoverflow 121?
 
@Telkitty exactly :)
 
@Telkitty You're late. Like, really really late
Unbelievable. He actually did bring the Middle East together. https://t.co/miP9MyVLsS
 
@xpCoin @nothings Bwahahaha. No.
(look at what he's replying to)
 
12:33 AM
Of course
 
12:53 AM
is it me or if that guy below shave a little and put a bit makeup, he will look pretty much like that lady above?
 
 
6 hours later…
Ell
6:43 AM
Haha
Yes
 
 
2 hours later…
8:20 AM
12
Q: How can we stop SO suggesting both C and C++ tags on questions?

Jonathan LefflerOne of the boring, recurring problems in the C and C++ (c and c++) tags is the questions that get tagged with both languages when only one is appropriate. This is annoying to the cognoscenti who frequent the tags; it is one of the routine tasks to castigate people (mildly) for dual-tagging and t...

upvotes needed :D
 
nwp
8:43 AM
@AnttiHaapala Heh, Q&A outpaced the lounge.
 
 
2 hours later…
nwp
10:15 AM
Someone should propose for constexpr.
 
10:53 AM
> When we go about using technology every single day, we don't realize that these programs were built by people who learned how to code. And if they can learn, so can anyone.
What a bold statement.
Does that work for all jobs?
> Okay so there are heart surgeons in the world, and they learnt how to heart surgeon, right... And if they can learn, so can anyone!
 
nwp
Programming tends to be much more forgiving when it comes to mistakes than surgeries.
 
My gf kept complaining about the noise my Model M makes so I ordered one of these: matias.ca/miniquietpro/pc
 
@nwp Okay, so why aren't there videos promoting, I don't know... electrical engineering?
HOLY FUCK Isaac Newton DEATH MASK?!
 
nwp
@fredoverflow I guess you can make more money teaching people programming because it is perceived as more relevant and interesting.
 
@fredoverflow Well, not all people can learn all things. Some people are just dumb and cannot possibly learn tasks more complex than some degree of complexity.
 
11:04 AM
@wilx I would argue that most people simply aren't interested in programming and will never be, and that's perfectly fine.
 
@fredoverflow That too.
 
11:32 AM
Oh, the Go fonts look really nice!
 
@fredoverflow That's kinda amazing.
on the importance of style
 
you need to work on your tabs ...
have a few more loops and if statements within each other you will be out of spaces very soon ...
 
12:11 PM
@Telkitty Tab width is just an editor option...
 
12:29 PM
Tabs are evil.
 
Well, at least you don't get discussions about how many tabs you should use to indent :)
 
12:56 PM
@fredoverflow 2.5 or bust
 
1:21 PM
3.0 for busty
 
1:39 PM
-1
Q: How to make the Is.Digit function work for system strings? (Testing for numeric string)

DoleI am trying to create a function that tests whether a given system string is an (integer) number. I have: bool is_digits(String^ a) { int b=a->System::String::Length; int c = 0; for (int i = 0; i < b; i++) { if (a[i].IsDigit(a[i])==1) //LINE 7 { ...

curse of the stray semi-colon
(also single letter variables ftl)
10k+ only now, OP deleted it...
 
 
2 hours later…
3:49 PM
@Borgleader I'd say there's a lot more wrong with that
It's the curse of stray interpunction in impotent boolean control flow superstition
 
this is what happens when you treat comparisons not as an expression, but as a magical syntactic sugar inside if
 
A THING of beauty is a joy forever:
Its loveliness increases; it will never
Pass into nothingness; but still will keep
A bower quiet for us, and a sleep
Full of sweet dreams, and health, and quiet breathing.
 
@milleniumbug That's a fair description. For obvious reasons, I prefer my qualification :)
 
@sehe fair enough
 
@milleniumbug But C (and C++) encourage this misunderstanding. The entire if/then/else should really be treated as a single expression, so there should be no semicolon before the else. if x then y else z;.
 
3:59 PM
Pascalish convention of "semicolons are a separator character" brings their own can of worms IMO
 
Of course, to go with that, if/then/else should also truly be an expression, basically like a clean, readable version of the ternary operator, so you could do things like a = if x then y else z;.
@milleniumbug Yes, it does--but sometimes I enjoy advocating for long- (and well-) lost causes... :-)
It's silly of course, but what else can I do to comfort myself after I'm foolish enough to read the news?
 
there's also If Expr Then ... Else ... End If convention in VB and like, where the problem of a dangling else just doesn't exist
and also avoids the above mentioned problem
 
@milleniumbug If you don't use statement terminators, you rarely have a problem with stray statement terminators.
 
4:18 PM
@sehe But what if c is something else than b or !b?
Oh wait.
I said that wrong.
Never mind.
@sehe wow, I didn't even notice the semicolons.
 
4:56 PM
@sehe I like that name
 
 
1 hour later…
6:25 PM
hi
 
sup
 
not much
 
been on a java course at work
don't like java so instead I've been doing some OpenGL stuff in C++ lol
 
courses at work are the worst
 
6:28 PM
yeah
 
 
1 hour later…
7:34 PM
@Makcheese So your name oughta be "Mafkees"
 
 
1 hour later…
8:37 PM
Warning: looking at the Eclipse IDE for even a few seconds can cause permanent eye damage.
6
 
@BartekBanachewicz Racist!
 
@wilx 9 days late
 
@sehe My excuse is I was on a vacation.
 
9:08 PM
Anybody working on anything cool?
 
nwp
9:21 PM
I started playing with my ECS again after getting clang 5.
No more tag dispatching, so much code deleted. Lots of fun.
 
What is an ECS?
 
nwp
Entity Component System.
if constexpr is super useful
 
So, I've always preferred inheritance over composition for metadata style structures. The reasoning is that the your function doesn't have to have a ton of arguments, and its easier to address them inside the function body. I think I'm a minority in this opinion.
channel.scope_settings.condenser.na_min vs channel.na_min (the inheritance approach I like)
Another weird thought is that it should be possibly to implement inheritance from an incomplete type
 
nwp
10:11 PM
This line looks like it has 2 more keywords than it should have.
using index_type = typelist::nth<index>; looks more reasonable to me
 
nwp
10:35 PM
It is a bit unfortunate that the clang plugin that Qt Creator uses is based on clang 3.9 and gets very confused with c++17 features.
 
10:48 PM
@nwp At least in my experience, using Qt Creator at all is rather unfortunate. It's right at the point that it's almost good--but every time I try to use it, I run into something or other that pretty much forces me to use something else.
 
nwp
I'll switch as soon as I find something better. And no, notepad is not better.
 
@nwp No, but at times I've given serious consideration to writing something new. At least from my viewpoint, it's less about doing things that are great than it is avoiding doing things that are utterly bone-headed. Unfortunately, none of the existing IDEs seems to have avoided (what look to me like) obvious mistakes.
 
11:31 PM
MSVC is pretty good, also CLion
 
everything's broken
we need a LoungeIDE
 
I'm down as long as we borrow MSVC's unique implementation of CFINAE (Compilation Failure Is Not An Error)
NERDTree on the front-end, and Node.js on the back-end
 
@Mikhail I tried Clion early on, and wasn't impressed, but I'll admit I haven't tried again recently. At the same time, the speed and responsiveness of other IDEs written in Java don't leave me so impressed that I'm immediately convinced that it's going to improve drastically any time soon either.
 
@JerryCoffin Frankly, what the heck do you want :-) . For example, MSVC+ReShaper provides effective code hinting and rudimentary static analysis (like spell checking, not using auto enough). All of which improve code, and doesn't cost anything.
 
@Mikhail What I'd like (or at least wouldn't complain about): editing/debugging/etc. much like VS, but with support for g++ and Clang for the compilation, and (supported) native execution under Linux.
 
11:45 PM
CLion
Also suck it up and switch to Windows, trasmeta ain't going to save us
 
@Mikhail I've used Windows for years. If Microsoft could be convinced to do even a little less to ruin it, I'd be happy to stay basically permanently. Unfortunately, they seem intent on driving me away.
 
Its true they are scum bags, and will lead to a dystopian future when individuality is replaced with social submission. Where mankind will form an amalgamated super organism working for the interests of online advertisers and the Chinese and NSA. But, dude, 2017 ain't going to be the Year of the Linux Desktop.
 
the trick is to put linux on a laptop
8
 

« first day (2499 days earlier)      last day (2442 days later) »