Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Failed Imagineer
Sep 22, 2018
https://twitter.com/AyoCaesar/status/1439915273583222784?s=19

No, to the contrary

Adbot
ADBOT LOVES YOU

Jaeluni Asjil
Apr 18, 2018

Sorry I thought you were a landlord when I gave you your old avatar!

keep punching joe posted:

Boris Johnson: "The Corbynistas demanded a four day week, but with my government we want to go one better, with a three day week!"

And don't forget to remind people that the original 'three day week' was under a TORY government. A lot of the gammonati claim it was under labour and I have had to put one or two right on this.

(Never mind whether the actions of the preceding Labour govt had anything to do with the conditions arising - in this game who is in power at the time something happens is the 'ownership'.)

josh04
Oct 19, 2008


"THE FLASH IS THE REASON
TO RACE TO THE THEATRES"

This title contains sponsored content.

I couldn't remember where "no, to the contrary" came from so I dug it up:

https://twitter.com/AdamBienkov/status/1039496424206094336

Can only assume we're still not thinking on a long-term enough basis.

Doctor_Fruitbat
Jun 2, 2013


Lol, I'd love a three day week. I don't care if it's because society is collapsing around us, let chaos reign fuckers.

Comrade Fakename
Feb 13, 2012


serious gaylord posted:

https://twitter.com/OwenJones84/status/1439911810380017669

At this point the party looking the other way on this shite is now obviously approval.

Duffield knows shes gone at the next election so shes also maneuvering herself into the post parliament world too.

Not a single question to her bringing that up either.

Even more of this poo poo:

https://twitter.com/SadSonya4/status/1439911768940322824

Got to get your silver linings where you can: it was refreshing to hear Duffield taken to task on this on the Today Programme of all places.

keep punching joe
Jan 22, 2006

Die Satan!
boris johnson no surrender, three day week and... bring back being allowed to call gays benders.

Bobby Deluxe
May 9, 2004

Antigravitas posted:

You can still do that. All you have to do is to not have 20kB of CSS and 5MB of javascript and 2MB of fonts and 20MB of 300dpi high-res images fit into your header, all to display three paragraphs of text.
I was reading an article years ago about how end users subconsciously expect the delay now, and are suspicious of sites that come up too quickly.

I used to hand code HTML, and there was something very satisfying about getting a nice clean result that did exactly what it should. The trouble is most modern sites are designed in layout programs that insert about twenty nested divisions, each with its own script to calculate and insert the width instead of just using EN measurements. Or the amount of sites that tell the browser to pretend to be X version of Internet Explorer to get around a layout issue because the code hasn't been changed since 2004.

The other half of the problem is that most of the code used by browsers is full of shims to support old common workarounds instead of being strict and insisting that designers code their drat sites properly instead of copy / pasting whatever code they find that seems to do something similar to what they need.

An example of this is a C# course I downloaded where one of the first exercises was a terminal program that would guess a number between 1 and 100. Except half the code was dealing with the fact that apparently it can't count properly so you have to get it to -1 except under certain circumstances.

And I was watching this absolutely baffled as to why it's my responsibility to put this fix into my code every single time, until I realised probably every piece of code in the world has had to insert this, and if a bunch of assemblers 'fixed' it then pretty much every piece of code in existence would stop working. It's fundamentally wrong, but every single programmer is used to it working this way.

Most of the bloat in websites and browsers is probably just that - a bunch of scripts and workarounds checking with each other to have an end result that looks right, instead of doing it right in the first place.

Maybe this is just the autism talking, but it's absolutely maddening interacting with 90% of the world because I see these errors built on errors and I just want to take them apart and rebuild them properly from scratch, but then people get pissy because they're used to using it that way, i.e. wrong.

Failed Imagineer
Sep 22, 2018

keep punching joe posted:

boris johnson no surrender, three day week and... bring back being allowed to call gays benders.

Always thought "bender" was one of the more benign-sounding ones, as non-hetero people literally are bending the concept of heteronormative sexuality, or something. But I'm sure it has some awful etymology anyway, and obviously it's the intent that matters, and also it sounds less repugnant to my ear because I haven't had people screaming it in my face every day of my life.

Bobby Deluxe
May 9, 2004

L. G. B. T. Long ago, the four nations lived together in harmony. Then, everything changed when the transphobic Nation attacked.

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.

Bobby Deluxe posted:

