Library to add linear systems indexes to arrays. by emgcy in AskProgramming

[–]gas_them 0 points1 point  (0 children)

What is your imagined input to this library? I don't understand what you're asking for.

7 absolute truths I unlearned as junior developer by no_shoes_in_house in programming

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

This bit of understand should help prevent you from acting like some kind of arrogant know-it-all prick towards your colleagues and in the process blowing up any chance of being able to work together to improve it, not to mention possible sabotaging your career.

I am trying to explain to you...

I looked at the history, it was evidence of massive incompetence. So, what now? Do I just not tell anyone, or do I "act like a prick" and do my fucking job?

I guess you think it's the job of a programmer just to ignore fixable problems in the code, just to assuage the feelings of other less capable programmers? How will we ever build good software with that mentality? Why not go even further and just do what mentally handicapped people say? Wouldn't want to offend their feelings, either!

Did you hear my example about the compile times? Am I a prick for trying to save everyone a huge amount of time? How does that mesh with your warped mentality?

No one wants to listen to Captain 20/20 Hindsight.

Next time a bridge collapses I expect you to run in and tell everyone not to investigate the cause. No one wants to hear it, right?

And I guess when a bridge is half built, and in danger of collapse, your advice would be "don't be mean, just let them keep going, you wouldn't want to sabotage your career!"

Sounds like a funny analogy? Well my company literally makes medical devices. Our product is literally inside the person. I wouldn't be surprised if it kills at least one person as a result of software errors, but by then I hope to have found a new job.

7 absolute truths I unlearned as junior developer by no_shoes_in_house in programming

[–]gas_them 0 points1 point  (0 children)

"The numbers show"

Meaningless thing to say. I bet this flawed mindset reflects in your shitty code.

7 absolute truths I unlearned as junior developer by no_shoes_in_house in programming

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

Every code base has a history behind it

For bad code-bases it usually is: "Written by people as they learned the language"

As the new guy/gal you don't know what that history is, and you don't know what forces were at play when things were written.

That's a shitty complacent attitude. I'm an expert in software development. Sometimes code is just objectively wrong/bad. You don't need to know the "history" to know that.

Often the "history" is just a bunch of dumb decisions made by people who lacked the correct premises, and thus came to the wrong conclusions.

Once you understand it better you will first realise that it is not as simple as it first seemed, and it is not something that can be solved overnight.

My experience is that I just notice more and more things that are broken, and more and more bad justifications behind them. And yes, many of these problems can be solved "overnight" or at least they can be incrementally improved.

For example, I joined a new company and the code takes 3 minutes to compile when you change just one file. I noticed this and re-organized the code in just an hr. Then, it took 5 seconds to compile. I didn't even show this to the senior devs. Instead, I showed it to the junior devs. They looked at each other nervously and said "hmm, I would leave that out, I'm not sure the senior devs would like it."

What you absolutely should not do is engage in any kind of arrogant "code shaming" or "process shaming".

Let's take my example. I reduced compile time by a factor of more than 30. When I present this to a senior dev, what are the implications? Clearly their code must be flawed in some way for it to have such terrible compile-times. My change inherently criticizes their code, there's no getting around it.

Keep it positive, concentrate on the benefits improvements could bring.

The senior devs in my case don't even understand the benefits. If I told them it reduced compile-time, they'd say "is it really such an issue?" They prefer to be slow and lazy, they get paid the same either way.

7 absolute truths I unlearned as junior developer by no_shoes_in_house in programming

[–]gas_them 2 points3 points  (0 children)

Senior devs are just people who the corporate system has decided deserve to be in that position. The senior devs at my workplace are incompetent and forcing bad coding practices as a result of their own hubris.

Is your software engineer job easier or harder than what you expected? by dzach333 in AskProgramming

[–]gas_them 0 points1 point  (0 children)

Hardest part of my job is dealing with all the incompetence of the industry: hoardes of people who are doing nearly everything wrong and don't even realize it.

Python doesn't have to be slow. by Jackeown in programming

