Discussion: Making Programming Language Parsers, etc (Q&A is in separate video).
1 0 comments 30 Mar 2020 17:14 u/DukeofAnarchy (..) in v/programmingComment on: In Memoriam of Charles "Chuck" Peddle
0 24 Dec 2019 08:46 u/DukeofAnarchy in v/programmingComment on: Learning the ultimate basics of Python, need help with one problem
You could use something like:
if input("Enter code: ") == "1938":
print("Correct")
Comment on: Learning the ultimate basics of Python, need help with one problem
What do you want to do?
- Test all the values and then print the text if and only if they all are correct.
- Start printing the letters if the first values are right, but stop once a single wrong value is encountered.
Comment on: Snowflake meltdown over "customer inclusion" at Gitlab (Merge branch 'customer-inclusion' into 'master')
They already reversed course totally: https://about.gitlab.com/company/strategy/index.html#customer-acceptance
Some reasons we may choose not to work with certain entities include, but are not limited to:
Making derogatory statements or threats toward our community.
Encouraging violence or discrimination against legally protected groups.
Jonathan Blow: Compiler Progress Report, July 2019
1 0 comments 04 Aug 2019 16:13 u/DukeofAnarchy (..) in v/programmingComment on: IFF file format experiments
The same container format (but converted to little-endian byte order) was adopted by Microsoft as RIFF.
https://en.wikipedia.org/wiki/Resource_Interchange_File_Format
Comment on: Sex joke gets a React Week 2019 Conference boycotted, new CoC developed to "protect" participants
What they want is to get a Code of Commieduct imposed that will help them take control of the organization and politically purge it. Feigning offense is just a tool that they use because it gets them what they want.
Comment on: Sex joke gets a React Week 2019 Conference boycotted, new CoC developed to "protect" participants
It wasn't offensive at all. It's a mistake to treat these people as if they were at all honest. For them it's all about power and language is just a weapon.
Comment on: [Beginner Python lesson] The Jewnerator: Generate a 100% authentic true Jewish name that would make Noseberg Shekelman proud!
Improved Jew generator with more names and ten results at a time:
import random
print("Jew name generator.")
first_names = ("Alan", "Barbara", "Bella", "Ben", "Bernie", "Chaim", "David", "Deborah", "Dianne",
"Elaine", "Ellen", "Irving", "Isaac", "Israel", "Jerry", "Joe", "Judy", "Leonard",
"Madeleine", "Max", "Moses", "Moshe", "Rachel", "Ruth", "Samuel", "Saul", "Shlomo",
"Simon", "Susan", "William")
last_starters = ("Adel", "Alt", "Ber", "Blumen", "Fein", "Finkel", "Fried", "Gold", "Gold", "Green",
"Hoff", "Kauf", "Leh", "Mad", "Rosen", "Roth", "Silver", "Stein", "Weiz", "Zucker")
last_enders = ("berg", "baum", "berger", "blatt", "coff", "gold", "man", "man", "schmidt", "son",
"stein", "thal", "witz")
while True:
print()
for i in range(10):
first = random.choice(first_names)
last = random.choice(last_starters) + random.choice(last_enders)
print("", first, last)
if input("\nEnter 'n' to quit or press enter to try again.") == "n":
break
Comment on: decided I had to start somewhere
/v/LearnPython is a ghost town now but you may find some useful posts there.
Comment on: [Beginner Python lesson] The Jewnerator: Generate a 100% authentic true Jewish name that would make Noseberg Shekelman proud!
from random import choice
print("Jew name generator.\n")
first_names = ("Alan", "Bella", "Ben", "Bernie", "David", "Deborah", "Dianne", "Elaine", "Ellen",
"Isaac", "Israel", "Jerry", "Joe", "Madeleine", "Moses", "Samuel", "Simon", "William")
last_starters = ("Ber", "Blumen", "Fein", "Gold", "Leh", "Mad", "Rosen", "Roth", "Weis")
last_enders = ("berg", "berger", "coff", "gold", "man", "man", "stein", "thal", "thal", "witz")
while True:
first = choice(first_names)
last = choice(last_starters) + choice(last_enders)
print("\n" + first, last)
if input("\n\nEnter 'n' to quit or press enter to try again.") == "n":
break
Comment on: Getters/Setters are an Awful Programming Practice
That's a feature, not a bug. OOP is garbage.
Comment on: Getters/Setters are an Awful Programming Practice
Object oriented programming is trash.
Comment on: Software Disenchantment
That's the code that stops the program from running unless the user has the right version of Microsoft Visual C++ Redistributable installed, so that you never know whether your Win32 applications will run on machines other than the one you compiled on. It's a feature!
#Gamelab2018 - Jon Blow's Design decisions on creating the Jai language
1 0 comments 26 Jul 2018 17:58 u/DukeofAnarchy (..) in v/programmingComment on: How difficult is it to create a search engine?
Easy to make one, hard to make a good one, hard to fund it.
Dennis M. Ritchie - The Development of the C Language
2 0 comments 12 Apr 2018 20:35 u/DukeofAnarchy (..) in v/programmingComment on: Bitwise, Day 0: Overview and Q&A
Bitwise is a free educational project about building the software and hardware stack for a simple computer from scratch, running on an FPGA. This includes all the systems software, including operating system, compiler, etc, as well as the HDL source code for the CPU, graphics chip, peripheral controllers--all of it.
Bitwise, Day 0: Overview and Q&A
1 1 comment 12 Apr 2018 20:06 u/DukeofAnarchy (..) in v/programmingComment on: C++ Will No Longer Have Pointers
"Modern C++" is already a pile of shit. The only salvation of C++ today is that you can still use the language language like classic C with some actually useful additional features (although Stroustrup and his short bus companions have always made this harder than it should have been). This is just more motivation for good programmers to look for (or create) alternatives to C++.
Comment on: Jonathan Blow on Exceptions and what it means to be an Engineer
The youtube link should take you to 2:29:30, which is the relevant part of the video.
Jonathan Blow on Exceptions and what it means to be an Engineer
4 3 comments 12 Aug 2017 17:13 u/DukeofAnarchy (..) in v/programmingComment on: Only 36% of Indian engineers can write compilable code: study
Whatever their faults, the British saved the Hindu Indians from being utterly exterminated by the Muslims.
"Making Game Programming Less Terrible" - Jonathan Blow (Reboot Develop 2017)
2 0 comments 02 May 2017 17:17 u/DukeofAnarchy (..) in v/programmingComment on: Programmers are having a huge discussion about the unethical and illegal things theyve been asked to do
It's worse than that. What Robert Martin wants is to set himself up as the head of a government-backed cartel and outlaw the employment of programmers without a license from him.
Comment on: Programmers are having a huge discussion about the unethical and illegal things theyve been asked to do
It's a propaganda piece promoting scummy cocksucker Robert Martin and his push for government regulation and compulsory licensing of programmers.
Comment on: Interview Techniques for Hiring Programmers | Casey Muratori
The link should take you to the right point in the stream (which is 1:20:28), and the discussion of interview techniques goes on for about 13 minutes.
Interview Techniques for Hiring Programmers | Casey Muratori
1 1 comment 06 Nov 2016 14:56 u/DukeofAnarchy (..) in v/programmingComment on: Programmer quits work on project after getting triggered by a variable name (The comments, however . . .)
Another typical shit head woman working in IT.
https://images.encyclopediadramatica.se/8/8b/Ironholds_wtf.jpg Doesn't look like a typical woman to me.
Implementing introspection using metaprogramming - Casey Muratori
5 0 comments 05 Nov 2015 23:36 u/DukeofAnarchy (..) in v/programmingComment on: Anyone know any good resources for beginner C++?
https://www.visualstudio.com/en-gb/products/visual-studio-community-vs
Q: Who can use Visual Studio Community?
A: Here’s how individual developers can use Visual Studio Community:
Any individual developer can use Visual Studio Community to create their own free or paid apps.
Comment on: Intro to C on Windows - Day 1
"Handmade Hero is an ongoing project to create a complete, professional-quality game accompanied by videos that explain every single line of its source code. ... Although 100% of the programming for the game is captured in the videos, each step is also accompanied by continuous explanation of what is going on and why. It is meant to serve as a de facto class on game programming. "
Sad news. Thanks for sharing this.