« first day (3999 days earlier)      last day (932 days later) » 

5:02 AM
Progress of the tiny bridge construction ...
 
 
2 hours later…
7:26 AM
It's convenient that you only need the length of a plank there
 
The beams are 6 or 6+ metres.
But they look short from this angle.
Reminds me that I have drone pictures. They need to be processed ...
 
true I thought they were like 3m
what will you cover the wood with?
 
7:41 AM
With more hardwood.
50mm x 200mm x 3 metres long ones.
 
but wood is slippery when it's wet
 
Good reminder. I was thinking about rough saw timber, but not sure that will provide enough resistance when wet.
Also the area has frost in winter.
 
The usual solution is this:
Not sure how good it is against frost, but it works pretty well against wet wood
 
@Morwenn Is the wood slippery from being wet or from algae growing on it when wet?
 
@TelKitty It often seems to become more slippery with age, so it's probably micro-organisms
 
8:01 AM
We fenced off the bridge construction area with chicken wires because wildlife LOOOVE to poop around the area - newly mowed lawn, poop on it. Freshly laid concrete, poop on it. Left tools and building materials next to the site, little bastards pooped on them too!!
 
haha
 
lmao 💩
 
 
2 hours later…
nwp
10:03 AM
Why is [[unreachable]] not standard?
Inb4 because reaching consensus on what it does is unreachable
 
[std::]unreachable() will probably be in C23 and C++23
They made it a function so that it could also be used in expressions
 
nwp
(1, 2, f(), std::unreachable(), g());
fancy
 
 
1 hour later…
11:21 AM
code?
Oh my, so code formatting does work 😔
 
nwp
11:44 AM
It just doesn't work on multiline messages.
 
@Lapys NPC: Congratulations, you have learned one more skills, are you ready for your next challenge?
 
```
Next Challenge: Multi-line code
```
RIP 💀
Could've sworn there's a way to do it
𝙱𝚎𝚌𝚊𝚞𝚜𝚎 𝚍𝚘𝚒𝚗𝚐 𝚝𝚑𝚒𝚜 𝚊𝚒𝚗'𝚝 𝚛𝚒𝚐𝚑𝚝
 
nwp
You press CTRL+K. Obviously. "K" for "Kode".
 
Kido?
 
@Morwenn probably would work fine against wet frost insofar as it wasn't too thick. Anywhere we get thick frost we just don't use wood or we texture it here.
Speaking of frost... we're starting to see frost warnings at higher elevations
Lol... we have freeze watches next to red flag warnings...
 
12:14 PM
@nwp Alright, I give up. Been spamming Ctrl + K for awhile now, and it hasn't worked
Sure, the text editor pops up but sending the message doesn't work 😕
 
@Lapys type in multiple lines... then hit cntl+k
void foo(){
   bar();
}
 
Still not working...
 
what even is the right thing to do with shortcuts on the web. More "native" feeling would probably be something like ctrl+k on linux/windows and command+k on macos. But it's control+k on macos too
but doing os queries on web-sites seems like an anti-pattern
 
Probably don't have enough rep... /s 🧂
@PeterT How so? Wouldn't that make things somewhat more consistent? "Esc" to tab away/ close task, "F11" to toggle fullscreen, e.t.c...
 
well I guess my boomer brain still thinks of it like "web-sites", not like "web-apps", so my mind is still stuck in the "it should just be a platform independent document". But I guess that should've gone out the window a long time ago
 
12:22 PM
keyboard shortcuts on the web are an absolute mess. Web outlook decided to hijack cntl/cmd+R for some reason
 
https://chat.stackoverflow.com/transcript/message/53112929#53112929
Ah, that's understandable.. JavaScript is no longer a web-scripting language, it's more of just a general scripting language
With mobile apps, IoT and such
 
strictly speaking javascript isn't a web scripting language, it's a firefox scripting language. v8 is chrome/edge's version, jscript is the IE/windows version etc.
the language is properly called ECMAScript
 
 
1 hour later…
nwp
1:34 PM
@Lapys All it does is add 4 spaces in front of every line which is then rendered as multi-line code. You should be able to see the 4 spaces added and removed when you press CTRL+K.
 
Like this?

void function() {
}()
(shoot me...) 😭
hello
world
 
nwp
🎉
 
 
2 hours later…
nwp
3:13 PM
I'm supposed to write an ad for a student who is supposed to do some software development. I want to ask for basic knowledge of C++ but be a bit more precise. So far I have that they should know the difference between char * and std::string and what undefined behavior is. What else would be good things to gauge if someone has a basic understanding of C++?
I kinda want to write "You should know what T *t = new T(); is a problem", but I can't phrase it right. I keep thinking that telling them they are not allowed to use new or malloc is easy and not worth writing on the ad, but the same applies to undefined behavior.
Maybe I should say they should know what std::move is for.
Then again I don't have a single instance of std::move in the project they are supposed to work on.
 
