Comment on: Is it a good idea to start learning programming with JS?
0 30 Nov 2019 23:55 u/psimonster in v/programmingComment on: Can you get a job as a self-taught programmer?
You can do it. Keep refining your skills and learning best practices and keep hustling for jobs.
Comment on: Python overtakes Java to become second-most popular language on GitHub
Only when I briefly used mod-python's Python Server Pages did Python's blocking scheme prove at all problematic.
Comment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
Java and Node both surprised me, too, but especially the latter. I'll definitely give Node a closer look after this.
Very disappointed with Python today. Even an 8+ year old version of SpiderMonkey I have lying around finishes the task in one third of the time.
I did the optimized C test incorrectly. It looks like the compiler skipped the algorithm entirely because it didn't see any reference to the result. After the fix it finishes in 75-80 ms.
Comment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
My results for a bubble sort on a reversed 10000 integer array:
Java: 91-96 ms
C (no opt): 167-237 ms
C (-O3): 1 ms
Go: 267-329 ms
Node JS: 141-168 ms
Python2.7: 19-20 s
Python3.8: 23-25 s
Ruby 2.2.10: 5-6 s
Comment on: Senior GitLab exec resigns over plan to stop hiring engineers in China and Russia
Microsoft bought GitHub, not GitLab.
Comment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
My results:
C without compile options (and the correct answer) and Go gave about the same times, between 250 and 320 ms.
C compiled with -O3 on gcc finished in 1 or 2 ms.
Python 3.8 about 9 s
Ruby 2.2.1 about 12 s (with the wrong answer)
Node between 100 and 200 ms
Java between 90 and 160 ms
I don't do PHP.
Comment on: Is it entirely necessary for me to learn EVERY function of Python and other programming languages?
No.
Comment on: Which is your favorite Version Control site?
I use BitBucket.
Comment on: Are there any working Python YouTube APIs for downloading videos?
https://pypi.org/project/youtube_dl/
It installs a command line script but you could import the package and call the function that gets the file.
Comment on: E------ is Geek Code for I Fucking Hate Emacs!
Do they lack the intelligence to use it or do they lack the inclination to shut off parts of their brains to use it?
Comment on: SJWs cancer kills PHP.CE (Central Europe) conference over lack of divejshity - reason #6,000,001 to botcott (((PHP)))
PHP sucks to an insane degree but it had a massive adoption advantage in the late 90s and early 00s among web hosting providers finding it easy to install. While the legions shitting on it have grown a lot of the momentum from that early advantage persists to the present.
Sunsetting Mercurial support in Bitbucket - Bitbucket
1 0 comments 25 Aug 2019 14:56 u/psimonster (..) in v/programmingComment on: ((((Lisp))) is the most (((Jewish))) programming language.)
(((John McCarthy))) (original Lisp creator (mother's name (((Glatt)))))
That explains the pseudo-jewfro: https://static.independent.co.uk/s3fs-public/thumbnails/image/2011/10/31/20/48-John-McCarthy-AP.jpg
Comment on: I suck at regex... Can someone please explain why only example C is working here?
Instead of running a match inside a loop create a new string by regex replacing letters with nothing, then run the operation on each character in the new string.
Comment on: VIM + Vundle (YouCompleteMe among other plugins)
I never used that one. I briefly tried the file tree plugin at one point.
Vim completes C functions appearing in includes. You could also look at ctags (http://ctags.sourceforge.net/).
Comment on: VIM + Vundle (YouCompleteMe among other plugins)
I use nothing else.
Comment on: The programmer who created Python isn't interested in mentoring white guys
Ironically, codes of conduct themselves are often adopted because they are championed by confident loudmouths whom others dare not oppose.
I wonder whether he meant this very thing by the "code" hustled by those more confident than competent.
Comment on: The programmer who created Python isn't interested in mentoring white guys
When a programmer gets programmed.
Sheesh. Don't any of these people stop to think about what they propose for the reasons for disparate involvement between men and women in mathematically demanding fields? They talk like they've grasped the solution to an ancient puzzle and need to see it solved at any cost.
I find these armchair sociology murmurings really disappointing, but corruption works its way into everything. Van Rossum served his purpose long ago and he can spend the rest of his life mentoring black lesbo commies as far as I care.
Comment on: Kenneth (((Reitz))) has basically stolen $28,000 from Python Requests 3 fundraiser. Every. Single. Time.
I find this extraordinary: https://www.kennethreitz.org/essays/mentalhealtherror-an-exception-occurred .
Comment on: Programmers Need A Hippocratic Oath
It'll be about as effective as the actual Hippocratic Oath in keeping doctors from behaving unethically.
Comment on: Microsoft open-sources its Windows calculator on GitHub
That's adorable.
Comment on: Getters/Setters are an Awful Programming Practice
If you add a getter or setter, making the member private, as part of a bug fix you change the interface. This is OK for a major revision, not for a bug fix.
Comment on: Getters/Setters are an Awful Programming Practice
The simple example in the video was a refactor. What if you need to add a getter or setter as part of a bug fix?
Comment on: Getters/Setters are an Awful Programming Practice
You don't want to change the interface for a bug fix. He's fired.
Comment on: What is the currently least SJW cucked repository for a small FOSS project
BitBucket. If anyone knows of a convergence event with them please let me know.
Comment on: Stack Overflow vs programmers
I don't copy from StackOverflow... so you can just imagine what my code looks like.
Comment on: How does your political philosophy affect your software choices?
I will not be chased off the use of software, especially that which I've spent years learning, by loathsome maggots who had no hand in building it. If I find it necessary I will join or support an advocacy group for people who aren't freaks to push back on these barnacles. What happens when a virgin project you adopt succumbs to the CoC?
Comment on: Microsoft already ruining GitHub
A few months back they had a git post-receive hook that printed a huge gay pride flag in your terminal after every
git push.
Pride week Easter egg? Fuck these people!
Comment on: What do you use for modeling projects?
Vim
Comment on: Python joins movement to dump 'offensive' master, slave terms
Goodbye, NNTP library.
https://docs.python.org/3/library/nntplib.html#nntplib.NNTP.slave
Comment on: Python joins movement to dump 'offensive' master, slave terms
Nothing stops you from viewing the linked page through an archive site.
Comment on: Rust despite Mozilla?
Read the book if you can stomach its condescending tone. I couldn't, so I instead worked on expanding my knowledge of data structures and algorithms in C.
Comment on: I have no coding experience but one class in Pascal! I want to know about tracking beacons in images please.
One delivers a tracking pixel in an HTML email with a special image tag. The source field of the image tag can contain, in addition to the location of the image, parameters which the email sender can use to identify the email address and message. For example:
<img src="https://cdn.example.com/images/foo.jpg?id=1092741abcd097324091>
The image location will appear in the server logs. You can analyze the logs to see which email addresses saw which images.
Alternatively, one can set the source field to a script instead of an image. The script could process the parameters in whatever way desired before serving the image to the email client.
Comment on: Are programmers degrees being called engineers now?
I think the terms server engineer and client engineer, referring to programmers, came from the video game industry and bled into network service development in general.
Comment on: Microsoft now in control of GitHub means they have the kill switch of Open Source
You don't understand Git very well.
Comment on: How can one Collect the details of articles from websites?
For general HTML parsing with Python: https://docs.python.org/3/library/html.parser.html .
If you want to do Angular or React, definitely learn JavaScript. JS benefits from ubiquity and seems to keep wending its way into more application areas. The language has its weaknesses but I don't find it particularly egregious compared to most other high-level (sloppy) languages.
Algorithms and data structures do not depend on any particular computer language.
I also recommend you learn C.