Centrepoint success for Sefyu - Run every day and don't give up
Centrepoint success for Sefyu - Run every day and don't give up
Blind refugee found dead four miles from where Border Patrol 'abandoned' him
Reform wants to 'go back to the dark days' and scrap Equality Act, PM says
More than half of millennials CONVINCED they will become wealthy - compared to just 16% of Gen Z
Jameela Jamil gives a rare insight into her 11-year relationship with James Blake as she says he's a 'real man' but brands men who identify as 'macho' the 'most fragile sh** I've ever seen'
Chloe Madeley hits back at Jameela Jamil's 'deeply misguided' feminist rant about women looking 'scarily thin' at the BAFTAs
Solo traveller reveals why they book hotel rooms for two even when travelling alone
Starmer demands apology from Farage for Reform MPs 'death threats'
Greens want to make it nigh on impossible to send anyone to prison - but criminals who do end up behind bars will be given the vote
So much for energy bills falling by £300! Labour's Net Zero drive is under fire as power costs drop... but we're still £73 worse off
DOJ launches investigation into whether Epstein files mentioning Trump were wrongly withheld
CodeSOD: The Counting Machine
Industrial machines are generally accompanied by "Human Machine Interfaces", HMIs. This is industrial slang for a little computerized box you use to control the industrial machine. All the key logic and core functionality and especially the safety functionality is handled at a deeper computer layer in the system. The HMI is just buttons users can push to interact with the machine.
Purchasers of those pieces of industrial equipment often want to customize that user interface. They want to guide users away from functions they don't need, or make their specific workflow clear, or even just brand the UI. This means that the vendor needs to publish an API for their HMI.
Which brings us to Wendy. She works for a manufacturing company which wants to customize the HMI on a piece of industrial equipment in a factory. That means Wendy has been reading the docs and poking at the open-sourced portions of the code, and these raise more questions than they answer.
For example, the HMI's API provides its own set of collection types, in C#. We can wonder why they'd do such a thing, which is certainly a WTF in itself, but this representative line raises even more questions than that:
Int32 Count { get; set; }What happens if you use the public set operation on the count of items in a collection? I don't know. Wendy doesn't either, as she writes:
I'm really tempted to set the count but I fear the consequences.
All I can hear in my head when I think about "setting the Count" is: "One! One null reference exception! Two! TWO null reference exceptions! HA HA HA HA!"
By http://muppet.wikia.com/wiki/Count_von_Count
Uber Employees Have Built an AI Clone of Their CEO To Practice Presentations Before the Real Thing
Read more of this story at Slashdot.