I was reading an article years ago about how end users subconsciously expect the delay now, and are suspicious of sites that come up too quickly.

I used to hand code HTML, and there was something very satisfying about getting a nice clean result that did exactly what it should. The trouble is most modern sites are designed in layout programs that insert about twenty nested divisions, each with its own script to calculate and insert the width instead of just using EN measurements. Or the amount of sites that tell the browser to pretend to be X version of Internet Explorer to get around a layout issue because the code hasn't been changed since 2004.

The other half of the problem is that most of the code used by browsers is full of shims to support old common workarounds instead of being strict and insisting that designers code their drat sites properly instead of copy / pasting whatever code they find that seems to do something similar to what they need.

An example of this is a C# course I downloaded where one of the first exercises was a terminal program that would guess a number between 1 and 100. Except half the code was dealing with the fact that apparently it can't count properly so you have to get it to -1 except under certain circumstances.

And I was watching this absolutely baffled as to why it's my responsibility to put this fix into my code every single time, until I realised probably every piece of code in the world has had to insert this, and if a bunch of assemblers 'fixed' it then pretty much every piece of code in existence would stop working. It's fundamentally wrong, but every single programmer is used to it working this way.

Most of the bloat in websites and browsers is probably just that - a bunch of scripts and workarounds checking with each other to have an end result that looks right, instead of doing it right in the first place.

Maybe this is just the autism talking, but it's absolutely maddening interacting with 90% of the world because I see these errors built on errors and I just want to take them apart and rebuild them properly from scratch, but then people get pissy because they're used to using it that way, i.e. wrong.

I still handcode HTML a lot of the time, when I do that stuff, never liked the results that visual editors spat out. I don't get to do it a lot nowadays, miss it actually. I do recognize that a lot of it is a bunch of scripts tied together and with workarounds here and there.

Dabir
Nov 10, 2012

Bobby Deluxe posted:

L. G. B. T. Long ago, the four nations lived together in harmony. Then, everything changed when the transphobic Nation attacked.

B for effort but that does kind of imply the other nations are also kinds of bigotry and since when have they not lived in harmony?

Mega Comrade
Apr 22, 2004

Listen buddy, we all got problems!

Bobby Deluxe posted:

An example of this is a C# course I downloaded where one of the first exercises was a terminal program that would guess a number between 1 and 100. Except half the code was dealing with the fact that apparently it can't count properly so you have to get it to -1 except under certain circumstances.

And I was watching this absolutely baffled as to why it's my responsibility to put this fix into my code every single time, until I realised probably every piece of code in the world has had to insert this, and if a bunch of assemblers 'fixed' it then pretty much every piece of code in existence would stop working. It's fundamentally wrong, but every single programmer is used to it working this way.

...I can't tell if you're trolling or not

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


Bobby Deluxe posted:

An example of this is a C# course I downloaded where one of the first exercises was a terminal program that would guess a number between 1 and 100. Except half the code was dealing with the fact that apparently it can't count properly so you have to get it to -1 except under certain circumstances.

And I was watching this absolutely baffled as to why it's my responsibility to put this fix into my code every single time, until I realised probably every piece of code in the world has had to insert this, and if a bunch of assemblers 'fixed' it then pretty much every piece of code in existence would stop working. It's fundamentally wrong, but every single programmer is used to it working this way.

I umm, what? Is that about zero-indexing or something? I've written some amount of C# and can't think of what you're referring to.

I mean sure websites are a mess but most compiled languages are a lot better about things, some vestiges excepted *cough*c++ textual includes and templates*cough*

Comrade Fakename
Feb 13, 2012


Bobby Deluxe posted:

L. G. B. T. Long ago, the four nations lived together in harmony. Then, everything changed when the transphobic Nation attacked.

I recently watched through Avatar (and Korra, which was surprisingly right-wing), and it is unintentionally hilarious every time they say "bender". My favourite was when a girl went to a fortune-teller to find out about her future husband and was told "you will marry a powerful bender". I think I can already see cracks in that relationship.

blunt
Jul 7, 2005

Legacy support in js/css is a legit killer still. For example I can say from first hand experience that there's a large (hundreds of millions of £ turnover) UK web based retailer that still gets about 9% of their orders from devices running Internet Explorer 11, which is way to much revenue to give up on by not supporting.

Brendan Rodgers
Jun 11, 2014




Mega Comrade posted:

