u/psimonster - 38 Archived Voat Posts in v/programming
u/psimonster
  • home
  • search

u/psimonster

1 post · 37 comments · 38 total

Active in: v/programming (38)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Is it a good idea to start learning programming with JS?

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.

0 30 Nov 2019 23:55 u/psimonster in v/programming
Comment 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.

0 29 Nov 2019 23:44 u/psimonster in v/programming
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.

0 17 Nov 2019 02:38 u/psimonster in v/programming
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.

0 09 Nov 2019 17:36 u/psimonster in v/programming
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

0 09 Nov 2019 15:24 u/psimonster in v/programming
Comment on: Senior GitLab exec resigns over plan to stop hiring engineers in China and Russia

Microsoft bought GitHub, not GitLab.

0 09 Nov 2019 04:23 u/psimonster in v/programming
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.

0 07 Nov 2019 23:48 u/psimonster in v/programming
Comment on: Is it entirely necessary for me to learn EVERY function of Python and other programming languages?

No.

0 25 Oct 2019 13:32 u/psimonster in v/programming
Comment on: Which is your favorite Version Control site?

I use BitBucket.

0 01 Oct 2019 19:47 u/psimonster in v/programming
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.

0 23 Sep 2019 15:29 u/psimonster in v/programming
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?

0 23 Sep 2019 11:19 u/psimonster in v/programming
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.

0 28 Aug 2019 18:22 u/psimonster in v/programming
Sunsetting Mercurial support in Bitbucket - Bitbucket
1 0 comments 25 Aug 2019 14:56 u/psimonster (..) in v/programming
Comment 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

0 14 Jul 2019 00:52 u/psimonster in v/programming
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.

0 11 Jul 2019 13:34 u/psimonster in v/programming
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/).

0 16 Jun 2019 17:15 u/psimonster in v/programming
Comment on: VIM + Vundle (YouCompleteMe among other plugins)

I use nothing else.

0 16 Jun 2019 13:53 u/psimonster in v/programming
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.

0 24 May 2019 20:14 u/psimonster in v/programming
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.

0 24 May 2019 05:30 u/psimonster in v/programming
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 .

0 05 May 2019 15:27 u/psimonster in v/programming
Comment on: Programmers Need A Hippocratic Oath

It'll be about as effective as the actual Hippocratic Oath in keeping doctors from behaving unethically.

0 07 Mar 2019 03:20 u/psimonster in v/programming
Comment on: Microsoft open-sources its Windows calculator on GitHub

That's adorable.

0 07 Mar 2019 03:08 u/psimonster in v/programming
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.

0 14 Feb 2019 01:23 u/psimonster in v/programming
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?

0 14 Feb 2019 00:13 u/psimonster in v/programming
Comment on: Getters/Setters are an Awful Programming Practice

You don't want to change the interface for a bug fix. He's fired.

0 13 Feb 2019 15:25 u/psimonster in v/programming
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.

0 23 Dec 2018 13:29 u/psimonster in v/programming
Comment on: Stack Overflow vs programmers

I don't copy from StackOverflow... so you can just imagine what my code looks like.

0 03 Dec 2018 22:51 u/psimonster in v/programming
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?

0 17 Nov 2018 03:50 u/psimonster in v/programming
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!

0 22 Oct 2018 01:07 u/psimonster in v/programming
Comment on: What do you use for modeling projects?

Vim

0 28 Sep 2018 01:34 u/psimonster in v/programming
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

0 14 Sep 2018 11:28 u/psimonster in v/programming
Comment on: Python joins movement to dump 'offensive' master, slave terms

Nothing stops you from viewing the linked page through an archive site.

0 14 Sep 2018 11:25 u/psimonster in v/programming
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.

0 30 Aug 2018 00:00 u/psimonster in v/programming
Comment on: Work as a C++ programmer

https://teachyourselfcs.com/

0 29 Aug 2018 23:36 u/psimonster in v/programming
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.

0 21 Jun 2018 15:03 u/psimonster in v/programming
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.

0 06 Jun 2018 19:57 u/psimonster in v/programming
Comment on: Microsoft now in control of GitHub means they have the kill switch of Open Source

You don't understand Git very well.

0 06 Jun 2018 19:52 u/psimonster in v/programming
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 .

0 30 May 2018 00:53 u/psimonster in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.