Comment on: Why functional programming matters Mikolaj Szabó Medium
2 18 Apr 2017 14:56 u/effusive_ermine in v/programmingComment on: Looking for a free programming book? They're all linked from here.
https://github.com/vhf/free-programming-books/blob/master/CONTRIBUTING.md
You don't have to know git: if you found something of interest which is not already in this repo, please open an issue with your links propositions. If you know git, please fork the repo and send pull requests.
Comment on: (#/g/sicp) Gentoomen Library: 3616 files and 35GB covering everything from Algorithms to XML [torrent][magnet link]
That's right, but look carefully and you'll find books on languages which haven't changed much like AWK, C, and Lisp. For Python, Perl, and Javascript you really want more recent materials.
(#/g/sicp) Gentoomen Library: 3616 files and 35GB covering everything from Algorithms to XML [torrent][magnet link]
1 0 comments 13 Apr 2017 17:58 u/effusive_ermine (..) in v/programmingLooking for a free programming book? They're all linked from here.
13 3 comments 13 Apr 2017 16:26 u/effusive_ermine (..) in v/programmingDouglas Crockford is now hawking HBO
1 0 comments 09 Apr 2017 20:14 u/effusive_ermine (..) in v/programming(Luminis) Keynote session: The History of Programming - Mark Rendle [DevCon 2016] [1:05:25]
1 0 comments 08 Apr 2017 12:33 u/effusive_ermine (..) in v/programming(Diogo Mónica) Why you shouldn't use ENV variables for secret data
1 0 comments 06 Apr 2017 01:50 u/effusive_ermine (..) in v/programmingComment on: Computer programmers may no longer be eligible for H-1B visas
Good, we have enough shitty programmers already.
(Nostalgia Nerd) How to Make a C64 Game in BASIC Ep.1 [HOW2] [13:52]
11 0 comments 02 Apr 2017 22:37 u/effusive_ermine (..) in v/programmingHow to Design Programs, Second Edition [scheme]
5 0 comments 01 Apr 2017 01:14 u/effusive_ermine (..) in v/programmingComment on: Conway's Game of Life in your browser
The game is played right on the results page. Too lazy to actually click a link?
Comment on: curl is C | daniel.haxx.se
I hope you will make a blog post about how proud you are to use Pascal and moving to a fancy new language would be counterproductive. Then make a submission about it here. :)
Conway's Game of Life in your browser
1 1 comment 29 Mar 2017 16:10 u/effusive_ermine (self.programming) in v/programmingComment on: Learning Lisp Fast
I think most of the programming languages ever made are "actively used" by some definition. From my perspective Lisp recently had a resurgence. I don't know what kind of answer will satisfy you, but here are some links:
Comment on: curl is C | daniel.haxx.se
I couldn't agree more. I don't doubt they could do it, but changing languages not as simple as globally replacing printf(specifier, string) with puts string.format(specifier).
Comment on: Learning Lisp Fast
I may find it less intimidating/confusing/difficult now. After all, it can't hurt to try
That's the spirit :)
Don't worry about the Voats.
Comment on: Learning Lisp Fast
Thanks. I do try to make my comments helpful, or at least humorous. Sometimes I fail.
Comment on: Learning Lisp Fast
There are some truths about programming which are inescapable. If you don't fully grasp them, your potential as a programmer will be limited by them.
With that, I'll offer you a sincere apology for my failure to recognize my own limitations as a teacher. There's no need for you to think any less of yourself, especially not because of anything I've written in this thread.
Comment on: Learning Lisp Fast
So you never learned to perform basic arithmetic on paper? Did they stop teaching that in school?
Comment on: Learning Lisp Fast
I didn't really mean to criticize. I'm just exceptionally grumpy today.
Comment on: Learning Lisp Fast
Just being relieved of order of operations is enough reason to respect the parens. OoO wouldn't be so bad, except it's different in every damn language.
Comment on: Learning Lisp Fast
The thought of representing assembly language programs as s-expressions makes me wish for an asteroid strike.
Comment on: Learning Lisp Fast
- Rotoscoped Turntable Lemons
- Retrograde Targeted Lemurs
- Replaceable Three Letters
Comment on: Learning Lisp Fast
Joke about brackets all you like. It's the least annoying part of Lisp.
Comment on: (esr) Things Every Hacker Once Knew [ascii][rs-232]
You haven't lived until you've constructed a null modem cable and connected two terminal devices with it. I still have mine in a shoebox downstairs, though I'd have to write a driver to make it work again. (Fuck, let's hope I never have the need.)
Comment on: (esr) Things Every Hacker Once Knew [ascii][rs-232]
confusingly, DB-25 came to be used for printer parallel ports (which originally had a very different connector)
(esr) Things Every Hacker Once Knew [ascii][rs-232]
12 3 comments 24 Mar 2017 23:06 u/effusive_ermine (..) in v/programmingThe Iterator Protocol: How for Loops Work in Python - Trey Hunner
2 0 comments 23 Mar 2017 04:26 u/effusive_ermine (..) in v/programmingWhy numbering should start at zero - Edsger W. Dijkstra
2 0 comments 21 Mar 2017 03:26 u/effusive_ermine (..) in v/programming(Andy Wingo) GNU Guile 2.2.0 released (Complete Emacs-compatible Elisp implementation, speed, and more) [scheme]
1 0 comments 17 Mar 2017 00:44 u/effusive_ermine (..) in v/programmingComment on: PSA: don't run 'strings' on untrusted files (CVE-2014-8485)
This is a danger with any program which parses unsafe data. A dumb tool like od or hexdump is safer to use. Emacs has hexl-mode for binary files.
Abstruse Goose | Arithmetic for Beginners [webcomic]
1 0 comments 11 Mar 2017 00:46 u/effusive_ermine (..) in v/programmingComment on: Early (1979-80) thoughts at Apple about DRM
Woz wasn't the only one with such expertise.
I have the EDD card and software for my Apple IIs.
(The 8-Bit Guy) The basics of BASIC, the programming language of the 1980s. [24:06]
3 0 comments 10 Mar 2017 01:08 u/effusive_ermine (..) in v/programmingComment on: Thinking About Recursion
Children are taught recursive algorithms in grade school. It isn't hard to understand.
Comment on: Programming creativity challenge: draw a ladder
It's impossible. Ladder-like shapes may be described mathematically, but "drawing" is a side effect. (I'm only half joking.)
Comment on: Nigerian "software engineer" handed written test at New York airport to prove he really is one
That's social engineering.
Comment on: BASIC v2.0 / Commodore programming help. C128/64 hobby refinement
Commodore BASIC 2.0 is a stripped down dialect of Microsoft BASIC. Much of it is quite similar to BASICA and GWBASIC. The C128 actually has a more powerful BASIC available in native mode. Programs may be developed interactively, in a manner similar to the REPL of modern interpreters.
It is a line numbered dialect, so entering a line number by itself without any code erases any existing line of that number. If you want a blank line for pretty formatting, you'll need to use a REM command or bare : (colon character) to store the line into memory.
There is no virtual memory, so your program text can't grow beyond the internal RAM of the computer. There is also a limit on variables because storage is allocated in static, linear blocks for each variable.
Variable names are limited to two characters. Don't worry about running out of names because you're much more likely to run out of RAM first. (You may actually use longer names, but only the first two characters are significant.)
Variables are typeful and postfix sigils distinguish types. Strings are distinguished by $ (dollar sign), integers by % (percent sign), and floats by no sigil.
10 LET A$ = "FOO" : REM A$ IS A STRING
20 LET A% = 3 : REM A% IS AN INTEGER
30 LET A = 3.141 : REM A IS A FLOAT
40 LET NUMBER = 42 : REM STORES 40.0 INTO THE VARIABLE NU
There are user defined functions, but you have to write them in 6502 assembly language. There are specific rules for argument passing, but I can't remember them. Most peeps just store everything global variables and used subroutines to modularize the code.
Forget doing functional or OO: you're stuck with imperative.
Comment on: Future of Programming - Rise of the Scientific Programmer (and fall of the craftsman)
Way to go champ. Now I feel bad for not indicating my sarcasm. At least I can sleep knowing you're unscathed.
Comment on: Future of Programming - Rise of the Scientific Programmer (and fall of the craftsman)
Enjoy your downvoats. How dare you share an opinion here?
Comment on: For $deity's sake, smile! It's Friday! Sad coders write bad code - official
You can forget analyzing American political rhetoric with the same rigor you'd apply to code. Trying to follow the logic of the average water cooler conversation will turn your brain inside out and make you wish for death to end the despair. The officially recognized debates? Forget it, there's nothing there to analyze.
Comment on: Four Column ASCII
This is one of those things that has always seemed obvious to me.
The Practice of Programming: 18 Years Later
2 0 comments 21 Jan 2017 17:37 u/effusive_ermine (..) in v/programmingComment on: Why pair programming/code review is pure evil
Doesn't it suck to be the smartest person in a group? Always feeling as though your own potential is limited by the incompetence of the scrubs you're forced to work with. Knowing that everything you do will be unappreciated by those who can never hope to attain your levels of personal excellence.
(esr) Rust severely disappoints me | Armed and Dangerous:
1 0 comments 13 Jan 2017 03:08 u/effusive_ermine (..) in v/programmingGitHub - baruchel/lambdascript: A new pure functional language built on the top of Python
2 0 comments 10 Jan 2017 19:56 u/effusive_ermine (..) in v/programmingComment on: How many of you can still read your own code you created years ago?
I still do that with code I wrote only a few months ago.
Comment on: Newbie... Need motivation.. something "real" to sink my teeth into.
1 30 Dec 2016 07:13 u/effusive_ermine in v/programmingComment on: First video in a coding playlist: 300k views. Second video: 200k views. Remaining videos in series passing the series midpoint: 2-3k views each. Why?
Some folks are better suited to other pursuits. Anyone can appreciate music, but not everyone wants to compose music.
Comment on: The Movable Feast Machine
(+ 2016 (- 2016 1936))
2096
Okay. Have fun with that, fellas. It does look pretty neat.
Comment on: The Movable Feast Machine
We'll all be dead before anything practical can be done with this.
Comment on: Stop saying learning to code is easy (because it sets begginers up for disappointment).
Learning to code seems pretty easy to me. Most of the students in my college learned the basics of C in a few weeks, and were writing Java programs not long after. There were people who legitimately struggled and one student who failed repeatedly. Tried to help that guy for weeks, but he just couldn't even memorize a simple hello.c for some reason. Strangely enough, he was great with circuits and math.
Comment on: (Daniel Laeng) Real programmers use programming languages (Not shell scripts) [slide deck]
If your definition of "portable" only applies to systems you write your scripts for, then you can think whatever you like. If you want to share your scripts with people who aren't using the exact same build of the exact same version of the exact same shell, then you might want to consider restricting your scripts to only use POSIX features. Otherwise, simply state explicitly which shell your script depends on. Something I've done in the past is this:
#!/bin/SHELL
#
# Developed for SHELL version n.nn on DISTRO nn.nn.
# May not work with other shells on other systems.
It is an error if the recipient attempts to run the script on any system which doesn't have /bin/SHELL, which is fine because that would mean their system is not the same as yours. If they have SHELL at a different location they can manually edit the shebang. After that, it is up to them to ensure that their system meets your script's requirements. Make sure to clearly detail exactly what all these requirements are.
(Bozhidar Batsov) RubyC 2015: "Ruby: The Bad Parts"
1 0 comments 05 May 2016 20:32 u/effusive_ermine (..) in v/programming(Amy Hanlon) Investigating Python Wats - PyCon 2015 [humor]
3 1 comment 05 May 2016 20:10 u/effusive_ermine (..) in v/programmingComment on: (Daniel Laeng) Real programmers use programming languages (Not shell scripts) [slide deck]
The POSIX shell is a description of a portable Bourne-like shell. I'm not aware of any two conforming implementations which are fully compatible with each other.
Comment on: (Daniel Laeng) Real programmers use programming languages (Not shell scripts) [slide deck]
Which shell is portable?
(Daniel Laeng) Real programmers use programming languages (Not shell scripts) [slide deck]
5 17 comments 04 May 2016 17:55 u/effusive_ermine (..) in v/programmingComment on: (Simple Programmer) Why Does Programming Suck?
Dunno, I mostly listened while reading something unrelated.
(Simple Programmer) Why Does Programming Suck?
1 3 comments 04 May 2016 06:37 u/effusive_ermine (..) in v/programmingComment on: (meta) Can average users do anything more effective than downvoat to combat the onslaught of spam?
No, fuck that. Too many of the trolls at Hacker News are more intelligent than I am. Don Quixote I am not.
Comment on: Your thoughts on a Rosetta Code like project for users to learn common programming languages and have reference implementations on their local computer.
I feel generally positive about this. As long as you find it useful I say keep going with it. Will you continue communicating about it here?
Comment on: The importance of knowing who to share your unfinished work with.
Folk wisdom tends to be both rude and opaque.
Agreed. Thanks for sharing your thoughts.
Comment on: The importance of knowing who to share your unfinished work with.
Though I'm loath to ask, what does this have to do with women? Is it just something nonsensical which is meant to sound funny?
The importance of knowing who to share your unfinished work with.
18 5 comments 22 Apr 2016 23:07 u/effusive_ermine (self.programming) in v/programming(meta) Can average users do anything more effective than downvoat to combat the onslaught of spam?
13 3 comments 21 Apr 2016 03:25 u/effusive_ermine (self.programming) in v/programmingComment on: I've reached a point in my project where I think I could get my coding skills critiqued. Where (besides here) could I post my project to get feedback?
Pretty sure that's what github is for.
Comment on: I've reached a point in my project where I think I could get my coding skills critiqued. Where (besides here) could I post my project to get feedback?
What language? Where's the code?
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
I frequently code in Emacs Lisp, but rarely share my programs because the community is bipolar:
- "I don't really know Lisp and parentheses scare me."
- "I really know Lisp and you should kill yourself before you pollute the environment with any more of this garbage."
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
#!/usr/bin/awk
{
split("", c);
for(i=1; i<=length($0); ++i)
c[substr($0, i, 1)]++
for(i=1; i<=length($0); ++i)
if(c[substr($0, i, 1)]==1) {
print substr($0, i, 1)
break
}
}
(Computerphile) SGML HTML XML What's the Difference?
19 1 comment 13 Apr 2016 21:29 u/effusive_ermine (..) in v/programmingComment on: Outlaw programming languages that threaten the safety of the American people and work counter to our way of life. | We the People: Your Voice in Our Government
But, I find Ruby to be redundant. Why program in Ruby when I have a perfectly good Python right here?
That's a perfectly reasonable opinion to hold. I may not agree, but I can respect it.
But Ruby deserves more hate than it gets.
That's just unnecessary. I can't agree or respect that.
Thanks for sharing your opinions. Now please stop.
Comment on: What is the best language for someone who wants to learn to code for the first time?
If you want something easy to learn while also practical for IRL use, Python and Ruby are great choices. If you want to work as a professional programmer, Javascript is never fucking going away.
"Programming languages do not succeed based on how good they are, or any objective criteria."
3 0 comments 29 Mar 2016 04:54 u/effusive_ermine (..) in v/programmingComment on: Outlaw programming languages that threaten the safety of the American people and work counter to our way of life. | We the People: Your Voice in Our Government
Just out of curiosity, why the hate for Ruby?
Comment on: (Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
obvious coding talents
Will hasn't demonstrated noteworthy coding talents that I can recall. He strikes me as someone who has studied and practiced long hours to gain the knowledge he has.
If anything, his talent may be in making programming appealing to newbies. That's obviously not what he's doing here.
Comment on: (Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
The comment about "navigating a file that is thousands of lines of code is a nicer problem than navigating lots of small files" seems insane.
It sounds like the opinion of one who uses a text editor instead of an IDE. Having written OO in text editors, I'm convinced that slow and heavy IDEs won't be displaced any time soon.
Comment on: (Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
clickbait
I can see how one might think that, but Will has been building his case against OO for years. The title might be sensational, but it very much reflects his views.
Comment on: (Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
The whole sub-function to minimise the footprint of the library is a superficial point which can be solved using private functions. Public functions are the only thing someone needs to be aware of. Making a private function into a sub-function doesn't solve anything. It just moves code around. On a related note, D language has the sub-function use case he is looking for in a language.
If anything, I feel like his choice to use "subfunctions" just validates the OO model. "Here's a function that isn't generally useful to the program as a whole, but is required to perform these operations on this data." Sounds like a private method to me.
FWIW I don't think Will is altogether wrong in his conclusions. It seems to me that the way we do OO right now is not as useful as it could be. Every OO program I've ever written has been at least 5 times larger than its procedural equivalent, and the source code bloat didn't buy me much in the way of maintainability. But that's just me.
Comment on: (Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
Personally I'm surprised to learn that a working NES emulator can fit in under 10k lines of OO code.
(Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
19 24 comments 22 Mar 2016 05:00 u/effusive_ermine (..) in v/programmingComment on: What are some must read programming books for a new programmer?
1 17 Mar 2016 23:56 u/effusive_ermine in v/programmingComment on: What's is the best text editor to use from command line?
2 17 Mar 2016 18:18 u/effusive_ermine in v/programmingComment on: (Jack Diederich) Stop Writing Classes
If your code becomes harder to read then it is a big fat clue that you have designed the classes wrongly.
That's more or less Diederich's conclusion to the talk. He doesn't advocate abandoning OO design.
(Jack Diederich) Stop Writing Classes
1 2 comments 11 Mar 2016 18:54 u/effusive_ermine (..) in v/programmingComment on: (Peter Welch) Coding Sucks: Why a Job in Programming Is Absolute Hell
1 10 Mar 2016 13:55 u/effusive_ermine in v/programming(Peter Welch) Coding Sucks: Why a Job in Programming Is Absolute Hell
1 2 comments 10 Mar 2016 13:54 u/effusive_ermine (..) in v/programmingComment on: Insider comments on the state of affairs at Mozilla and predicts it's demise
Install it into a VM and let us know what you think.
Comment on: Insider comments on the state of affairs at Mozilla and predicts it's demise
What kinds of things are lacking?
Comment on: Insider comments on the state of affairs at Mozilla and predicts it's demise
When last I used it, SeaMonkey was a Firefox compatible browser without all the stupidity. If the Firefox devs continue removing useful features and replacing them with ad space I can easily see myself checking back in with SeaMonkey. Other ideas:
(Brian Will) Object-Oriented Programming is Embarrassing: 4 Short Examples
16 16 comments 05 Mar 2016 15:16 u/effusive_ermine (..) in v/programmingComment on: ReactOS - Fake Or Potential Windows Alternative? Review And Extended Test Drive Of Latest Release
With Microsoft working on retiring pre-10 versions of Windows, I can imagine a lot of ppl want to run their ancient apps instead of upgrading. My only possible reason for interest in ReactOS is running Windows games, but would it be better for that than Wine?
Comment on: ReactOS - Fake Or Potential Windows Alternative? Review And Extended Test Drive Of Latest Release
"Fake"? Where's the cause for inflammatory words? This project has a history which can be examined.
| ReactOS Project development started in 1996 as new clone of Windows 95.
For something to be "fake" it should claim to be something it is not: inauthentic in some way at least. By all accounts, this project is exactly what it claims to be.
In Soviet Russa, functions program you!