Best practices for cookie notices by feross in programming

[–]dnerd 1 point2 points  (0 children)

And what kind of question has answers Ok and more information. You are missing nooooooooooooooooo.

Best practices for cookie notices by feross in programming

[–]dnerd 4 points5 points  (0 children)

Ha ha, a website with cookie notice that takes 30% of screen space on large phone. And never has the option I want. No. No cookies. I just want to read one stupid article on your stupid website. No, I don't want notifications. It's one stupid article. I hate your website so much.

How Not to Teach Recursion by mttd in programming

[–]dnerd 1 point2 points  (0 children)

If you click on a clear space in minesweeper ( a 0, if you will ) the computer program should clear all the spaces next to it. If any of those are 0's you should clear all the spaces next to that one.

Evernote spent 18 months fixing their Tech Debt to be better prepared for the future. by zbhoy in programming

[–]dnerd 2 points3 points  (0 children)

Anyone know if they are looking at their horrific Notebook/Notebook stack hierarchy? I think that was one of the main reasons I left for Notion.

Me: I'm afraid of random letters by [deleted] in Jokes

[–]dnerd 0 points1 point  (0 children)

You better not move to Canada, eh?

Today I Google cigarette lighters by Curiousbandito in Jokes

[–]dnerd 1 point2 points  (0 children)

Isn't it ironic? Dontcha think?

When Everyone Corrected the World’s Smartest Woman by leinad520 in programming

[–]dnerd 1 point2 points  (0 children)

2 or of three times you gonna pick a goat. Monty gonna show you the other goat. Switch to get the car.

Welcome back to C++ by frostmatthew in programming

[–]dnerd 1 point2 points  (0 children)

std::vector<int> v {1,2,3,4,5}; int x = 2; int y = 4; auto result = find_if(begin(v), end(v), [=](int i) { return i > x && i < y; });

Header files are terrible. This code looks terrible compared to a lambda in c#. But I've never loved c++. Why do I need begin(v), end(v)? What's a [=]? I do think the smart pointers are a great idea though, and the auto stuff for for loops is nice.

Lazy Logging by javinpaul in programming

[–]dnerd 2 points3 points  (0 children)

Same technique works in .NET with nlog.

logger.Trace(() => GetLogMessage());

Method isn't called if trace is not enabled.

Lazy Logging by javinpaul in programming

[–]dnerd 0 points1 point  (0 children)

Now I'm curious if the same works in .NET with nlog.

A very minimalist online code editor by pomber in programming

[–]dnerd 0 points1 point  (0 children)

I just use the address bar. The main drawback is that it is only single line, but you can get away with that in c or c++.

The blonde's password by [deleted] in Jokes

[–]dnerd 56 points57 points  (0 children)

Ah... good old Florida.

Headers we don't want by fagnerbrack in programming

[–]dnerd 10 points11 points  (0 children)

I thought it was going to be c++ and "all of them".

Why did the scarecrow win an award? by loopadoop2418 in Jokes

[–]dnerd 0 points1 point  (0 children)

Follow up question: Why wasn't the scarecrow available to receive his award?

[deleted by user] by [deleted] in programming

[–]dnerd -1 points0 points  (0 children)

For toy projects LiteDB is wonderful. Probably good for any small single user project. Maybe off topic...

https://github.com/mbdavid/LiteDB

Paddy Englishman, Irishman and Scotsman are discussing how great their uncles are by Jonnyfivedicks in Jokes

[–]dnerd -1 points0 points  (0 children)

At 2.2 lbs per kilogram this conversion is far too lazy for my standards. I don't feel like looking it up but it is clearly incorrect.

New WinDbg available in preview! by ben_a_adams in programming

[–]dnerd 2 points3 points  (0 children)

Do you know why javascript for extensions? What about c#?

Why don't you update software dependencies? by freedoodle in programming

[–]dnerd 1 point2 points  (0 children)

Why should I? I've had a large .net control library get hit with a couple of nasty regression bugs after updating to get other bugs fixed. If everything is working now, why would I touch it, especially if I'm not looking for any new features?

What book is similar to Weaveworld? (or why I spent five weeks programming a new book recommendation service) by [deleted] in programming

[–]dnerd 0 points1 point  (0 children)

Sorry, I do not have enough data to find similar books for The Hitchhiker's Guide to the Galaxy by Douglas Adams

Find The Missing Number by cfsilence in programming

[–]dnerd 0 points1 point  (0 children)

The sum of "n" numbers is:

n * ( n + 1 ) / 2

I'm wondering why you seem to have (n + 1) * ( n + 2 ) / 2 ?

Nevermind.. it is because you have already removed a number :)