Is THIS Clean Code? #programming #coding #computerscience

preview_player
Показать описание
Do you think THIS is clean code? I do.

Current Sub Count: 8,110

Music In This Video:
(I do get benefits from the above link)

WHO AM I?
Рекомендации по теме
Комментарии
Автор

It's readable if you know how to "read"

skidls
Автор

I would need to take more time to decode something like “::-2” but the example in the video is very recognisable

meraldlag
Автор

I‘d say helloBackwards = „hello“[::-1] would be the preferred option, so it’s short but everyone knows what’s going on

simonkraemer
Автор

My goal has always been to have the absolute minimal amount of code to do the task.

techinterview
Автор

It's readable if you show it for more than 0.3 seconds at a time

Zender-
Автор

string.reverse() is readable and understandable to anyone who speaks English. string[::-1] is only understandable to people who speak Python.

davidsnyder
Автор

As a python programmer you should really need to understand slicing, so i dont see a problem doing this, but it would be more readable with reverse() function obviusly

clownfiesta
Автор

And people call this a beginner friendly language

devhashira
Автор

One of the best things about python! Slicing methods. Who's trying to read a language they don't understand anyways?😅

sohaibaftab
Автор

I believe senior programmers tend to avoid syntactic sugars because most of them are language specific. If you have a member who isnt particularly fluent in a specific language (trust me happens very often) then it might take more time to comprehend and thus develop/update

alexCoby
Автор

For me, it's not readable. But only because I never programmed in Python... only because of that.

ihtihgtrzhijj
Автор

Anything else then assembly is readable 😂😂😂

navoJ
Автор

I discover new python syntax pretty often. Python has a lot

viraatkumar
Автор

I understand the point: it's kinda impossible to infer that logic from that piece of code only if you don't know python. Then, it's kinda obvious and clear.

abaurre
Автор

If they cannot read, they cannot read

engineerLambda
Автор

Did these people forget that comments exist?

youreyesarebleeding
Автор

It is perfectly fine.
Its about the language you use.
Go work with java if you hate it

syedalimehdi-english
Автор

Just write a comment along side stating it reverses the string




Edit: only if you feel like it's unreadable

jaisonlasrado
Автор

As long as it works and is efficient you can always clarify by comenting the code, readable is subjective so git gud son

sebastiant
Автор

people who don't know python won't understand,
it is readable.

BigLucyMusic
join shbcf.ru