...I can't tell if you're trolling or not

Hey there are languages that kinda count from 1, but yeah I know what you mean.

feedmegin
Jul 30, 2008

Failed Imagineer posted:

Always thought "bender" was one of the more benign-sounding ones, as non-hetero people literally are bending the concept of heteronormative sexuality, or something. But I'm sure it has some awful etymology anyway, and obviously it's the intent that matters, and also it sounds less repugnant to my ear because I haven't had people screaming it in my face every day of my life.

I suspect given its age its more like 'bent copper'. Someone broken or corrupt. The people using it aren't coming there from lgbt theory kindafing.

Beefeater1980
Sep 12, 2008

My God, it's full of Horatios!






“So bent he can’t lie straight in bed” is a phrase my nan used for the local used car dealer, who was not as far as I know gay.

Failed Imagineer
Sep 22, 2018

feedmegin posted:

I suspect given its age its more like 'bent copper'. Someone broken or corrupt. The people using it aren't coming there from lgbt theory kindafing.

Oh yeah for sure, just that it's kinda been recontextualised by more modern concepts of "bending" and fluidity. Still, would strongly not recommend anyone to use these words unless they are supervised by a certified LGBT adult at all times

Debuffed
Dec 19, 2003
I never post
Hi all,

Anyone got any advice / experience dealing with joint / sports injuries on the NHS or privately?

Unfortunately I think I have knackered my shoulder doing weightlifting about a month ago. I went too low on a weighted dip and something went twang. For a few days after that I had a nasty burning sensation in the front of my shoulder, painful enough to take my breath away at times, which came and went depending on what I was doing (just moving my arm walking or washing up was enough to make it burn)

I rested it for 10 days and the burning pain had basically gone in under a week, once it was feeling better I tried a few sets of bench press and that caused it to flare up again, although nowhere near as painfully as after the initial injury. Unfortunately I think I may have done some real damage, as since the injury the joint pops and clicks and grinds when I move around, in ways it never used to. It also feels somewhat weakened. I do seem to have full motion in the joint though, and it doesn't really hurt if I don't do things that irritate it.

I've read about rotator cuff tears and labrum tears and am now quite worried. I have been doing recommended shoulder rehab exercises such as band pull aparts, dislocates, rotations and dead hangs but I have no form of medical diagnosis so am flying completely blind!

US centric advice on the internet seems to be "Go to a doctor ASAP, the shoulder is complicated so you will need an imaging scan such as Ultrasound or MRI to see what's wrong, followed by an appropriate treatment plan such as sports physio or as a last resort surgery. Treatment such as physio should be started sooner rather than later or scar tissue build up can be a problem"

That's great but I don't think I'm going to get that on the NHS ASAP or possibly I won't get it on the NHS at all! If I go to my GP and tell them "it hurts when I do this" they might just tell me "don't do that", if I insist that I want it examined as not being able to lift weights is affecting my mental health (true, I've found it very good for my mental health), then I suspect they will give me an orthopaedic referral but surely it's going to be a wait of many, many months which is no good if early treatment can avoid problems later on. I've also read that NHS physiotherapists aren't really the best choice for sports injuries - sports physio would be better

I could maybe go private but I'd probably have to take out a loan / crack into a credit card to afford it, also I have no idea how to go about it or even if that's the best choice, having never pursued private healthcare before. Would I just contact a Nuffield orthopaedic consultant or something and pay to see them? Then I'd also have to pay for imaging, follow up appointments, etc etc. Or could I just pay for a private MRI or something then take the MRI results to a sports physio, thus skipping a bunch of the costs for consultant appointments and follow ups?

Or maybe I should just try the NHS and they'll be better than I think! Or maybe it'll just get better on its own! I really don't know the best way to proceed, so I'd really appreciate any advice or personal experiences with this sort of thing, thank you everyone :)

Antigravitas
Dec 8, 2019

Die Rettung fuer die Landwirte:

Bobby Deluxe posted:


Maybe this is just the autism talking, but it's absolutely maddening interacting with 90% of the world because I see these errors built on errors and I just want to take them apart and rebuild them properly from scratch, but then people get pissy because they're used to using it that way, i.e. wrong.

No, that's just computer toucher brain. It's also a trap. Most code is indeed handling all the pesky edge cases that appear when code touches the real world, and that's fine.