nwp
3:29 PM
Maybe I should write lambda instead, those are actually used.
 
> Can you std::move it std::move it?
 
nwp
"Should know what [](){}(); does"
"Should know the difference between [str](){} and [&str](){}"
It's not a tragedy if they don't know, you just tell them and it's nothing complicated, but I think it's basic enough that asking people to know that already is fine.
 
> Applicants should submit basic CV and the solution to this problem written in idiomatic C++14 or later.
> Applicants will be expected to withstand code review of their submission
 
nwp
I already have that one.
 
Frankly, I think you'll be lucky to find even one candidate that meets those requirements.
 
3:33 PM
Also correct
Finding people that can code C++ properly as students is asking for a miracle
 
nwp
And here I thought I was setting the bar very low.
 
Well low is "Has a recommendation letter they can code in C++ from a professor"
You'll still need to reteach them everything
 
nwp
Sure, but that's also useless.
 
it increases the chances they understand what a pointer is
 
nwp
I'm willing to teach them, but I do want them to know what a pointer is. Maybe I should ask about that instead of the lambda.
"Should know the difference between *pointer and &pointer"
The thing is if they are writing software in C# all day they don't know but would be suitable.
I haven't figured out how to say "You made software before" in a proper way.
"Looking for someone who is smart"
 
3:38 PM
At least here in the US it would be an uphill battle. Advanced Placement has switched the exam to Java
and a lot of intro courses use python (which is fine)
I know at my old uni they don't get into C or C++ until second semester sophomore year.
 
nwp
I learned 2 weeks of Java and 2 weeks of C. Plus like a day of Prolog I think.
 
I learned to pick up languages quickly
I think F# took me a week or two?
I haven't really spent the time with rust yet
 
nwp
I think "Can make software" is a hard requirement. If you're struggling to write your first loop it doesn't make sense to take the job.
"Has written a program with over 1000 lines of code before" might be a decent way to express that.
 
> Applicant must provide link to their public github
I wouldn't say 1000 lines... but that's just me
I would require seeing a project
 
nwp
I seriously considered asking for a github link, but I can see people just messing around making programs and never considering uploading it anywhere.
 
3:45 PM
Whereas I see a github (although optional) as a massive plus for a candidate
because they should be familiar with it
 
nwp
For a software developer sure, for a student it's ok if they never used git before.
Asking for a project is tricky. The hobby projects will be buggy and I feel like I still don't have a private project I'd be willing to show off despite some of them being on github.
But it goes into the right direction. Basically I just want to say they should have made a program before.
But more than the hello world program they had to do in Java class.
 
oh I'm not saying it's required
just a massive plus if they have one
 
nwp
"Should know what a header guard is"
I'll even accept "Add #pragma once to the top of all headers, dunno why" as a correct answer.
Though maybe everything I'm asking is way too C++-specific.
"Worked on software more complicated than a hello world program", though I think the Java course alone fulfills that requirement, so it's not useful.
This is more difficult than I expected.
"Should agree that [my opinion] is correct"
I just don't know what opinion I should use there.
"Worked on own software project that went beyond hello world"
I think this is good in that the C# developer should pass.
 
nwp
4:54 PM
I ended up with "Need to have a basic understanding of C++ and have made your own software project".
No more code in the ad.
 
 
3 hours later…
7:42 PM
It's a use after free/ double delete, the unique_ptr still believes it's live even though it's holding onto a dead value. That's classic undefined behavior. While your code may not directly trigger nasal demons it is encouraging them. If any exception happens between the delete and the call to release that's going to cause UB if the unique_ptr destructor gets called. To fix your code you directly need to release into foo. Which hands ownership to the deleting function. But unique_ptr is a strict ownership semantics. — Mgetz 20 secs ago
Oh god..
 
8:06 PM
I think that answerer is trolling at this point
 
 
2 hours later…
9:56 PM
@Mgetz also OPs original question was how to correctly implement the functionality which is answered elsewhere. So closed.
@nwp ugg, its hard to get much beyond that.
@nwp 50% of applicants didn't know what a smart pointer is, some fraction of them straight up argued with me as to utility of them. And these dudes work at places like Intel :-/
 
Interesting.. 🤔
('d also argue about smart pointers, but certainly won't complain about their utility)
 
10:16 PM
@Mikhail honestly if you need to ensure lifetime there are better ways, If the API you're calling deletes something while you still need it you're probably using it wrong
 

« first day (3999 days earlier)      last day (932 days later) »