Want to see more threads and images? Ask Bernd!
Bernd Wed, 27 Nov 2024 19:26:16 GMT No. 24904684 [Kohl] [Report thread]
Screenshot_20241127-202453_Xodo.jpg
489.51 kB, 1200x1920
What the fuck... Python is so much easier than C
Total posts: 30, files: 7 (Thread is alive)
Bernd Wed, 27 Nov 2024 19:27:38 GMT No. 24904689
bydon_bowerd.png
71.15 kB, 379x612
good_guy_python.jpg
110.57 kB, 625x833
keep-calm-and-code-python.png
33.97 kB, 600x700
python_is_simple.jpg
83.28 kB, 485x436
Bernd Wed, 27 Nov 2024 19:55:07 GMT No. 24904820 SÄGE! >>24904847 >>24904861 >>24904938
>>24904684 Ditch the phone first desu. Is "A" + "B" really that much easier than strcat(a, b)?
Bernd Wed, 27 Nov 2024 20:00:04 GMT No. 24904847
>>24904820 >strcat(a, b)? I have no idea what this means but yes python is so much easier to learn
Bernd Wed, 27 Nov 2024 20:00:49 GMT No. 24904853
I still have problems writing hello world program. Maybe i should try writing it every time i wake up
Bernd Wed, 27 Nov 2024 20:00:50 GMT No. 24904854
Yes, it is. t. coding in both for a living
Bernd Wed, 27 Nov 2024 20:01:01 GMT No. 24904856 >>24904873
Nobody uses C in 2024. You can do the same in C++.
Bernd Wed, 27 Nov 2024 20:01:40 GMT No. 24904861
>>24904820 >strcat(a, b) That doesn't do the same and yes, the C string library, actually most of the stdlib, is terribly designed and a pain to use.
Bernd Wed, 27 Nov 2024 20:02:38 GMT No. 24904865
#include <stdio.h> int main() } printf("Hello, World!"); return:0; { // how did i fuck this nigger shit up this time? Lets see
Bernd Wed, 27 Nov 2024 20:03:47 GMT No. 24904871 >>24904874
#include <stdio.h> int main() { printf("Hello, World!"); return 0; }
Bernd Wed, 27 Nov 2024 20:04:17 GMT No. 24904873
>>24904856 I use it
Bernd Wed, 27 Nov 2024 20:04:18 GMT No. 24904874 >>24904878
>>24904871 Careful or the garlic will come and tell you that you didn't check for errors on printf
Bernd Wed, 27 Nov 2024 20:04:45 GMT No. 24904878 >>24904891 >>24904904
>>24904874 Nobody checks for errors, but he forgot the newline.
Bernd Wed, 27 Nov 2024 20:06:24 GMT No. 24904891 >>24904896
>>24904878 damn. Fucking newline. I thought i didnt need it.
Bernd Wed, 27 Nov 2024 20:07:26 GMT No. 24904896 >>24904898 >>24904907
>>24904891 Python prints a newline automatically.
Bernd Wed, 27 Nov 2024 20:07:43 GMT No. 24904898 >>24904907 >>24904908
>>24904896 Python seems much easier. I understood the start perfectly
Bernd Wed, 27 Nov 2024 20:09:04 GMT No. 24904904
>>24904878 I don't understand how you replied to my joge post seriously
Bernd Wed, 27 Nov 2024 20:09:23 GMT No. 24904907
nullpointer.webm
729.04 kB, 640x360
>>24904896 >>24904898 Nigger language for nigger brains
Bernd Wed, 27 Nov 2024 20:09:27 GMT No. 24904908
>>24904898 The problem with these "easy" languages is that you don't understand the complex things that are happening under the hood and end up writing broken software.
Bernd Wed, 27 Nov 2024 20:15:03 GMT No. 24904938
>>24904820 imho, the latter tells you about the types, which might be helpful, especially when working with variables
Bernd Wed, 27 Nov 2024 21:29:14 GMT No. 24905436 >>24905439 >>24905542
#include <stdio.h> int main{ printf("Hello, World!\n" return 0 }
Bernd Wed, 27 Nov 2024 21:30:22 GMT No. 24905439
>>24905436 Im such a fucking retard nigger gorilla
Bernd Wed, 27 Nov 2024 21:45:19 GMT No. 24905542 >>24905953
I encountered a "bug" in the Python standard library recently, @atexit.register doesn't work in child processes. >>24905436 print("Hello Bernd! :3") :knoblauchhunt:
Bernd Wed, 27 Nov 2024 21:46:04 GMT No. 24905548
hisss.mp4
1.02 MB, 478x854
cataclysm-dda.png
32.31 kB, 801x168
Yes it's a good language, safe and well designed, but programming good and quality code is dificult sir
Bernd Wed, 27 Nov 2024 21:55:17 GMT No. 24905605 >>24905618
python is first language I learned, I hated other languages after that, because of how overcomplicated they felt, python has some cool stuff, for example everything is an object, so you can pass functions to other functions like an argument, or the list comprehensions
Bernd Wed, 27 Nov 2024 21:57:14 GMT No. 24905618
>>24905605 >pass functions to other functions like an argument You can do that in any non-toy language, including C.
Bernd Wed, 27 Nov 2024 23:11:08 GMT No. 24905953 >>24905963 >>24906634
>>24905542 Another Python thing that caught me off guard recently, bool is a subclass of int. >>> isinstance(True, int) True Kinda gay.
Bernd Wed, 27 Nov 2024 23:13:33 GMT No. 24905963
>>24905953 that's how i know you didn't write c/cxx
Bernd Wed, 27 Nov 2024 23:14:39 GMT No. 24905967 >>24905983
>'alice' * 5 didn't know that. would have done a loop
Bernd Wed, 27 Nov 2024 23:18:25 GMT No. 24905983
>>24905967 A more useful version of this is with lists: [1] * 5 Also addition: [1] + [1]
Bernd Thu, 28 Nov 2024 02:52:54 GMT No. 24906634
>>24905953 makes sense, they use the same word length
Thread interest score: 5.8 Thread size: 96.56 kB