Programming thread

It's a webpage with a javascript script attached, I don't know what else you want from me lmao
It seems to be unclear to some that it's your webpage you're writing that's pulling in embedded video you want to play when a user views it. Luckily I know nothing about Javascript so I can't actually help.
 
I was watching a WPF tutorial when I realized at the end that I fucked something up and couldn’t figure out what it was. So I just deleted everything and rewatched the video and followed the tutorial more closely. How do you guys get better at troubleshooting your code?
Every bug comes down to the basic questions of "How do I replicate it" and "Where is it triggered", with the fix usually being the easiest part. Replicating is usually the worst part, while the triggering is straightforward unless you have something like memory errors fucking up entire areas of the code.
The better you understand your code and the situation that happened the easier the troubleshooting.
 
while the triggering is straightforward unless you have something like memory errors fucking up entire areas of the code.
Or anything to do with multithreading. I'm sure there's lots of production code out there with race condition bugs that trigger so rarely that nobody has ever actually seen it.

Even Rust's multithreading capabilities are sketchy, and I absolutely thought they would've tried to make it more idiot proof.
 
Or anything to do with multithreading. I'm sure there's lots of production code out there with race condition bugs that trigger so rarely that nobody has ever actually seen it.

Even Rust's multithreading capabilities are sketchy, and I absolutely thought they would've tried to make it more idiot proof.
The only good thing with multithreading issues is that once you figure out the issue it at least explains whatever insane shit you witnessed.

I'll add to my previous post that one you can 100% replicate an issue, you can find where it is simply by commenting out the code until it stops happening.
 
  • Agree
Reactions: std::string
Or anything to do with multithreading. I'm sure there's lots of production code out there with race condition bugs that trigger so rarely that nobody has ever actually seen it.

Even Rust's multithreading capabilities are sketchy, and I absolutely thought they would've tried to make it more idiot proof.

I've worked on code with race condition bugs that we just didn't fix because eh, customer's still buying it.
 
Anyone knows about emulating network conditions? The program I'm working on at work is completely stable on private wired/wifi networks, but when running it on a public event over a wifi half the crowd uses, it just crashes randomly, which is hard to replicate back in the lab.
 
My Youtube recommended page showed me this Python library called nicegui that allows you to make a React style frontend without having to use JavaScript. As a complete retard who can't into JS, would this be a good alternative? I have some funny ideas for websites but I've always been too stupid/lazy to sit my ass down and learn JS proper. I've just never been a fan of the language.
 
Hey guys what’s the difference/relationship between Asp.net, PHP, and MySQL. I’m looking to make both personal websites and get a job doing backend. Is it good to know all of them?
 
Anyone knows about emulating network conditions? The program I'm working on at work is completely stable on private wired/wifi networks, but when running it on a public event over a wifi half the crowd uses, it just crashes randomly, which is hard to replicate back in the lab.
Grab a linux box to route through using tc. You can add random network delays and packet loss using netem.

Then you'll have to figure out what's making it crash...which is the hard part.
 
Grab a linux box to route through using tc. You can add random network delays and packet loss using netem.

Then you'll have to figure out what's making it crash...which is the hard part.
I'm already running linux so that was what I was going to do after playing with Google Sanitizer (which is surprisingly decent alternative to valgrind) and not seeing any big issue. I don't have a lot of clue about networks so is it just network delays and packet loss, or are there other parameters to play with?
 
  • Like
Reactions: std::string
My Youtube recommended page showed me this Python library called nicegui that allows you to make a React style frontend without having to use JavaScript. As a complete retard who can't into JS, would this be a good alternative? I have some funny ideas for websites but I've always been too stupid/lazy to sit my ass down and learn JS proper. I've just never been a fan of the language.
A lot of people aren't a fan of Javascript. Modern JS is rarely directly written by a human and instead compiled out of some other language or library the human actually wants to write in. Probably it's a fine alternative, there are certainly more questionable choices you could make. It does seem to marry you to a few dependencies, but if you aren't opinionated about those in the first place that shouldn't be a problem.

The biggest issue is that it's a Python library, so if you ever need to ask for help online you need to put up with corporate golems bragging that their ugly looking code is "Most Pythonic".
 
