Captain Foo posted:fsucc() that's the forbidden function
|
|
![]() |
|
![]()
|
# ? Feb 13, 2025 09:51 |
|
Ploft-shell crab posted:ah gently caress https://lwn.net/Articles/752063/ https://wiki.postgresql.org/wiki/Fsync_Errors https://www.youtube.com/watch?v=1VWIGBQLtxo pseudorandom name fucked around with this message at 06:09 on Jul 28, 2019 |
![]() |
|
Old MacDonald had a server farmCaptain Foo posted:EIEIO And on that farm he had a database Captain Foo posted:EIEIO With an fsync here and an fsync there here an fsync, there an fsync everywhere an fsync Old MacDonald HAD a server farm Captain Foo posted:EIEIO
|
![]() |
|
pseudorandom name posted:https://lwn.net/Articles/752063/ All the Postgres talks at Fosdem this year were excellent.
|
![]() |
|
pseudorandom posted:Old MacDonald had a server farm lol Also I was gonna say that I bet lwn had something on it but y'all on it
|
![]() |
|
Bloody posted:lol Linux is so bad And OpenBSD, NetBSD, and it appears Win32 just doesn't bother providing a single API so also poop. It is a rather odd usage of the API, writing in one process and calling fsync() in another.
|
![]() |
|
pseudorandom name posted:https://lwn.net/Articles/752063/ ![]()
|
![]() |
|
Plorkyeran posted:reporting failures when closing a file is pretty pointless nah yeah it makes sense to me now when more sober just that my mental model of how the FILE error flag worked was just different file systems are hard
|
![]() |
|
Captain Foo posted:fsucc() how many layers of application code are you on?
|
![]() |
|
ctps: PowerPoint can verify my licence because my PC is hosed, so I am trying this reveal.js thing everyone seems to like. It uh works, but writing in it so far has been much more time consuming than using PowerPoint would be.
|
![]() |
|
matti posted:nah yeah it makes sense to me now when more sober though id still prefer itd be set and user explicitly testing ferror() if they want to recover from an open and/or close failure since thatd be more symmetric to how rest of the api works
|
![]() |
|
Xarn posted:ctps: PowerPoint can verify my licence because my PC is hosed, so I am trying this reveal.js thing everyone seems to like.
|
![]() |
|
when you fclose but the kernel keeps syncin'...
|
![]() |
|
CRIP EATIN BREAD posted:when you fclose but the kernel keeps syncin'...
|
![]() |
|
CRIP EATIN BREAD posted:when you fclose but the kernel keeps syncin'...
|
![]() |
|
CRIP EATIN BREAD posted:when you fclose but the kernel keeps syncin'... mods please
|
![]() |
|
cjs: Without being a huge throbbing dick about it, how do I tell junior dev to "just loving google it" when I get slack messages like "how do I disable cors in .net core for local development??"
|
![]() |
|
in slack I've handed over an LMGTFY link to qualified success ("ha, yes, i should have googled that, huh"), but I'm known to be goony around people and i knew it was a ribbing he'd comprehend
|
![]() |
|
Finster Dexter posted:cjs: Without being a huge throbbing dick about it, how do I tell junior dev to "just loving google it" when I get slack messages like "how do I disable cors in .net core for local development??" "you should try searching online before you ask me for help. i don't want to be a bottleneck for you and you're gonna find that you're constantly looking stuff up for the rest of your career. if you get stuck or think the solution you find isn't right or you just want to go over what you coded, hit me up"
|
![]() |
|
Finster Dexter posted:cjs: Without being a huge throbbing dick about it, how do I tell junior dev to "just loving google it" when I get slack messages like "how do I disable cors in .net core for local development??" find an article or a doc page or something and send it to them with the message "found this on google"
|
![]() |
|
Ciaphas posted:in slack I've handed over an LMGTFY link to qualified success ("ha, yes, i should have googled that, huh"), but I'm known to be goony around people and i knew it was a ribbing he'd comprehend That was my first instinct but I was worried that would be considered rude.
|
![]() |
|
e: oops
|
![]() |
|
Cold on a Cob posted:"you should try searching online before you ask me for help. i don't want to be a bottleneck for you and you're gonna find that you're constantly looking stuff up for the rest of your career. if you get stuck or think the solution you find isn't right or you just want to go over what you coded, hit me up" aardvaard posted:find an article or a doc page or something and send it to him with the message "found this on google" ok, gonna combine these
|
![]() |
|
Cold on a Cob posted:"you should try searching online before you ask me for help. i don't want to be a bottleneck for you and you're gonna find that you're constantly looking stuff up for the rest of your career. if you get stuck or think the solution you find isn't right or you just want to go over what you coded, hit me up" the only thing i might add is to give the junior an out like "i understand you wouldn't want to just google proprietary company info, but this is a common problem that a lot of web dev face and it's okay to search external resources for a generic question like this"
|
![]() |
|
"what have you tried so far?" can prompt a search ("nothing" feels like the wrong answer to even the most clueless) and/or a fruitful discussion about why attempted solutions didn’t work ("ah yeah, Microsoft docs haven’t clearly marked a key difference between .net 5 and .net core for workgroups, make sure you double-check the list of affected products")
|
![]() |
|
pokeyman posted:"what have you tried so far?" can prompt a search ("nothing" feels like the wrong answer to even the most clueless) and/or a fruitful discussion about why attempted solutions didn’t work ("ah yeah, Microsoft docs haven’t clearly marked a key difference between .net 5 and .net core for workgroups, make sure you double-check the list of affected products") it's this, or even the direct "what have you tried googling?". get all Socratic method especially if you're supposed to be teaching or mentoring linking lmgtfy is an rear end in a top hat move
|
![]() |
|
Finster Dexter posted:cjs: Without being a huge throbbing dick about it, how do I tell junior dev to "just loving google it" when I get slack messages like "how do I disable cors in .net core for local development??" the problem is the googled answer will be wrong because the way vs handles https certs is loving stupid. it generates a localhost cert which is useless because of cors and other browser security things. The best solution is to generate a proper fqdn cert for your computer (from your local CA) and then configure vs to use that. then you dont need to disable cors or do other dumb poo poo that you might forget to fix in production
|
![]() |
|
for this specific thing ask him why he wants to disable cors and then have him consider what alternatives there might be to disabling cors. Then you can figure out which of those options is the best and why the couple minutes of setup to make that happen is worth removing a potential security issue in your code and having a more accurate development environment. also keep in mind juniors are idiots and dont know anything including how to ask questions so its entirely possible he knows something smells wrong about disabling cors and hes looking for guidance on if its the right thing to do.
|
![]() |
|
Finster Dexter posted:cjs: Without being a huge throbbing dick about it, how do I tell junior dev to "just loving google it" when I get slack messages like "how do I disable cors in .net core for local development??" "I don't know offhand. Try Google."
|
![]() |
|
pair programming sessions are if nothing else good for disabusing juniors of the notion that you're a senior because you have all the apis memorized also shows effective googling, like use the official docs not some medium blogspam, and you'll probably get some "wow, i didn't know the ide could do that" comments people talk about benefits to code quality but basic tricks and shortcuts are undershared, much like bum wiping techniques
|
![]() |
|
some of the juniors were afraid and used to think they're wasting my time by asking a lot of questions, especially when i stop what im doing and come over and walk them through the process of figuring out what steps need to be taken to solve/improve an issue. eventually i beat it into them that "this takes up a half hour now but will save us all ten hours later" and "i'd rather you ask up front so I'm not refactoring your bullshit later". now they're catching on with some of the best practices i like to instill and they're starting to grow into better devs. every once and awhile I hear "don't do it like that, CRIP EATIN BREAD showed me this thing and it will work better if you approach it this way" and it's a calming wave sweeps over my body
|
![]() |
|
Ciaphas posted:in slack I've handed over an LMGTFY link to qualified success ("ha, yes, i should have googled that, huh"), but I'm known to be goony around people and i knew it was a ribbing he'd comprehend my lead once regularly asked me for poo poo that i didn't know but would find with just a simple google query and one time after he thanked me i told him "np, let me know if you need me to google anything else" and he laughed and stopped but well he was a super cool and chill guy and gentle mockery is something that came naturally (both ways) when interacting with him
|
![]() |
|
yeah good points. you definitely don't want to shut the door completely on them asking you for help, and teaching general problem solving skills, debugging skills, etc can really help a jr dev
|
![]() |
|
also yeah know your audience. don't pick on jr devs ![]()
|
![]() |
|
Zlodo posted:my lead once regularly asked me for poo poo that i didn't know but would find with just a simple google query and one time after he thanked me i told him "np, let me know if you need me to google anything else" and he laughed and stopped yeah, this was the context--a guy who's clearly smart and also used to taking/receiving gentle ribbing, who just needed a prod in the rear end of independence other people i didn't know well, and I were too busy to personally help? I suppose... I suppose I'd say something like "Don't think I know, I'd just have to google. Sorry" Gets me out of it and gently informs them the web can help while giving the impression you think they're just trying to skip said annoying web search (which is fair enough, some search terms are a goddamn pain)
|
![]() |
|
Cold on a Cob posted:also yeah know your audience. don't pick on jr devs a bunch of juniors I’ve been running into lately could use some picking on ![]()
|
![]() |
|
It's a difficult balance to strike. I honestly don't want my junior devs re-inventing the wheel via google every time they encounter an issue since we've probably got a bunch of common functions that solve their problem already, or at least a preferred way of doing things. Half the time the answer is probably to go and google it but it's a good thing for them to ask first.
|
![]() |
|
CRIP EATIN BREAD posted:some of the juniors were afraid and used to think they're wasting my time by asking a lot of questions, especially when i stop what im doing and come over and walk them through the process of figuring out what steps need to be taken to solve/improve an issue. eventually i beat it into them that "this takes up a half hour now but will save us all ten hours later" and "i'd rather you ask up front so I'm not refactoring your bullshit later". yeah you dont want them to think "oh, every time I ask my senior a question he says to google it" cause then you'll just get a snack overflow dev
|
![]() |
|
pokeyman posted:"what have you tried so far?" can prompt a search ("nothing" feels like the wrong answer to even the most clueless) and/or a fruitful discussion about why attempted solutions didn’t work ("ah yeah, Microsoft docs haven’t clearly marked a key difference between .net 5 and .net core for workgroups, make sure you double-check the list of affected products") gonadic io posted:it's this, or even the direct "what have you tried googling?". get all Socratic method especially if you're supposed to be teaching or mentoring vouching for these
|
![]() |
|
![]()
|
# ? Feb 13, 2025 09:51 |
|
“idk, i just google that stuff” has the additional benefit of making it difficult to be condescending because you’re specifically highlighting your own ignorance also having juniors spend some time reinventing stuff wrong isn’t the worst thing in the world if your review process and mentoring culture are good. as long as they don’t “waste” too much time it’s one of the best ways to learn, and it’s not like you should be expecting too much productivity out of them in the first place.
|
![]() |