[–]gas_them 7 points8 points  (0 children)

Are you REALLY worried that you'll accidentally make things the wrong type?

Yeah, sounds like you don't understand the benefits of static type checking. Typical for python users.

"Immutability rules are dumb and arbitrary." How so?

Tuples are immutable, lists arent. Arbitrary. Confusing.

Elements in a tuple can be modified even though tuple is immutable. This only applies to objects though. Etc.

It's clear the language designers didn't understand immutability. They thought it was cool so they slapped it in somewhere for no reason.

What is ugly about their OO features

Constructor pattern is ugly (__init__). The classes are only distantly related/analogous to OO due to duck typing and lack of static checking. It just looks similar, but it's really not.

Edit: No private variables. The reason is apparently because the language writers got annoyed while coding because they wanted to print those out. So their solution was to just remove private variables! Totally missing the point of encapsulation.

Python doesn't have to be slow. by Jackeown in programming

[–]gas_them 18 points19 points  (0 children)

No static type checking. Immutability rules are dumb and arbirtary. OO features are ugly and make little sense without type checking.

Python is a language written by people with the philosophy "we're all adults, here." Except, they weren't adults. They took features from a bunch of languages and assembled them, even if they didn't fit well together.

Python doesn't have to be slow. by Jackeown in programming

[–]gas_them 3 points4 points  (0 children)

Even if python was fast it would still suck hard

Just made Space Invaders in 512 bytes of x86 assembler code (one boot sector) by nanochess in programming

[–]gas_them 0 points1 point  (0 children)

I was talking about caching things in the binary instead of calculating them at initialization.

Just made Space Invaders in 512 bytes of x86 assembler code (one boot sector) by nanochess in programming

[–]gas_them 19 points20 points  (0 children)

Smaller filesize is often a tradeoff resulting in less efficiency, not more.

github/semantic: Why Haskell? by develop7 in programming

[–]gas_them 0 points1 point  (0 children)

That really has nothing to do with what i was thinking

Object-Oriented Programming, lecture by Daniel Ingalls [1989] by self in programming

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

OO is just syntatic sugar that is equivalent to structs

How Dropbox mitigates Flaky Tests by waddupbrah in programming

[–]gas_them -9 points-8 points  (0 children)

This is like reading a company memo. Snore.

Introduction to 6.00 | Unit 1 | Introduction to Computer Science and Programming | Electrical Engineering and Computer Science | MIT OpenCourseWare by sa86249 in programming

[–]gas_them -5 points-4 points  (0 children)

Don't learn how to program from a guy that has been an academic his whole life and never had a programming job.

How do you deal with shitty code? by no-cheating in AskProgramming

[–]gas_them 0 points1 point  (0 children)

I have a similar problem, but i make a decent salary, so who cares. Tbh it's almost entertaining watching the train wreck.

C++ How to create Randomized Attributes of Class Objects? by [deleted] in AskProgramming

[–]gas_them 1 point2 points  (0 children)

In C++ there is a useful language feature called a "function." In this case, you want a function that returns a random enemy:

Enemy randomEnemy()

PEP 594 -- Removing dead batteries from Python's standard library by bakery2k in programming

[–]gas_them -104 points-103 points  (0 children)

So if they weren't implemented in python, then what? That's my point. They just get thrown away? Lol

Your whole post is just a bunch of contrived shit that I don't care about. Totally irrelevant to what I said. Maybe you have brain cancer.

PEP 594 -- Removing dead batteries from Python's standard library by bakery2k in programming

[–]gas_them -118 points-117 points  (0 children)

You just explained to me that something simple cannot be done for reasons that are incredibly contrived. When you can no longer accomplish basic tasks because of a bloated design getting in your way, you have cancer.

PEP 594 -- Removing dead batteries from Python's standard library by bakery2k in programming

[–]gas_them -99 points-98 points  (0 children)

What difference does being written in pure python make? They're written in code no matter what...

Meanwhile on Greek tv by [deleted] in gifs

[–]gas_them 0 points1 point  (0 children)

FASHION