I'm already running linux so that was what I was going to do after playing with Google Sanitizer (which is surprisingly decent alternative to valgrind) and not seeing any big issue. I don't have a lot of clue about networks so is it just network delays and packet loss, or are there other parameters to play with?
Yeah, you can corrupt packets randomly, reorder them, limit bandwidth, etc.

I'd probably start by using a network delay with a pareto distribution though, since if your clients are getting dropped from public wifi that's most likely what's going on.
 
I have achieved detecting the end of an embedded youtube video. Now I just have to fix everything else I broke in the process
 
Hey guys what’s the difference/relationship between Asp.net, PHP, and MySQL. I’m looking to make both personal websites and get a job doing backend. Is it good to know all of them?
There's some overlap, but roughly all three are different:
  • ASP.NET is basically Microsoft's web application framework. In general anything you need a webpage to do its ecosystem will allow.
  • PHP is a scripting language. Often used in APIs or backend tasks, but there's quite a few PHP frameworks these days for full web development
  • MySQL is a database management system which uses SQL. You'll want to focus more on the SQL part to start as that's a key language used for relational data queries
Whether or not you need to know all three honestly comes down to job. If you only learned PHP for example you'd still be fine applying for most backend jobs because the overarching skills and knowledge stay the same. Most companies are going to be looking for people who can walk into the role and quickly pick up any missing details vs. finding someone who has full experience in their exact tech stack.

Definitely learn SQL regardless though; database queries are something every backend developer (and fullstack for that matter) will be doing on a daily basis.
 
There's some overlap, but roughly all three are different:
  • ASP.NET is basically Microsoft's web application framework. In general anything you need a webpage to do its ecosystem will allow.
  • PHP is a scripting language. Often used in APIs or backend tasks, but there's quite a few PHP frameworks these days for full web development
  • MySQL is a database management system which uses SQL. You'll want to focus more on the SQL part to start as that's a key language used for relational data queries
Whether or not you need to know all three honestly comes down to job. If you only learned PHP for example you'd still be fine applying for most backend jobs because the overarching skills and knowledge stay the same. Most companies are going to be looking for people who can walk into the role and quickly pick up any missing details vs. finding someone who has full experience in their exact tech stack.

Definitely learn SQL regardless though; database queries are something every backend developer (and fullstack for that matter) will be doing on a daily basis.
thanks dude
 
I'm re-learning C++ because I'm Mad at the Internet. For some reason every fucking program that exists is ran by trannies, niggers, furries or otherwise unfavorable people. I have no fucking idea what I'm going to create but at least it'll be leagues better than troonware.

Where did all the rms-type people go? Why did they all get replaced with people named Eris (they/them/xe/xem/nig/ger)?

Where has my network gone?
 
Hey guys what’s the difference/relationship between Asp.net, PHP, and MySQL. I’m looking to make both personal websites and get a job doing backend. Is it good to know all of them?
ASP.NET is developed in C# which in my opinion is a much better programming language with great tooling and also has a very large number of jobs available, but unfortunately you do typically need to code it on Windows. I miss working on OSX.

C# will take you to more of a business/enterprise space and the salaries are typically higher. PHP is used for some older high-end websites (Facebook) but the majority are boring digital agency sites and you will inevitably end up dealing with Wordpress if you work in this space. (source: subjective personal experience)

Where did all the rms-type people go?
They're still around and if you go to tradeshows, cons or meetups and meet people in person you'll find many of them them to actually be pretty based once they let their guards down or have a few drinks, but they don't write stuff like this down anymore because of the threat of being cancelled or risking future professional prospects.

I know some nerds who who are trying to figure out what the next wrongthink will be to get ahead of it, and I recently shared some beers with someone with a reasonable level of prominence in tech who is quietly editing their social media and weblogs going back a couple of decades and eliminating phrases such as "insane performance" and "crazy visuals", etc as he theorises this perceived discrimination against mental health will be the next target once the current transgender culture war reaches a level of equilibrium.

This is all because someone he knew got a mild level of public humiliation for having described something as "pretty fucking gay" in like 2001 or whenever. I don't know what you call this behaviour but I don't like it.
 
Back