I read a pretty convincing article title and subheading implying that the best use for so called “AI” would be to replace all corporate CEOs with it.
I didn’t read the article but given how I’ve seen most CEOs behave it would probably be trivial to automate their behavior. Pursue short term profit boosts with no eye to the long term, cut workers and/or pay and/or benefits at every opportunity, attempt to deny unionization to the employees, tell the board and shareholders that everything is great, tell the employees that everything sucks, …
Then some hackers get in and reprogram the AI CEOs to value long term profit and employee training and productivity. The company grows and is massively profitable until some venture capitalists swoop in and kill the company to feed from the carcass.
If anyone’s interested in a hard sci-fi show about uploading consciousness they should watch the animated series Pantheon. Not only does the technology feel realistic, but the way it’s created and used by big tech companies is uncomfortably real.
The show got kinda screwed over on advertising and fell to obscurity because of streaming service fuck ups and region locking, and I can’t help but wonder if it’s at least partially because of its harsh criticisms of the tech industry.
Luckily the writers were able to finish it the way they wanted with a second season, and it’s fantastic. AMC almost did axe it before the second season released but after it was already finished but fans were able to get them to release it.
The show got kinda screwed over on advertising and fell to obscurity because of streaming service fuck ups and region locking, and I can’t help but wonder if it’s at least partially because of its harsh criticisms of the tech industry.
Okay so I can’t 100% confirm this, but the first season wasn’t popular because it was on whatever the fuck AMC+ is. Amazon bought it because of the writer’s strike to get something out.
Just FYI content warning for Pantheon there is a seriously disturbing gore/kill scene that is animated too well in the first season. Anyone who has seen the show knows what scene I am talking about, I found the scene pretty upsetting and I almost didn’t finish the show. I am still a little upset that the scene is burned in my memory.
Is it wrong that I’m stuck trying to figure out what language this is?
Trying to figure out what string.length and print(var) exist in a single language… Not Java, not C# (I’m pretty sure its .Length, not length), certainly not C, C++ or Python, Pascal, Schme or Haskell or Javascript or PHP.
It’s weird that people are so focused on it. It’s pseudocode, and it’s purely meant for day one comp sci students to grasp how data is stored and processed, before they are forced into writing Java, most likely
I’m very much guessing that this is just supposed to be a type of pseudocode given the context and vagueness of it.
It’s a big reason why I really dont like pseudocode as instruction to people learning the basics of what programming is. It made more sense 20 years ago when programming languages were on a whole a lot more esoteric and less plain text, but now with simple languages like Python there’s simply little reason to not just write Python code or whatever.
I took an intro to programming class in College and the single thing I got dinged on the most is “incorrect pseudocode”, which was either too formal and close to real code or too casual and close to plain English.
It’s not a great system. We really need to get rid of it as a practice
And VisualBasic’s syntax is easier than COBOL, but this isn’t a competition to make the least offensive heap of putrid garbage, so why does it matter?
Python works just fine for basic scripts, frankly it’s amazing for it, but oop and functional programming is so incredibly obviously badly shoehorned in that huge swathes needs scrapping and version 4 releasing
I think you’re missing the forest for the trees here pretty heavily.
Yes, Python has some goofy aspects about managing it while performing high level, in depth tasks.
This is a post and a comment chain about pseudocode being taught to people who likely just learned what a “programming language” was several weeks ago. Essentially no one taking the GCSE knows what “bash-like scripts” even means.
Reminds me of 7th grade math class, chapter on estimating. Assignment was “Estimate the following values” with problems like 42+28=? or 14*3=?
One of them was 6*7=? Which having memorized my times tables in 4th grade like they told me to, I knew off the top of my head that it’s 42. I wrote that. And it was marked wrong because I was too precise.
This is quite a cheap answer but maybe it’s just pseudo code. We had exercises in university about pseudo code with examples that intentionally broke all syntax systems and conventions to show that not everything has to be executable that you write down in a theoretical computer science homework
It’s a shitty question. It’s implied by the fact that “24” is wrong that the answer is “6”, the length of the string “Monday”.
In some languages dot access on objects could give you the properties of the object type (things pertaining to a “day” object) but this would still be ambiguous since a day’s length can be measured in many different ways.
In others, it would require you to call length as a function (.length()) or not be available at all, or require you to pass the object into another function [ length_in_seconds(day_x)]
I think the question is fine, but we have to assume they covered this type of method prior to the exam, where .length would result in the character count of a String.
Scala and Kotlin are close ones, although those requires variables to be declared with var day = “Monday” (unless the variables are declared elsewhere)
Yeah dev home is pretty much useless at this point.
Back when it just launched, they marketed it as it would introduce cool stuff to developers like, what I’m waiting for the most, git repositories Explorer integration. But all we have is a constantly crashing app and two extra widgets for the widget panel.
Dev drives are also cool but they’re the part of Windows anyway, no dev home needed.
Instead of io stuff I just use it as a current snapshot of my dev stuff including repos. Super-easy and super-fast to sync to my other devices just as a vhdx file over any wifi network. Yeah it’s not dev drive specific feature but still, I started doing so because of dev drive
Honestly, it should be more freedom from addiction. Porn isn't harmful until it becomes addicting. Drugs can boost creativity until you become dependent (although admittedly these can have a greater chance of harm, caffiene included). TV binging, scrolling the internet, all these can result in inspiration until it becomes a required habit
Maybe rework the message so Freedom From Porn is symbolic of Freedom From Addiction, and the ability to generate ideas without needing to nut first, or take drugs, or scroll endlessly through videos and stories, or playing non stop games, etc.
Yeah, I never understood the point of these nofap movements if you just substitute it with some other addiction like binge watching or doomscrolling social media. It seems like treating a symptom instead of a disease. If you fill your life with fulfilling interactions with people, hobbies and passions, you won’t even have the time for harmful addictions.
If you fill your life with fulfilling interactions with people, hobbies and passions, you won’t even have the time for harmful addictions.
Those things would be part of a positive feedback loop, and it might not be able to be the first part. The ability to enjoy them is reduced until the brain is fully healed from the addiction.
Knew a programmer that was near blind who only used magnifier on maximum zoom with his IDE. One of the best programmers I met, but his screen looked very much like that. Don’t know how he did it.
Well put, however I find code formatting itself has a shape, texture and smell. How the programmer weaves the patterns of formatting tells a lot about his mind and style.
Albino? There was an albino in my IT and the poor dude would literally be like 4 inches from the screen at all times. I guess that must be pretty close to his experience, yeah.
Yeah, I worked with an albino like that who used a handheld magnifying glass. It actually inspired me to write a magnifier application for windows (which didn’t have one at the time, this was in 2006). That then led me to write little windows apps every day for a month, which got a lot of attention.
You forgot “don’t say ‘thank you for pointing out that we were sending social security numbers to everyone who visits our website that anybody could stumble across,’ but rather ‘you will be prosecuted to the fullest extent of the law, hacker!’” Courtesy of the Missouri Department of Education.
Almost completely pure way of storing ideas. With this I mean that you don’t store unnecessary data such as “background should be white” or “left page margin is 1.3cm”. It’s just text. What’s important is what it says + minimal markup.
Presentation is left to the reader’s client. Do you want dark mode? Get a markdown editor/reader that supports it. Do you want serif font? Again, that’s client’s choice and not part of the document.
I wish browsers would support markdown out of the box, so you could open example.com/some-post.md
Presentation is left to the reader’s client. Do you want dark mode? Get a markdown editor/reader that supports it. Do you want serif font? Again, that’s client’s choice and not part of the document.
I remember when that is how the web worked. All that markup was to define the structure of the document and the client rendered it as set by the user.
Some clients were better than others. My favourite was the default browser in OS/2 Warp, which allowed me to easily set the display characteristics of every tag. The end result was that every site looked (approximately) the same, which made browsing so much nicer, in my opinion.
Then someone decided that website creation should be part of the desktop publishing class (at least at the school I taught at). The world (wide web) has never recovered.
There are four properties in an accessibility tree object:
name
How can we refer to this thing? For instance, a link with the text “Read more” will have “Read more” as its name (find more on how names are computed in the Accessible Name and Description Computation spec).
description
How do we describe this thing, if we want to provide more description beyond the name? The description of a table could explain what kind of information the table contains.
role
What kind of thing is it? For example, is it a button, a nav bar, or a list of items?
state
Does it have a state? Examples include checked or unchecked checkbox states and collapsed or expanded states for the <summary> element.
We’re getting closer to winter. I’ve got most of those preparations done. “Just” have to finish building the heater for my shop. My programming based project list is coming together: learn me some Rust, contribute some documentation to a project I’m following, look deeper into the potential of the Accessibility tree. That should keep me busy for a while!
It’s a simple and elegant way of covering 95% of document structuring needs, while being as close to readable plaintext as possible.
The vast majority of documents currently written in MS-word could just be markdown. The vast majority of web content could just be markdown. This would save the modern world petabytes of XML bloat.
If you need something fancier, either use a vector format or do fancy client-side styling.
programmer_humor
Top
This magazine is from a federated server and may be incomplete. Browse more on the original instance.