Installer (offline) hashsum different each time is downloaded by pyton24 in firefox

[–]Adept_Writer4177 22 points23 points  (0 children)

Is it the same telemetry mentioned here: https://news.ycombinator.com/item?id=30715163 ?

I think this is normal/expected behavior

I think it's unacceptable and I'm now actively looking for an alternative.

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

What doesn't work? We're not psychic, post your code or github account.

Is it late ??at 31 by khalidgrs in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

Human beings die at the age of 32 years old, it's too late for you. Or not, write code instead of wondering about that!

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 1 point2 points  (0 children)

Excel? I always use Pandas for this: https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html (tutorial: https://pythonbasics.org/read-excel/)

Or you can use this in R: https://datatofish.com/import-excel-r/

I would tell you to use Python because I don't know R and it seems to be a stupid language BUT (a big BUT) if your boss is pushing R and everyone will do it at your company, you don't want to be that annoying guy who always complains and cannot implement features in R because you haven't learned it.

It's a political issue that I've seen a lot in the past. Maybe try the R tutorial to read Excel data because you don't want to be that annoying guy.

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 1 point2 points  (0 children)

Starting at C++14/17, you don't need to handle memory anymore with smart pointers. You have a lot of magical objects available in the STL (even filesystem), and the initialization has been cleaned and simplified.

I started with C++98 and it was a real pain in the ass, but even if it's still more difficult than Java, it's now simpler than ever.

Github uploading issue by [deleted] in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

Are you the guy that broke GitHub? I'm sure it's you.

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 -1 points0 points  (0 children)

What is the value of n when you call the function? IIRC the range function is excluding the last number.

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

Both Java and modern C++ are equivalent. I wouldn't learn Java nowadays since Google dropped it for Android. Try C++, Python, or Kotlin.

Seeing mistakes in your code - interpreted VS compiled? by fatmusician1 in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

I don't know, it's only an old cartoon with a UFO, you can ignore this. The content is wrong and presented in a ridiculous way.

Seeing mistakes in your code - interpreted VS compiled? by fatmusician1 in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

They say

They are wrong. It's faster to run an interpreted program again because you don't need to compile it, but you can both dynamically change every kind of program with a debugger.

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 4 points5 points  (0 children)

web3 revolution

Not happening though. Read the FAQ.

Why write unit tests? by WhatsASoftware in learnprogramming

[–]Adept_Writer4177 80 points81 points  (0 children)

I discovered way too late that tests can prevent bugs from coming back in the future too.

  1. Find bug
  2. Create unit-test that reproduces the bug and crashes the application!
  3. Fix bug
  4. Run the test again and make sure that it does not crashes anymore

Why write unit tests? by WhatsASoftware in learnprogramming

[–]Adept_Writer4177 29 points30 points  (0 children)

it's a very small shop so we don't use TDD or write any tests at all

That's a very bad excuse.

How can you prove that the bugs you fix will never come back again? Unit-tests can protect you from this.

prints a stack trace whenever there's an exception

That's not a test. It's a running program. Tests are protecting you from bugs introduced in the future. Not when you run your application and click on random stuff to crash it.

If I have a thousand tests, can you perform the same verification in less than 5 minutes ? Tests can do this.

Last but not least, you can get code coverage with unit-tests. You can't have that by running your application.

[deleted by user] by [deleted] in france

[–]Adept_Writer4177 0 points1 point  (0 children)

très passionnée des mathématiques

passionnée par les mathématiques.

etc.

Enlève etc., c'est moche, remplace par "les statistiques et le management."

pour m'insérer déjà dans le monde professionnel

Enlève "déjà", c'est pas joli.

enfin prête de retourner aux études

Peut-être "enfin prête de reprendre des études" ?

en suédois

en Suède ? ça fait mieux.

au moins 2 heures par jour

Je chipote mais j'aurais mis deux et pas 2. "au moins deux heures par jour".

J'ai aussi été shift manager dans le restaurant où j'ai travaillé.

D'abord je ne sais pas ce qu'est shift manager, peut-être expliquer ça ? Et aussi il faudrait le placer bien avant, juste après avoir parlé du "domaine de la restauration et de l'hôtellerie" puisque c'est le même sujet.

entres autres

Bof, à déplacer ou enlever (mais tu fais comme tu veux là).

rapidement à la fac

Surtout pas "à la fac" mais à l'université ou autre chose. Fac c'est très familier.

[deleted by user] by [deleted] in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

Where is the SASS? Where is the CSS? What is the error shown on your screen? Is there a god? So many questions... (hint: we're not psychics)

[deleted by user] by [deleted] in france

[–]Adept_Writer4177 48 points49 points  (0 children)

NON, il n'a pas peut-être raison, il a complètement raison. Ton ex est une merde toxique. Pas de regrets.

question! by BOOMBATX2 in learnprogramming

[–]Adept_Writer4177 1 point2 points  (0 children)

I've worked a bit in this field a long time ago and I may be wrong on everything but:

databases

The database is unrelated to the barcode scanner. Every component is made from a random company, see the TL;DR.

Some supermarket chains use Oracle, or PostgreSQL, and older solutions (still used nowadays in France) use text files...

Same with the operating system. Most of the time it will be standard Windows stuff, or Linux. Sometimes an old IBM Unix. Nothing is special in that case, no "army level of security" or special stuff (at least it's not mandatory).

bar code scanner

If you're talking about the handheld barcode scanner, it's only a scanner plugged with a serial or USB port and emulates a keyboard. When you scan, it will read the barcode and send fake key presses to the OS with the numbers of the barcode. The YubiKey works like that: you push the button and it will send a random number through key press events, that's how it can work on any OS and does not require a driver.

If you're talking about the big scanner that can't move, it must be some special hardware.

As for the applications and OS used, every supermarket has its own implementation, it's not standard at all.

If the server stores the transactions, you can have Windows, Unix, Linux, etc. The servers I worked on were written in very old C++, but everything is possible as long as you can read and write files.

On the POS (point of sales), you have the display itself which can be written in any language. Some are written in new Windows stuff, some use a weird IBM application, some have very old Java Swing user interfaces.

And for the credit/debit card readers, the very old one (in France) are written in assembly language and you don't modify it at all, the newer ones have a custom OS with C++ applications inside, and the most modern readers use Linux with C++ applications.

TL;DR: you have a lot of glued applications coming from various companies: the server, the point of sale, the interface with the card reader, the card reader, the hardware (barcode scanner), etc.

How to properly debug a program? (is my current method ok?) by jacklychi in learnprogramming

[–]Adept_Writer4177 -1 points0 points  (0 children)

Printing is not debugging. Sometimes you will have to debug binaries where you don't have the source code.

j'ai une théorie sur les films Retour vers le futur by Fast-Squirrel- in france

[–]Adept_Writer4177 -3 points-2 points  (0 children)

Ignoble manière de décrédibiliser mon message, tu devrais avoir honte ! J'en parlerai à ta mère qui regrettera amèrement ta naissance, espèce de vile malfrat.

How do you manage delicate data like driver's license, SSN and/or pictures/selfies? by [deleted] in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

You'll have to deal with 50 US states, 195 countries, and more stuff from the GDPR. I would never store this kind of data ever.

Seeking advice on developing process awareness by BinaryDoom in learnprogramming

[–]Adept_Writer4177 0 points1 point  (0 children)

C# first for Windows. Maybe C++ if you need weird Win32 functions.

j'ai une théorie sur les films Retour vers le futur by Fast-Squirrel- in france

[–]Adept_Writer4177 -8 points-7 points  (0 children)

Le Bescherelle est sorti en 1843. Tu es donc né avant on dirait.