My beef is specifically with web devs. The vast majority of the web consists of some text with images and maybe a few video files. The vast majority of data transferred and cpu cycles spent does not improve the experience of the user and is usually not even visible (except in ads).

120 separate requests to a dozen disparate domains and 10 seconds load time on a high-latency link to display a few headlines with images and a two-sentence lead? Get the gently caress out.

Aphex-
Jan 29, 2006

Dinosaur Gum

buffeh posted:

Physio stuff

Speaking from experience with a knee issue, the NHS do just get you back to a tolerable state but they don't take into account that you might want to use that joint for more than walking/moving. I don't blame them because they're severely underfunded but I eventually went to a couple of different sports physios. They were only like £30 a pop and I actually only had to go to them a handful of times before my issue was resolved, and it was a lot more straightforward than I anticipated. At the same time I did also get an MRI booked and done on the NHS, just had to wait a few months but turns out there wasn't anything inside that was an issue, just a case of lots of regular icing until the burning went away, and stretches, foam rolling and strengthening exercises. If you find a decent sports physio, it's 100% worth it.

Mega Comrade
Apr 22, 2004

Listen buddy, we all got problems!

buffeh posted:

Physio question

A close friend of mine is a physio and he deals with gym injuries all the time. The NHS will definitely treat you, the issue is the wait times which are completely dependent on where you live. Personally if i was in your situation I'd start with the NHS then go private if it looked like I was in for a long long wait.

Brendan Rodgers posted:

Hey there are languages that kinda count from 1, but yeah I know what you mean.

Are any of them regarded as 'good'. I suppose fortran was in its day.
I totally get why most people look at zero-based indexing and think it makes no sense, but the post suggests they know at least a little programming, hence the trolling question.

Mega Comrade fucked around with this message at 14:39 on Sep 20, 2021

Brendan Rodgers
Jun 11, 2014




It's probably faster to self-refer to the physio rather than getting through the jammed up GP:

https://www.nhs.uk/service-search/other-services/Physiotherapy/LocationSearch/725

therattle
Jul 24, 2007
Soiled Meat

josh04 posted:

I couldn't remember where "no, to the contrary" came from so I dug it up:

https://twitter.com/AdamBienkov/status/1039496424206094336

Can only assume we're still not thinking on a long-term enough basis.

Every single one of those concerns has turned out to be valid. Remarkable. I wonder if anyone responsible for drafting it has been asked to comment.

Borrovan
Aug 15, 2013

IT IS ME.
🧑‍💼
I AM THERESA MAY


Unorthodox view but imo do not trust anything a non-specialist doctor has to say about sports injuries, because generally they'll just say "stop doing sports", which is usually terrible advice (shout out to my excellent GP though whose priority is always getting me straight back into the gym on account of my terminal sadbrains). Haven't seen you post about it in YLLS - no doctors about that I know of, but a whole bunch of mostly smart people who've collectively suffered every lifting related injury you can get, you might get some good advice there (the advice is usually "keep training if you can, at lower intensity if you must, it'll get better").

e: yes that was an unironic "doctors, pfft, talk to these internet strangers instead" post, fite me

Borrovan fucked around with this message at 13:59 on Sep 20, 2021

Strom Cuzewon
Jul 1, 2010

Comrade Fakename posted:

I recently watched through Avatar (and Korra, which was surprisingly right-wing), and it is unintentionally hilarious every time they say "bender". My favourite was when a girl went to a fortune-teller to find out about her future husband and was told "you will marry a powerful bender". I think I can already see cracks in that relationship.

I'd call it powerfully centrist rather than right-wing. Yeah, the baddies are socialist revolutionaries and anarchists, but also a theocratic monarchy and fascists (with mechs). Politically I'd say its no better or worse than a dozen other YA properties, but it definitely sticks out because it spends so much effort trying to be deep and serious about it.

Lady Gaza
Nov 20, 2008

buffeh posted:

Hi all,

Anyone got any advice / experience dealing with joint / sports injuries on the NHS or privately?

Unfortunately I think I have knackered my shoulder doing weightlifting about a month ago. I went too low on a weighted dip and something went twang. For a few days after that I had a nasty burning sensation in the front of my shoulder, painful enough to take my breath away at times, which came and went depending on what I was doing (just moving my arm walking or washing up was enough to make it burn)

