[-] vrek@programming.dev 1 points 3 days ago

Well basically it's just a 'magic number'. If you ban all of those many programs will either break or at minimum suffer sever performance degradation.

[-] vrek@programming.dev 1 points 3 days ago

Not saying it's nothing, most people just don't count it.

[-] vrek@programming.dev 2 points 3 days ago

Is that still true if I add vodka to the orange juice?

[-] vrek@programming.dev 2 points 3 days ago

I'm not the original poster but I think they meant the logo programming language. Basically you write a script which moves a turtle around on the screen and draws a line behind them.

It's unrelated to the Lego plastic bricks

[-] vrek@programming.dev 3 points 3 days ago

So you are guessing about society 7000 years ago?

[-] vrek@programming.dev 2 points 3 days ago

Ok yes sauces have calories but who really counts the sauce calories if you are already eating chicken nuggets? Like if you are eating a salad and count the dressing, maybe but the intersection of calorie counting people and chicken nugget eating people can't be very much

[-] vrek@programming.dev 3 points 3 days ago

Where is it not true?

[-] vrek@programming.dev 4 points 3 days ago

Granted. A lot of stuff would be different or break if the earth was flat. Op's point was it was a good enough approximation. I was saying that might be true in some cases but it also shows a lack of critical thinking and that's the major issue.

[-] vrek@programming.dev 3 points 3 days ago

In my experience code review is often about the logic rather than the code itself. For example do you really need to copy the whole user object just to read their username? Can't you just pass the username in as a string instead? Static validation and test suites should already of eliminated any code errors. If you show up to a code review and the code doesn't compile, you're going to have a bad time. Stuff like calculating the same distance between two objects multiple times should be called out in code review, maybe extract that into a function. Reaching out to a database to get the same value repeatedly should be called out, maybe store it as a local variable.

One time I was reviewing some code which interfaces with an external third party piece of hardware which the api required the serial number for licensing. The programmer hard coded the serial number into the code. If we swapped it due to hardware malfunction we would need to update the software. If we got a second one we would need to maintain two code bases. This should be in a configuration file or something. Ai will not catch that. Static testing won't catch this. Test suites running on the piece of hardware we had, wouldn't catch this. Only a human reviewer would.

[-] vrek@programming.dev 10 points 5 days ago

It was g-code which as another commentator correctly pointed out was used to control a fanuc cnc system.

[-] vrek@programming.dev 21 points 5 days ago

Basically we made devices which were surgically implanted into your body to send specific electrical signals to your spine and brain for certain medical issues. The electronics were in a metal case so your icky blood and bodily fluids didn't cause shorts. This system was to weld the metal case closed.

[-] vrek@programming.dev 18 points 5 days ago

If I told you what the purpose of this system was you would be really horrified...

70

What os? What ide? What plug-ins?

348

I'll give an example. At my previous company there was a program where you basically select a start date, select an end date, select the system and press a button and it reaches out to a database and pulls all the data following that matches those parameters. The horrors of this were 1. The queries were hard coded.

  1. They were stored in a configuration file, in xml format.

  2. The queries were not 1 entry. It was 4, a start, the part between start date and end date, the part between end date and system and then the end part. All of these were then concatenated in the program intermixed with variables.

  3. This was then sent to the server as pure sql, no orm.

  4. Here's my favorite part. You obviously don't want anyone modifying the configuration file so they encrypted it. Now I know what you're thinking at some point you probably will need to modify or add to the configuration so you store an unencrypted version in a secure location. Nope! The program had the ability to encrypt and decrypt but there were no visible buttons to access those functions. The program was written in winforms. You had to open the program in visual studio, manually expand the size of the window(locked size in regular use) and that shows the buttons. Now run the program in debug. Press the decrypt button. DO NOT EXIT THE PROGRAM! Edit the file in a text editor. Save file. Press the encrypt button. Copy the encrypted file to any other location on your computer. Close the program. Manually email the encrypted file to anybody using the file.

55

So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

48

The only possible exceptions I can think of are fish(I imagine gills and mouth are not connected but don't really know). I am excluding bacteria and viruses and I believe they don't really breath(correct me if I'm wrong).

63
submitted 2 years ago by vrek@programming.dev to c/linux@lemmy.ml

I know there choice of distro is really meaningless as you can install almost any program on almost any distro. But I have been playing with kali which is for security people and pen testers. Is there a similar distro for programmers? Like a few ides installed some profiling tools some virtual environment tools etc?

97

They gotta go fast!

41
79
180
132

Have the same story but from two different perspectives!

11

I don't know why this is a thing but if I tap the back of my pixel 6 three times in rapid succession it begins to play my audio book on audible.

From what I can tell audible has to be open but doesn't need to be the app on the screen(for example I can start and stop it while typing this post). Also the phone has to be "on" (meaning the screen is displaying but doesn't need to be unlocked.

Is this just my phone or dies it happen on other people's phone too?

view more: ‹ prev next ›

vrek

0 post score
0 comment score
joined 3 years ago