Ranter
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
Comments
-
@Frederick absolutely true.
Python sucks.
That's my contribution to the question and the confirmation for @Frederick statement. -
Type checking makes your application more predictable. Functional programming makes it more or less provable. This means any well written application in a language with a proper type system is more maintainable than any application in purely dynamic language.
-
kiki352564yTabs are superior to spaces. There is no need for semicolons in modern JavaScript. Code style consistency is a religious dogma and you don’t need it. Html, css, mp3, bmp and other formats are programming languages but json is not. Robert Martin is an idiot and his opinion should mean nothing.
-
I hate frameworks. I hate every single one, from react and angular through CakePHP and all Laravel, and all of them. Express I can endure... I also can't understand how can somebody be react dev without knowledge of javascript.
-
I also hate typescript, for me, it's like vegan meat. I'm also vegan by the way...
-
WhyMe664yYou should know how something works before just randomly picking the latest buzzword blackbox off the shelf to hide it all. - How the hell are you going to debug something you don't understand
-
Meta-programming via annotations is the worst!
I understand the necessity for quick implementation of crosscutting concerns via 3rd party code. But now you have invented a second programming language that sits (literally!) on top of my actual code.
bro, you high? plz staph :( -
Reinvent the fucking wheel!
Often, packages made by others are barely passable in terms of quality -- they made a square wheel.
Instead of installing other people's public packages, no matter how popular that package is, there's no shame in reimplementing or even just largely copying their code into your own codebase.
The added advantage is that it becomes much easier to deal with breaking language/framework changes: When you rely on 300 vendor pacakges, you have to wait for hundreds of other developers to get the compatibility on their (often abandoned) libraries in order.
Of course, I don't think you should just throw your package manager completely out of the window -- just that writing a maintainable IBANValidator module yourself and throwing it in the right directory might be less work than figuring out which version of a random iban-validator package is compatible with your framework & use case. -
@SuspiciousBug Ideally, metaprogramming should be supported properly by the language.
For example: PHP Docblocks are kind of a dirty abuse of commenting syntax, but the upcoming PHP 8 Attribute system uses a somewhat better system (even though it's too limited for my tastes). It introduces some new syntax to mark methods, variables, etc with attributes -- but the handling, the defined attribute itself, is an easy-to-understand PHP class.
Rust Macros are an example of a very good (in my opinion) metaprogramming system. It goes beyond just attaching metadata, into the territory of true metaprogramming: Code which writes code for you.
So whenever you find yourself writing out boilerplate, you can just macro out the boilerplate. But it does so with a standardized structured syntax. -
Creating websites was a lot more fun when it was simply HTML, some CSS, and occasional Javascript. The contortions of build tools and task runners and frameworks that take hours to set up and maintain took the joy out of all of it for me.
-
Python sucks, in fact most interpreted languages are awful to use
Just give me properly typed variables/parameters -
ars140654yUnless you code something YOU want to create, programming ain't as fun as you're led to believe.
-
C++ is a great language.
Python is fun to program.
Functional programming is just another approach to programming.
MSVC is actually usable now.
Puning is a useful technique.
HTML is a great programming language. -
Always write unittests first. And do not test every unit -- only test the units that represent your functionality, i.e. only test those parts that you create interfaces for [assuming you do].
- These tests will be your guidelines keeping you on the track while you're building the feature.
- These tests will not be a PITA when you are refactoring your implementation details
- These tests will cover your implementation details completely (with a single exception of hard-to-repro error handling)
I deem it unpopular because TDD fans urge us to cover every bit of code with tests, i.e. test almost all the units. That's tedious work and it slows our refactoring down. While a set of high-level-unit tests does the same job perfectly well and does not get in your way when you want to refactor things. -
@c3r38r170
I find it useful in some places:
class ClassName : public Something
: Something()
, m_var(5)
, m_string("hello") -
>90% of everything on GitHub is absolute garbage. 50% of that code is nicely branded and used by the mainstream.
-
@pxeger cPython is slow. Many of the libraries/frameworks encourage bad practices (e.g. Django using foreign key references to create synthetic fields on foreign classes at runtime). It has its uses but serious application/service programming outside of scripting is not one of them.
As with every language, it has its uses. -
@pxeger
- Developer productivity is not more important that maintain bility, performance, etc. in many, many cases. You wouldn't write a firewall in Python.
- I know exactly what python is used for. It is, 100% undeniably, classified as a scripting language. It is an interpreted language that is embeddable within another runtime. It is a scripting language. It being used in production means nothing about its classification.
- Yes there are. Many of them encourage bad practices.
EDIT: further, I said cPython is slow. Not Python. Python doesn't have performance, it is a language. A language's performance is not measurable. -
Avyy7524ySpaces vs tabs dispute is pointless. Tabs are for indentation, spaces are for alignment. Do not use space for indentation, and do not use tab for alignment. If you are using tabs only or spaces only for both indentation and alignment, go stab yourself and die.
Peace. -
@pxeger
Python (And plain JS, and PHP, and Rails, and...) is great for productivity right now, but not so much for productivity later.
It's a loan with interest.
Setting up a Django or Laravel or Express project will get you a working prototype of a website. Within 24 hours you have a usable website.
Now imagine you REALLY ACTUALLY hold the next Uber. You get your Series A, you hire 200 developers and buy pingpong tables and a life-sized golden Charizard fountain posing in a marble floored toilet (Yes, a certain Fintech startup on Amsterdam Zuidas, I'm looking at you).
When people ask "does Python/PHP/Ruby/Js/etc scale", the right question would actually be: Does the paradigm of weakly typed monolith scale?
200 developers working on a Python repo will become frustrating. Maintaining two or even twenty million lines of PHP in a monolith is suicide.
Weak languages have their place. That place is in rapid prototyping.
After that phase is over, all hail Rust. -
@bittersweet Haha, I'm arguing both sides it seems.
I worked for Uber corporate. Most of the company is using Python or Java. Just the last few years they've been pushing Go, but nobody will use it because Go is terrible. -
@AvyChanna
Agree that the dispute is pointless, but not for the same reason. Just set your IDE to "conform to project".
And when it comes to curly bracket placement after methods: Your eyes get used to all kinds of formatting, as long as it follows a predictable, consistent pattern.
Discussions about code style simply don't matter enough, when there are more important discussions about code structure, logic & safety to be had. -
@pxeger Python is slow if you don't code in an idiomatic way. You have to learn to "push to the internals" to take advantage of the C side of the language. If you try coding python the same way you code C++ it will be slow. No it won't be as fast as a C++ program, but it isn't a dog either. If you really need to speed something up you can write a module in C/C++. Another option is using a JIT library to speed up specific functions. If high performance is the main criteria then Python probably isn't the right tool.
-
kiki352564y@pxeger
- python slow without pypy can’t change my mind
- dependencies are hell, django has its own dependency management
- 2 vs 3, boubas still be using 2
- ‘3’ * 3 = ‘333’ -
kiki352564y@pxeger this is super prone to errors especially when interacting with apis. It’s also unpredictable. I want it to be 9 or “9”
-
@pxeger Unpopular opinion: I think dynamic vs static and strong vs weak is ambiguous and stupid.
Anything with a type system weaker than Haskell's S-tier type system is weak. 🤷♂ -
Unpopular opinion (maybe?)
I think both MVC monolithic backends and microservices are evil extremes.
MVC (and any other related 3 or 4 letter paradigm) is evil because grouping code by syntactic similarities is simply insane. You never think "today I will work on all my controllers" or "sheez, our users really would like more middlewares and views" — you're working on the user profile system, or order system, or invoice system. Some systems might need routes & views, others might only act upon crons, or react to events from other systems.
But microservices are also evil: when you try to simplify your code to the extent where all complexity moves to the infrastructure layer and decoupling is forced to the extent that data consistency is suffering, you have gained nothing.
Microservices are a bridge too far.
Miniservices is where it's at. -
@hashedram It's not a shitstorm, more of a crusade, a holy cleansing, in which the unfaithful will either submit to the righteous path or be vanquished and made to suffer eternally as retribution for the foul stain that is the runtime error...
Ah, yeah... I see it now too. That comes off as a bit strong 🤔 -
kiki352564y@AvyChanna nice strategy of defending your fragile mindset of enjoying your inferior programming language by insulting other people and other languages, I rate it solid 7/10 👍
-
kiki352564y@Demolishun a language requiring some additional shit to be at least comparable to proper languages in terms of performance? Js has an excuse of being a language that can’t be fucking updated by releasing a new version because browsers and compatibility. What excuse does python have besides guido being megalomaniac?
-
gibus4054y@uyouthe Case in point: Fortran has excellent performance, decent legacy code, and yet, I haven't used it since 2005.
Obviously Python has objectively bad performance when compared to other languages, everyone knows that. The "excuse" is that it doesn't matter.
Data scientists and engineers would much rather spend an hour coding from a plethora of legacy code and then run it over 5 minutes to gain a solution than spend significantly longer coding, with limited legacy code, and then wait for a compiler, but get the answer in 5 seconds. It's just not justifiable in most cases, unless you're running the code over and over and it's taking a long time, in which case; python doesn't get jealous, you can still use another language. -
Avyy7524y@uyouthe Not defending python there. I am not even a python dev. Just use it for side projects when I want to hack something together quickly.
But really, who TF thinks that '3'*3=9 is acceptable? That is shitty design.(though '333' is also shitty) Also, you did not answer the second question. What is 'a'*3, or 'aaa'*3 -
Not sure if this is unpopular but;
I think that you shouldn't be allowed to program on projects that people depend on/can use when you don't take care of security and/or fuck over user privacy (by using Facebook/google/surveillance services and/or tracking etc) -
nitnip18144yI'm getting sick of freelancing. I want a senior dev in my life to tell me what to work on because I'm shit at organizing my tasks or even chosing one to start.
What unpopular opinion do you have about programming?
question
unpopular opinions