I rested it for 10 days and the burning pain had basically gone in under a week, once it was feeling better I tried a few sets of bench press and that caused it to flare up again, although nowhere near as painfully as after the initial injury. Unfortunately I think I may have done some real damage, as since the injury the joint pops and clicks and grinds when I move around, in ways it never used to. It also feels somewhat weakened. I do seem to have full motion in the joint though, and it doesn't really hurt if I don't do things that irritate it.

I've read about rotator cuff tears and labrum tears and am now quite worried. I have been doing recommended shoulder rehab exercises such as band pull aparts, dislocates, rotations and dead hangs but I have no form of medical diagnosis so am flying completely blind!

US centric advice on the internet seems to be "Go to a doctor ASAP, the shoulder is complicated so you will need an imaging scan such as Ultrasound or MRI to see what's wrong, followed by an appropriate treatment plan such as sports physio or as a last resort surgery. Treatment such as physio should be started sooner rather than later or scar tissue build up can be a problem"

That's great but I don't think I'm going to get that on the NHS ASAP or possibly I won't get it on the NHS at all! If I go to my GP and tell them "it hurts when I do this" they might just tell me "don't do that", if I insist that I want it examined as not being able to lift weights is affecting my mental health (true, I've found it very good for my mental health), then I suspect they will give me an orthopaedic referral but surely it's going to be a wait of many, many months which is no good if early treatment can avoid problems later on. I've also read that NHS physiotherapists aren't really the best choice for sports injuries - sports physio would be better

I could maybe go private but I'd probably have to take out a loan / crack into a credit card to afford it, also I have no idea how to go about it or even if that's the best choice, having never pursued private healthcare before. Would I just contact a Nuffield orthopaedic consultant or something and pay to see them? Then I'd also have to pay for imaging, follow up appointments, etc etc. Or could I just pay for a private MRI or something then take the MRI results to a sports physio, thus skipping a bunch of the costs for consultant appointments and follow ups?

Or maybe I should just try the NHS and they'll be better than I think! Or maybe it'll just get better on its own! I really don't know the best way to proceed, so I'd really appreciate any advice or personal experiences with this sort of thing, thank you everyone :)

Adding to what others have said, a good physiotherapist will be able to help with exercises that allow you to keep your range of motion. I did my shoulder in with a heavy bench press years ago, and to this day I have less range in my left vs my right, there’s probably some scar tissue in there somewhere that’s causing restriction.

For injuries that feel like they’re ‘inside’ the shoulder I found the ‘tea cup’ exercise is great at helping with mobility.

Speaking of the NHS and GPs, is it normal for practices not to allow you to see anyone but your own doctor. I’ve recently moved, and the new GP practice wouldn’t give my wife an appointment with anyone but her doctor, which was an issue as the doctor was fully booked for a week and my wife’s prescription needed fairly urgent renewal. She had to basically say it was an emergency before the receptionist said she could speak to the duty doctor.

sebzilla
Mar 17, 2009

Kid's blasting everything in sight with that new-fangled musket.


quote:

Lib Dems call for radical new approach to Israel/Palestine conflict

The Lib Dems have called for more trade with Palestine and Israel, more resources for peace and upholding of international law by ceasing trade with illegal settlements.

Liberal Democrat members have today passed a motion at party conference calling for a new approach to the Israel/Palestine conflict.

The motion, the first on Israel/Palestine at Lib Dem conference since 2017, reaffirms the party’s call for immediate recognition of the state of Palestine alongside calling on the UK Government to commit further resources to peace.

The Liberal Democrats have become the first UK political party to formally support the creation of a peace fund for the region to build trust between Israeli and Palestinian communities, modelled on similar schemes previously used in Northern Ireland.

The motion sees party members call for increased trade links and cooperation with both Palestine and Israel. It also proposes legislation to ensure that goods and services from illegal settlements in Palestinian territory do not enter the United Kingdom until a negotiated peace settlement is agreed.

Layla Moran MP, Liberal Democrat spokesperson for Foreign Affairs and the first MP of Palestinian descent, commented:

“After the events of the last few years, the two-state solution, promised to the likes of my family, seems more elusive than ever. That’s why the UK Government urgently needs to adopt a radical new approach to the conflict - as set out in this motion.

“This is a distinctly Liberal approach which upholds human rights and the rule of law, while using trade and cooperation as the tools for peace which we know they are. That’s why we want to see more trade with Palestine, more trade with Israel, and the introduction of legislation that will see the UK take steps to uphold international law by ceasing trade with the illegal Israeli settlements in Palestinian territory, unless and until a negotiated settlement is reached.

