Details
-
Aboutsome random dude on the internet
-
SkillsC, C++, C#, Visual Studio, somewhat confident with Linux, currently glueing together a programming language
-
LocationGermany
-
Github
Joined devRant on 2/28/2017
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
-
So after exactly 30 minutes of building a basic interpreter (yes I'm back on the interpreter wagon) in python, I have once again come to the conclusion that python can go fuck itself with its backwards and inconsistent syntax with needlessly over worked and backwards data structures...
Would rather work in fucking COBOL at this stage...3 -
So it's been a while I posted here... but today I got an logo.docx after I asked for an Vectorgraphic. That's it. I'll quit my job and become an ex google techlead on youtube!1
-
Team: * hands over release to QA
QA: Release broken. It doesn't load any entries from the test system.
Me: Not possible. It works perfectly fine in our environment and we haven't touched that logic in weeks.
A couple of days later...
QA: It seems that we accidentally deleted all the entries from our environment. We'll apply a backup.
Team, clients, air wasted to keep these people alive:5 -
unpopular opinion: maybe updates would take under <super long time that's overblown> if you did it more often. Also defrag your standard HDDs like every month (weekly if you really want the performance boost)8
-
Starting a new job tomorrow as a junior Java developer. Let's hope this works out better than my last job which was supposedly also as a java dev but involved zero code writing2
-
CI/CD is probably the best thing that I ever learned about in the software engineering field.
Whenever I merge into master, my code automatically builds and the artifacts are uploaded to a new release on github.
Beautiful.4 -
I love my job. Minus that 1 stupid guy who I don't understand how he was hired. And minus one of the managers messaging me after hours to do work. Everyone else is alright, need to find a way to hide from that manager and work on projects exclusively with other managers D:
Anyone else ever felt like hiding from management? Lol1 -
GOD DAMN THE STUPID IPTABLES, aaaaah!
Today I learned that
iptables -I INPUT -i !lo -j DROP
and
iptables -I INPUT ! -i lo -j DROP
are two completely different rules, the first of which doesn't work (in ~99.9% of cases)
yet both pass and get added to the firewall. And both rules show exactly the same in the state listing (iptables -L -n -v).
And I was wondering why the hell the firewall wasn't working...8 -
A friendly reminder that Deutsche Bahn fucking sucks.
Their trains show up 10 minutes later than they would have to everyday.
Once I saw that there was a train that was 120+ minutes late.
Today I had to wait almost 20 minutes at a SINGLE train station. Thus I couldn't enter the next train.
To my luck the next train arrives in an hour.
EDIT:
As a student it makes my life way harder than it already is.
It is not reliable at all.
They charge you with 60€ if you forget your ticket btw.
I don't forget my ticket though. My ticket is my campus card.
Their tickets are fucking overpriced and they are always damn late. I ain't paying for that shit. I would rather ride with a horse to the university than paying for a ticket.
Second EDIT as an update:
They just announced that my next train is going to come 10 minutes later. What a bloody surprise, eh?28 -
Just generated a postgres (postgis) database of 456gb. Need to copy it to my own pc....
*tries scp'ing*.........*10mbs*.........................
*alright, lets try this with rsync*....*10-20mbs*......
.
.
*compresses the entire database into a 241gb file*
*moves the file to the root of the webserver*
*starts downloading with axel*.....
108mbs!
Those tiny 'hacks' can be fun.6 -
Found this on my university's webpage. The course this webpage belongs to is called 'Web Programming'16
-
Fuck! My brain just had a catastrophic forgetting!!
I can't remember the PIN of my Android phone that I'm using right now. Luckily, I'm still in because of my finger print but won't help is phone restarts.
Seems like your can't reset PIN without entering previous PIN.
Help!15 -
Top 12 C# Programming Tips & Tricks
Programming can be described as the process which leads a computing problem from its original formulation, to an executable computer program. This process involves activities such as developing understanding, analysis, generating algorithms, verification of essentials of algorithms - including their accuracy and resources utilization - and coding of algorithms in the proposed programming language. The source code can be written in one or more programming languages. The purpose of programming is to find a series of instructions that can automate solving of specific problems, or performing a particular task. Programming needs competence in various subjects including formal logic, understanding the application, and specialized algorithms.
1. Write Unit Test for Non-Public Methods
Many developers do not write unit test methods for non-public assemblies. This is because they are invisible to the test project. C# enables one to enhance visibility between the assembly internals and other assemblies. The trick is to include //Make the internals visible to the test assembly [assembly: InternalsVisibleTo("MyTestAssembly")] in the AssemblyInfo.cs file.
2. Tuples
Many developers build a POCO class in order to return multiple values from a method. Tuples are initiated in .NET Framework 4.0.
3. Do not bother with Temporary Collections, Use Yield instead
A temporary list that holds salvaged and returned items may be created when developers want to pick items from a collection.
In order to prevent the temporary collection from being used, developers can use yield. Yield gives out results according to the result set enumeration.
Developers also have the option of using LINQ.
4. Making a retirement announcement
Developers who own re-distributable components and probably want to detract a method in the near future, can embellish it with the outdated feature to connect it with the clients
[Obsolete("This method will be deprecated soon. You could use XYZ alternatively.")]
Upon compilation, a client gets a warning upon with the message. To fail a client build that is using the detracted method, pass the additional Boolean parameter as True.
[Obsolete("This method is deprecated. You could use XYZ alternatively.", true)]
5. Deferred Execution While Writing LINQ Queries
When a LINQ query is written in .NET, it can only perform the query when the LINQ result is approached. The occurrence of LINQ is known as deferred execution. Developers should understand that in every result set approach, the query gets executed over and over. In order to prevent a repetition of the execution, change the LINQ result to List after execution. Below is an example
public void MyComponentLegacyMethod(List<int> masterCollection)
6. Explicit keyword conversions for business entities
Utilize the explicit keyword to describe the alteration of one business entity to another. The alteration method is conjured once the alteration is applied in code
7. Absorbing the Exact Stack Trace
In the catch block of a C# program, if an exception is thrown as shown below and probably a fault has occurred in the method ConnectDatabase, the thrown exception stack trace only indicates the fault has happened in the method RunDataOperation
8. Enum Flags Attribute
Using flags attribute to decorate the enum in C# enables it as bit fields. This enables developers to collect the enum values. One can use the following C# code.
he output for this code will be “BlackMamba, CottonMouth, Wiper”. When the flags attribute is removed, the output will remain 14.
9. Implementing the Base Type for a Generic Type
When developers want to enforce the generic type provided in a generic class such that it will be able to inherit from a particular interface
10. Using Property as IEnumerable doesn’t make it Read-only
When an IEnumerable property gets exposed in a created class
This code modifies the list and gives it a new name. In order to avoid this, add AsReadOnly as opposed to AsEnumerable.
11. Data Type Conversion
More often than not, developers have to alter data types for different reasons. For example, converting a set value decimal variable to an int or Integer
Source: https://freelancer.com/community/...2 -
Please understand the three types of brackets are parenthesis,curly brackets and square brackets
Respect the parenthesis! They aren't "ROUND BRACKETS"10 -
"If you find an element of your interface requires instructions, then you need to redesign it." - Dan Rubin5
-
Dev1: "How did you wrote this code? It causes bug on production."
Me: *checks on gitlens*
"Dev1... 3 months ago"1 -
Are we sure reading this isn't going to have an effect on my eyes..? Or in that fact, on my mental health??
Like does anyone think to themselves, "I wouldn't want to read that," and actually change it so the next person isn't going to want to do a table flip meme style and walk out the door?
At least add spaces between your lines so my eyes don't bleed out...5 -
We were in a c class learning about pointers, the teacher was doing small stars on the board to explain the basics of them.
After a short while we all understood, or so we taught.
Someone asked about double pointers, so the teacher put 2 stars on the board to explain. THEN THE IDIOT OF THE CLASS GOES AND BLOODY ASKS IF WE COULD REPLACE THE 2 STARS BY A BIG ONE.
I MEAN OF COURSE JUST PUT A STAR EMOJI TO MAKE A DOUBLE POINTER.
The legend still lives on as he got kicked for an unknown reason🤔.3 -
It's ironic that posts asking for upvotes are a frequent source of upvotes for the people who reply, saying, "don't ask for upvotes."4
-
Four semesters in. As a class we’ve learned Java, SQL, HTML/CSS, JavaScript, C++, C#, and a small amount of PHP
We’ve built databases, websites, apps for phone and desktop, and we’ve toyed with game development in unity
We’ve used multiple IDE’s with differing pros and cons, virtual machines, server development stacks (XAMPP), data structures, and we’ve used multiple sorting algorithms to learn their differences.
Some things on here are immensely more difficult than others. If at 4 semesters in you still don’t know how to AT LEAST google your issues for 10 minutes or even READ THE DAMN BOOK, then please don’t bother asking TA’s for help we have our own assignments to do and can’t afford spend an hour working with you to fix your code while you just ignore our suggestions
Four semesters in you should know where to find help online and if that doesn’t work, how to ask for and accept help. If you can’t then I’m sorry. I’m going to spend my time helping others, before I waste my time trying to help you7 -
DevRant is not “9GAG for developers”. Stop putting your shitty jokes into rant section. There is a “joke” section to quarantine you people.
Tired of seeing “Trust me i am engineer” facebook group types jokes...17 -
Of course I'd like to develop something I actually care about and make money out of it, but since I'm still in uni my short term vision is finding a job as a developer. Gotta bring that bread on the table, and maybe start having a life (not necessarily a social one).
-
We have a standalone api acting as a legacy adapter to our actual api, and as you can imagine it's a festering hellpit of hacks and workarounds which is not intended to be maintained after its EOL.
I recently had a dream - more of a nightmare - where our actual api had to support the legacy calls indefinitely.
I told our PO about it as a funny anecdote and he gave me 3 days off. -
Today I couldn't decide if I wanted an h4 or a p so my fingers did the most intelligent thing available and went with "<hp>"
Smh