[ / / / / / / / / / / / / / ] [ dir / 55chan / animu / hisrol / int / leftpol / tacos / vg / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 023f24bfc21fec0⋯.jpg (6.35 KB, 273x184, 273:184, python.jpg) (h) (u)

File (hide): 930a35f3c754297⋯.png (3.24 KB, 225x225, 1:1, index.png) (h) (u)

[–]

 No.955673>>955734 >>955756 >>955952 >>956506 [Watch Thread][Show All Posts]

im a noob in coding and i started few months ago to learn c++ and realized that its kinda pain in the ass and i quickly lose motivation and i tought about maybe switching to python and then learning c++

what do you think?

 No.955679

lambda calculus


 No.955680>>955709

I started in C++, but the quick feedback from the repl would probably be really nice in the beginning.

However, the downside is that you will become a python dev and use this language to make big applications instead of using it as a scripting language and writing small scripts or using it in a notebook. Doing anything big in these types of languages is a nightmare once you go past 2 files or so.

Now you will observe python devs will do damage control and say things like "you write test cases to catch runtime errors" but probably has never written a single test for any of their python projects. Also you need to test every possible path to come close to a simple compiler.


 No.955683

C.Or Go if you like sucking dicks.


 No.955705

HolyC


 No.955706

learn a functional language


 No.955709>>956167

>>955680

It depends what you mean by "doing anything big" - I'll use portage and youtube-dl as examples. Youtube-dl generally is waiting for data, so there's no reason to write it in a different language. What makes portage slow is the calculation of the dependency tree/configuring, and (obviously) compiling. Rewriting it in a different language while maintaining its robustness would be difficult.


 No.955731

Learn Haskell


 No.955733>>955746 >>955756

When starting, go with something easy. I learned on BASIC and LOGO and now I do C/C++ for a living and kernel work. Today I'd recommend Javascript as a starter language. I think it's a better choice than python as you don't need any tools, can easily share your work, and you can do things with it that are relevant to your life as a massive faggot on social media.


 No.955734

>>955673 (OP)

>asks a question that doesn't deserve it's own thread

>can't capitalize

>can't punctuate

>thinks he can program

Fuck off you underage Indian faggot


 No.955746>>955789

>>955733

>virtually no type safety

>shit standard library

>callback hell

Not a good starter language tbh.


 No.955756

>>955673 (OP)

Python is OK as long as you don't try to stretch it beyond what it was meant to be. The nice thing about Python is the large number of libraries, you can make something useful in Python much quicker and easier than you could in C++. Just please don't turn into one of those people who learn only one language and then think that's the only language to be used for everything.

>>955733

Learning to program with JavaScript is like learning how to cook with medical waste.


 No.955789>>955794

>>955746

Again, the pros today learned on BASIC and LOGO. That's much less than "no types" yet they turned out fine.

What really matters in a learning language is that you get the skinner box feedback loop where you can attempt something relevant to your interests and quickly get a reward. So ask yourself which language today lets a kid easily get results that they would find rewarding? ML/PROLOG/Julia/LISP? Since this is /tech/ maybe I should mention the answer to that is "no".


 No.955793

don't be a nigger and learn C


 No.955794

>>955789

>ML/PROLOG/Julia/LISP

<"no"


 No.955796

Ruby or Crystal


 No.955933

CP/M or GTFO


 No.955952>>955957 >>956154

>>955673 (OP)

1. Learn C. It's infinitely simpler and no less powerful (also faster).

2. Learn C++ if you still feel the need to bother with objectively inferior languages.


 No.955957>>955964 >>955973

>>955952

C is just C++ with restrictions.


 No.955964

>>955957

very wrong


 No.955973>>956154

>>955957

C is C++ with some overarching design other than "let's see if we can cram everything in it". Plus, C has a good concept and core, but so much problems (stdint isn't used by the standard library functions, no good way to genericity other than macro hell, lacking a good way to handle unicode inb4 wchar, no way to check the integer overflow bit, no real arrays/not NULL terminated strings, etc...) that people still use it simply because there's no replacement.

C++, on the other hand, only keeps the problems without keeping the elegant philosophy. I'd rather learn the meme known as ADA than bother with C++.


 No.956075>>956441

Just go with Python.


 No.956154


 No.956167

>>955709

funny you chose youtube-dl as an example since I have a commit there which adds possibility to download from a website that was not supported, and THAT was a nightmare to get right, never again


 No.956441>>956442

>>956075

I'm learning python through Tim B.s class on udemy and it's good but I want more practice lessons. Any ideas?


 No.956442

>>956441

op = input('Are you OP? ')

if op == ('yes'):

print('ur a fgt')

my epitome of learning progress


 No.956506

>>955673 (OP)

>im a noob in coding and i started few months ago to learn c++ and realized that its kinda pain in the ass and i quickly lose motivation and i tought about maybe switching to python and then learning c++

>what do you think?

neither is really difficult to use for general stuff, but the syntax of both is very different... so learning one isn't going to help a whole lot with learning the other one

if you are stuck on MS Windows anyway, for fucks sake use Visual Studio/C++/C#. it's the best IDE for Windows, easily.

if you can't or don't want Microsoft-dependency, then python is probably easier to use and is fast enough for general programming,,, but C/C++ (of any variety) will run way faster

you can do big projects in either... but organizing big programming projects is mainly learned by doing big projects. the language you use isn't going to save you from that.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
26 replies | 0 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / 55chan / animu / hisrol / int / leftpol / tacos / vg / vichan ][ watchlist ]