Details
-
SkillsStarted my journey with PLC programming during my apprenticeship. At university I learned C and Python, at my new job it's mainly C# with some (horrible) short trips to VBA.
-
LocationBavaria
Joined devRant on 1/13/2020
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Do you guys listen to any programming podcasts which do not just center around one particular programming language? Any podcasts regarding topics like universal programming concepts, history of programming etc. At the moment I'm listening to Command Line Heroes (from RedHat) but I have almost listened to every episode and need new stuff :)
-
Found an old manual in the basement which explains the PC user how a mouse works. Approximately from 1990ish
-
Wow I hate VBA... What a fucking shitty syntax:
For x in y
...
Next x
If x Then
...
ElseIf y Then
...
End If
While z
...
Wend
WTF even is this? Wend? WTH! Why can't you just use a End While? For fuck sake I hate this language31 -
Last year I had to program most of my projects in Python. I like the language, don't get me wrong. But man oh man if you indent your line of code one too many fucking times, it can be such a pain in the ass to find your error...
Even if it may clutter your code (not in my opinion), that's why I love them curly brackets and languages which use them <39 -
The time to write an essay about programming in fucking LaTeX for the first time takes too fucking long!14
-
After a long time just reading your posts, here's my first post:
Just for clarification: I'm studying electrical engineering in Germany. During your time at university, you have to work half a year as a intern to get some practical experience. So I'm in a position where I mainly have to say "yes" to work that is given to me. Also I'm working with a lot of PLC programmers, so I'm nearly the only one who programs non-PLC stuff at the department.
But now it's time for my rant (and also my most satisfying optimization ever). In the job interview for the internship, my task at the company was described as C# programmer. I only programmed C and Python before, but C# looked interesting and so I learned C# from ground up in the summer before the internship. I quite liked it and I was really happy on my first day of work. Then I was greeted with this message: "I know you are hired as C# programmer, but could you please look into this VBA program, it takes 55 seconds until it finishes its task and that's to slow". So I (midly angry because I had to do VBA and not C#) started the program and it was really horribly slow (it just created a table with certain contents from a very big imported symbol file). I then opened up the source code and immideately saw bad code. The guy who wrote it basically just clicked on the macro recording button and used the recorded mouse clicks in the source code. The code was like: Click on cell A1 -> copy cell A1 -> move to sheet XY -> click on cell A2 -> paste copied stuff and so on... I never 'programmed' in VBA before, so I used my knowledge of 'real' programming languages to do this task. After using some arrays and for-loops, which did not iterate over all the 1.000.000 unused cells after the last used one, the program took only 3 seconds after it finished the new table! Everybody was quite impressed, which led to much more VBA optimization... That was clearly not my goal haha :)9