“The Prime Minister was shamefully absent from the world stage during the awful violence in Israel and Palestine in May. If he truly cares about ‘Global Britain’, he should finally show some awareness of the historic obligations which Britain owes to the region. That starts by recognising the state of Palestine - and adopting the radical new approach as set out in this motion.”

I'm sure the JC will be along soon enough to call out this flagrant antisemitism.

Guavanaut
Nov 27, 2009

Looking At Them Tittys
1969 - 1998



Toilet Rascal

Comrade Fakename posted:

"you will marry a powerful bender"
Pretty shameless of them to plagiarize Boris Johnson's speech at Sarah Vine's wedding.

Dabir
Nov 10, 2012

I'm sure it's been recommended here before, but Kay and Skittles did a deep(ish) dive into the politics of each season of Korra. They also have a bunch of other good videos, it's worth checking them out.

https://www.youtube.com/watch?v=ModX151Ipgs
https://www.youtube.com/watch?v=6alQz2CEsz0
https://www.youtube.com/watch?v=-DyKwTXPar4
https://www.youtube.com/watch?v=RGX2rRAlNME

Skull Servant
Oct 25, 2009

Lib Dems announce a two-skills-wallet solution to the issue in Palestine.

Bobby Deluxe
May 9, 2004

Private Speech posted:

I umm, what? Is that about zero-indexing or something? I've written some amount of C# and can't think of what you're referring to.
It was a course about c# for unity on udemy.

https://www.udemy.com/share/101Wjs3@Tq87F8TodlDQWLNs5_IA4wabyr7MzOYr9XxMBs27KFxuNSO9PlIgpjhRZiqnj2Cu/

Video by someone else about the code in question:

https://www.youtube.com/watch?v=fGUJlfE5jrw

It's a simple terminal program that 'guesses' a number between 1 and 1000, and you press up or down to confirm if the number you're thinking of is higher or lower. It amends the maximum and minumum values based on if the player pressed up or down to gradually narrow the field and keeps picking a number between the two until it's right.

I don't 100% remember how it fits in without watching the whole thing, but there was a bit in the udemy video I watched (they've since restructured and reshot most of the course) where they explain that you need to add "max = max + 1" to the startup so that it goes all the way up to 1000 properly in case someone chooses an edge case.

Again, without going through that entire section of the course I can't find where they explain why: I scanned a few videos but they just keep saying max+1 without explaining why, or how that doesn't make the new max 1001, or increase the guesses by +1; and my dog is going to eat my leg if I don't head out soon.

But in the version I watched they explained that it's because unity counts wrong or counts from zero or something. IIRC they then have to remove the +1 again at a later stage to stop the upward guesses from creeping past the correct number.

If you set the max to 1000 it should treat 1000 as the max right? You shouldn't have to wedge the +1 in there.

It's probably a bad course, they basically didn't teach anything about structure, functions, variables etc when I did it; just how to copy chunks of code from the unity manual / forum.

Microplastics
Jul 6, 2007

:discourse:
It's what's for dinner.
peace wallet

Kerbtree
Sep 8, 2008

BAD FALCON!
LAZY!

Antigravitas posted:

No, that's just computer toucher brain. It's also a trap. Most code is indeed handling all the pesky edge cases that appear when code touches the real world, and that's fine.

My beef is specifically with web devs. The vast majority of the web consists of some text with images and maybe a few video files. The vast majority of data transferred and cpu cycles spent does not improve the experience of the user and is usually not even visible (except in ads).

120 separate requests to a dozen disparate domains and 10 seconds load time on a high-latency link to display a few headlines with images and a two-sentence lead? Get the gently caress out.

Is that before or after the JavaScript cryptominer?

Bobby Deluxe
May 9, 2004

Dabir posted:

B for effort but that does kind of imply the other nations are also kinds of bigotry and since when have they not lived in harmony?
This was posted upthread:

https://twitter.com/RachelT1722/status/1439892743963267072?s=19
Yes this is an edge case lunatic, but people like the LGB alliance cutting specific letters out of LGBTQ seems to have awoken a chunk of nutcases who think they have the right to do the same with other letters.

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


Bobby Deluxe posted:

It was a course about c# for unity on udemy.

