Frank's Rust String Class

Just wondering.. does Merzedes really write german language code? shudder

Why should we write English language code ? Because we actually don't speak proper English (that applies to 99% of employees in Germany), but we are posers and want to show off ?

No, proper practice is to use your native language. That enables you to convey your thoughts as precisely and correctly as possible.

Having said that - there are lots of posers around. They will then confuse "workshop" and "workstation" in their code, because it sounds like "werkstatt". And they are too lazy to use a proper dictionary. The end result is variable names which can only be understood by the one (1) person who wrote the code.

So to conclude my rant - yes the pros use their mother/father/grandma tongue in their programs. I suggest you talk to software engineering experts if you doubt this.

Nothing about posing. I was just wondering. My company and almost every company i worked for writes english code, so my experience is exactly the opposite to yours. The few companies that stick to german are usually companies with an aging employee base, but even there people take language courses, because, well... english is a rather important language, especially in the IT industry. How are you supposed to stay up to date, when you can't even understand english? You wouldn't even know about Rust, most likely, apart probably some article in the iX. And you seem to be perfecty fine with writing english as well! :smile:

Your code is about 50% english and 50% german, so you have to constantly switch back and forth between german and english.
It would be funny to have some german Rust dialect that replaces "return" by "gebe zurück" and such things, though :smiley:

It is not an all-or-nothing issue. Surely software engineers better understand some english to learn about new IT subjects.

But I would make a severe distinction when it comes to WRITING english language programs. As I said, most German software engineers are incapable of properly naming variables in English. This task is hard enough in your native language. The naming of variables, types and procedures, the wording of comments is absolutely critical for good software quality. That is because some poor guy has to fix bugs in the code years later. The objective should be to make this as easy, efficient and non-hazardous as possible.

Just because you work in IT or software engineering does not mean your English is correct for the task at hand.

I would also stick with the "poser" term. I know my English is quite good and that is exactly the reason I write code in German. Too much poser's English has crossed by ways :slight_smile:

Writing 'German code' means I either do not care about people who don't understand any German, or I intentionally want to exclude non German speakers.

Just my 2 Cents.
-- Manfred

@manfredlotz
Or just don't need to share your code. And I guess more then 90% of all Software is closed source.

That's interesting.

[quote="frank_gerlach, post:24, topic:1972"]
As I said, most German software engineers are incapable of properly naming variables in English. This task is hard enough in your native language. [/quote]

That's true!
I need much more time to write english code and I'm too often unsure I named something proper.
Nonetheless we got taught it's bad practice to use german inside the code. Hence in my company we use english names and german comments our scripts.


No, i play with Rust since 2 months and was incapable to get from_str() down like I thought.

I think it's the proper way to use something like:

let fin_chars = fin.chars();
let foo = fin_chars.take(4).concat().parse::<u16>();
let bar = fin_chars.take(2).concat().parse::<u8>();

And i don't like to use "[b.next().unwrap(), b.next().unwrap(), b.next().unwrap()]" too.

Here I was referring specifically to Frank's String code which is meant for German speaking people only. At least, that's the message I got.

Closed source code (for instance in a company) is a totally different thing.
-- Manfred

Nobody stops you to use a good dictionary to infer the meaning of German words. It is more likely someone will understand my code if I use correct German than some form of Denglish that only I can fathom.

Maybe you suffer from Anti-German complexes from your Gymnasium education ? Don't worry, millions do.

Let's try to keep the conversation friendly and constructive please.

Hi Frank,

does this here

WDB211 : Baureihe 211 (neue E-Klasse) 
006 : Motornummer 
1 : Linkslenker (2=Rechtslenker) 
A : Herstellungsplatz (A is Sindelfingen) 
123456 : Folgenummer

mean that you are playing with Rust at home for fun & leisure using some stuff from work or does this mean that the German car industry got an interest in Rust?

Cheers, Oliver

Well, technically speaking it is my personal interest. But practically speaking, I might introduce the use of Rust in projects in German industry.

The serious issues of C an C++ and the whole cyber warfare thing will only get worse in the future. Think of "wireless assassination by attacking software-based radar and ABS brake".

Technical Intelligentsia must have solutions ready as soon as the managers realize the threat, so that we can respond with solutions.

Currently some industry players (sorry for not being more specific in order to not burn Karma) are rather naive in the security arena. They don't even proactively implement the measures we know since 1995 or so.

But a single incident can change this. Engineers must be prepared, as I said. Rust is a major tool in order to shore up security without the penalty in real-time capabilities you get with Java and C#.

Edit: Airbus had two very serious software-related incidents (one A320 autopilot attempting to crash the plane and an A400M testflight crashed). No cyber attack involved according to the official line, though.

The Iranians somehow managed to trick a US drone to land in Iran, which is believed to have been some sort of spoofing or software attack.

Russia claims to have disabled an Aegis SAM computer by wireless software attack.

Military discussion still centers around attack+defence of networked computers, but that certainly is a myopic view of things. ANY data channel can be used in order to inject malware into a complex system. Radar, ACARS, GPS, Sonar are all complex enough to have enough potential to send a virus via these data channels.

To paraphrase an expert "this is a world of apertures". "And behind each aperture there is a piece of software waiting to be attacked" - that is what I say.

I strongly think we need to kick the C and C++ habit - at least when using the C style of coding with plain arrays and plain pointers.