https://www.udemy.com/share/101Wjs3@Tq87F8TodlDQWLNs5_IA4wabyr7MzOYr9XxMBs27KFxuNSO9PlIgpjhRZiqnj2Cu/

Video by someone else about the code in question:

https://www.youtube.com/watch?v=fGUJlfE5jrw

It's a simple terminal program that 'guesses' a number between 1 and 1000, and you press up or down to confirm if the number you're thinking of is higher or lower. It amends the maximum and minumum values based on if the player pressed up or down to gradually narrow the field and keeps picking a number between the two until it's right.

I don't 100% remember how it fits in without watching the whole thing, but there was a bit in the udemy video I watched (they've since restructured and reshot most of the course) where they explain that you need to add "max = max + 1" to the startup so that it goes all the way up to 1000 properly in case someone chooses an edge case.

Again, without going through that entire section of the course I can't find where they explain why: I scanned a few videos but they just keep saying max+1 without explaining why, or how that doesn't make the new max 1001, or increase the guesses by +1; and my dog is going to eat my leg if I don't head out soon.

But in the version I watched they explained that it's because unity counts wrong or counts from zero or something. IIRC they then have to remove the +1 again at a later stage to stop the upward guesses from creeping past the correct number.

If you set the max to 1000 it should treat 1000 as the max right? You shouldn't have to wedge the +1 in there.

It's probably a bad course, they basically didn't teach anything about structure, functions, variables etc when I did it; just how to copy chunks of code from the unity manual / forum.

This will be because the function to generate a random number returns a number between 0 and the number you gave it - so random(6) will give you 0...5. If you want to make it 1...6 you have to add one to whatever you generate. The reason it's this way is that it's often more useful to start with 0 than 1 for various maths reasons, hence it being that way actually saves work most of the time.

Brendan Rodgers
Jun 11, 2014




"Why numbering should start at zero", by E.W Dijkstra, who probably knew a thing or two about computers:

https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html

Dabir
Nov 10, 2012

Bobby Deluxe posted:

It was a course about c# for unity on udemy.

https://www.udemy.com/share/101Wjs3@Tq87F8TodlDQWLNs5_IA4wabyr7MzOYr9XxMBs27KFxuNSO9PlIgpjhRZiqnj2Cu/

Video by someone else about the code in question:

https://www.youtube.com/watch?v=fGUJlfE5jrw

It's a simple terminal program that 'guesses' a number between 1 and 1000, and you press up or down to confirm if the number you're thinking of is higher or lower. It amends the maximum and minumum values based on if the player pressed up or down to gradually narrow the field and keeps picking a number between the two until it's right.

I don't 100% remember how it fits in without watching the whole thing, but there was a bit in the udemy video I watched (they've since restructured and reshot most of the course) where they explain that you need to add "max = max + 1" to the startup so that it goes all the way up to 1000 properly in case someone chooses an edge case.

Again, without going through that entire section of the course I can't find where they explain why: I scanned a few videos but they just keep saying max+1 without explaining why, or how that doesn't make the new max 1001, or increase the guesses by +1; and my dog is going to eat my leg if I don't head out soon.

But in the version I watched they explained that it's because unity counts wrong or counts from zero or something. IIRC they then have to remove the +1 again at a later stage to stop the upward guesses from creeping past the correct number.

If you set the max to 1000 it should treat 1000 as the max right? You shouldn't have to wedge the +1 in there.

It's probably a bad course, they basically didn't teach anything about structure, functions, variables etc when I did it; just how to copy chunks of code from the unity manual / forum.

That is a very bad course. The vast majority of programming courses count from zero, as in, if you declare a list of 100 items, they're indexed 0 to 99. I don't know the exact details of what it was asking you to do but there was definitely a better way.

Adbot
ADBOT LOVES YOU

Bobby Deluxe
May 9, 2004

Private Speech posted:

This will be because the function to generate a random number returns a number between 0 and the number you gave it - so random(6) will give you 0-5. If you want to make it 1-6 you have to add one. The reason it's this way is that it's often more useful to start with 0 than 1 for various maths reasons.
Bolded to see if I understand the important part right, but it just feels to me like if you have a program that guesses between 1 and 1000, and you set the maximum to 1000, that should include it guessing 1000.

Probably it's the courses fault for having a first lesson that includes a conceptual crisis over whether a number represents a unit or a boundary.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply