-
8 votes
-
Challenging projects every programmer should try
11 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
5 votes -
A Sad Day For Rust
27 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
9 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
9 votes -
Software disenchantment
21 votes -
The smallest possible valid (X)HTML documents
5 votes -
Tracking flight details while in the air
8 votes -
Advent of Code 2019
35 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
6 votes -
The Mysterious Double Tilde (~~) Operation
12 votes -
The Principles of Versioning in Go
7 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
4 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
8 votes -
Successfully Merging the Work of 1000+ Developers
7 votes -
We’re Rewarding The Question Askers
10 votes -
async/await On Stable Rust (1.39.0)
13 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
8 votes -
Dissecting A Dweet: Shattered Tunnel - How to make a 3D tunnel in 140 bytes of JavaScript!
8 votes -
Three "programming" board games: Lovelace & Babbage, Quirky Circuits, and Pixoid
9 votes -
I want to learn programming. What language should i pick to write cli apps for linux?
I'm interested in C or Go, but i'm open to ideas. I have plenty of sh scripts i created to integrate my tools and system, so i have some experience and i don't want a scripting language like...
I'm interested in C or Go, but i'm open to ideas.
I have plenty of sh scripts i created to integrate my tools and system, so i have some experience and i don't want a scripting language like python.
My first plan is to learn the basics of the language and rewrite some of those scripts.
I think my first pick will be a script that uses ffmpeg to convert my flac files to mp3 or opus. I use sndconv -opus/-mp3 and it checks if there are flac files in the folder (i only have full albums), converts and puts in a folder named "$artist - $album".
My long term goal is to make a cli/tui music player like cmus.
UPDATE: i'm having plenty of success with Go right now. I just wrote a basic version of my music conversion script. It's just converting a music i pass as argument to mp3, but i'll keep working on it and adding functionality just to dip my toes in Go. It seems like a good language and i'm having fun!
Thanks for all the answers!
18 votes -
Fortnightly Programming Q&A Thread
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
9 votes -
If PHP were British
25 votes -
The Beauty Of The COBOL Programming Language
5 votes -
Safeway coupons, automation, and reversing private APIs
9 votes -
Fortnightly Programming Q&A Thread - 2019W40
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...
General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
12 votes -
Is programming science?
There's no doubt computer science is indeed a science, but what about programming itself? Does it fulfill the basic requirements that make something a science? I'm not an academic, just trying to...
There's no doubt computer science is indeed a science, but what about programming itself? Does it fulfill the basic requirements that make something a science? I'm not an academic, just trying to start a conversation.
In many ways, programming is like Math: a means to an end. And Math is a science. Like math, programming has several fields with vastly different ideas of what constitutes programming. Because it is applied logic, programming is also provable and disprovable. There are many disputing hypothesis and, even though absolute truth is a distant dream, it is certain that some sentences are truer than others. Again, like Math, Programming has many practical applications, such as finances and engineering.
Some people consider Math a propaedeutics: not a science in itself, but a discipline that provides fundamentals to actual sciences such as chemistry and physics. The same reasoning could be applied to programming, as nothing more than a tool for computer science. I personally think there's something unique about programming and it's problem-solving methods that can be considered a field of its own.
What you guys and girls think?
6 votes -
Lua 5.4.0 (Beta)
7 votes -
Simple Made Easy - Talk by Rich Hickey (creator of Clojure)
4 votes -
Python for Beginners - Microsoft Developer
5 votes -
TinyGo - A Go Compiler For Small Places
9 votes -
Programming Q&A Thread
An experiment I've been thinking about lately: a (recurring?) Q&A thread! Ask any questions about programming, answer other users' questions, or post suggestions for future threads. Don't forget...
An experiment I've been thinking about lately: a (recurring?) Q&A thread! Ask any questions about programming, answer other users' questions, or post suggestions for future threads.
Don't forget to format your code using the triple backticks or tildes:
Here is my schema: ```sql CREATE TABLE article_to_warehouse ( article_id INTEGER , warehouse_id INTEGER ) ; ``` How do I add a `UNIQUE` constraint?
Meta questions:
- Should I turn this into a recurring thread?
- If yes, should it be a weekly or a monthly thing?
- Should DBA and SysAdmin questions be allowed or should someone else make a separate recurring thread for these?
22 votes -
Mun Py: A Fully Automated Mission to the Mun
5 votes -
Green Threads Explained in 200 Lines of Rust
3 votes -
Consequences of using the Copy-Paste method in C++ programming and how to deal with it
4 votes -
Programming Challenge: Convert between units
Hi everyone! It's been a long time since last programming challenge list, and here's a nice one I've encountered. If you search for something like 7km to AU, you'll get your answer. But how is it...
Hi everyone! It's been a long time since last programming challenge list, and here's a nice one I've encountered.
If you search for something like 7km to AU, you'll get your answer. But how is it done? I don't think they hardcoded all 23 units of distance and every conversion factor between them.
If you were programming a conversion system - how would you do it?
First of all, you have input in format that you can specify, for example something like this:
meter kilometer 1000 mile kilometer 1.609344 second minute 60 ...
Then you should be able answer queries. For example
7 mile meter
should convert 7 miles to meters, which is11265.41
.Can you design an algorithm that will convert any unit into any other unit?
Edit: Some conversion rates I extracted from wikipedia:
ångström 0.1nm astronomical unit 149597870700m attometre 0.000000000000000001m barleycorn 8.4m bohr 0.00846 cable length (imperial) 185.3184m cable length 185.2m cable length (US) 219.456m chain (Gunters) 20.11684m cubit 0.5m ell 1.143m fathom 1.8288m femtometre 0.00000000000001m fermi 0.00000000000001m finger 0.022225m finger (cloth) 0.1143m foot (Benoit) 0.304799735m foot (Cape) (H) 0.314858m foot (Clarke's) (H) 0.3047972654m foot (Indian) (H) 0.304799514m foot,metric 0.31622776602m foot,metric (long) 0.3m foot,metric (short) 0.30m foot (International) 0.3048m foot (Sear's) (H) 0.30479947m foot (US Survey) 0.304800610 french 0.0003m furlong 201.168m hand 0.1016m inch 0.0254m league 4828m light-day 25902068371200m light-hour 107925284880m light-minute 17987547480 light-second 299792458m light-year 31557600light-second line 0.002116m link (Gunter's) 0.2011684m link (Ramsden's; Engineer's) 0.3048m metre 1m m 1metre km 1000m mickey 0.000127 micrometre 0.000001 mil; thou 0.0000254 mil 10km mile (geographical) 6082foot (International) quarter 0.2286m rod 5.0292m rope 6.096m shaku 0.303 0303m span (H) 0.2286m stick (H) 0.0508m toise 1.949 0363m twip 1.76310 yard 0.9144m
17 votes -
Dan Tepfer (Human - Computer Duet) - NPR Music Tiny Desk Concert
Video Link I decided to post this as a text topic since IMO the video description is really important to understanding this performance: Aug. 29, 2019 | Colin Marshall -- Dan Tepfer has...
I decided to post this as a text topic since IMO the video description is really important to understanding this performance:
Aug. 29, 2019 | Colin Marshall -- Dan Tepfer has transformed the acoustic piano entirely with his new project, Natural Machines. Watch the keys and you'll see this Disklavier — a player piano — plucking notes on its own. But it's not a prerecorded script.
Here's how it works: Tepfer plays a note, and a computer program he authored reads those notes and tells the piano what to play in response. Tepfer can load different algorithms into the program that determine the pattern of playback, like one that returns the same note, only an octave higher. Another will play the inverted note based on the center of the piano keys. These rules create interesting restrictions that Tepfer says make room for thoughtful improvisation. In his words, he's not writing these songs, so much as writing the way they work. To better communicate what's happening between him and the piano, Tepfer converted these audio-impulse data into visualizations on the screen behind him, displaying in real time the notes he plays followed by the piano's feedback. We dive even deeper into this project in a recent Jazz Night in America video piece.
Perhaps the trickiest part here, unlike a human-to-human duo, is that the computer plays along with 100 percent accuracy based solely on Tepfer's moves. He compares it to dancing with a robot that never misses a beat. Tepfer has to play in kind to keep the train on the tracks, but if he falls out of step, so does the computer. On the other hand, Tepfer has unlocked a new frontier of music available to acoustic piano players: He's essentially given himself more limbs to play the piano at once, and at times we see more than 10 keys pressed at a time or a sequence of notes played at seemingly superhuman speeds. It's a central idea to what innovative technology enables for us — that which is impossible for us to achieve on our own.
edit: Nice related video from Jazz Night in America with Dan explaining some of how it works:
https://www.youtube.com/watch?v=0L6tzG3FkcU7 votes -
Go 1.13 Is Released
6 votes -
Typesetting Markdown Blog: What Next?
Some of you have read the Typesetting Markdown blog series (https://dave.autonoma.ca/blog/). The plan was to finish the last two parts with Annotated Text (basically markup for Markdown) and...
Some of you have read the Typesetting Markdown blog series (https://dave.autonoma.ca/blog/). The plan was to finish the last two parts with Annotated Text (basically markup for Markdown) and Figure Drawing (MetaPost); however, people have asked for a post on Markdown to EPUB, others have asked for high-quality PDF theme templates using ConTeXt, and some have requested rendering Markdown into HTML.
Within the realm of Markdown, digital documentation, typesetting with ConTeXt, R, externalized interpolated strings, and bash scripting, what would interest you for the next post in the series?
(Please flip through the blog series to see the topics that have been covered.)
3 votes -
Drawing with sound (Oscilloscope music)
9 votes -
Which language would you pick to completely rewrite BSD, Linux, etc.?
It'd my understanding that C has stuck around in the UNIX world for so long, nearly half a century, mostly due to the inertia of legacy code. If you could snap your fingers and magically port/fork...
It'd my understanding that C has stuck around in the UNIX world for so long, nearly half a century, mostly due to the inertia of legacy code.
If you could snap your fingers and magically port/fork the entire stack of open source codebases to the language of your choice, which would you pick and why?
20 votes -
Topic Requests: What subject would you like to see covered in more depth?
For those who haven't seen my essay-length posts in the past, I occasionally like to delve into explaining different programming concepts, particularly with regards to making your code easier to...
For those who haven't seen my essay-length posts in the past, I occasionally like to delve into explaining different programming concepts, particularly with regards to making your code easier to manage. Sometimes this has to do with how you structure you code and projects, and at others it has to do with how you think about the problems you're solving. I've been in the mood to write up on yet another programming subject, but nothing in particular has stood out to me lately during the course of my work.
With that in mind, I figured I would take a different approach and see if anyone here had some specific requests for content they would like to see. Requests from all levels of experience are welcome!
(And for those who are itching to do a write-up on any of the requests that appear here, feel free to call dibs!)
Edit
For those who want to take a dive into my previous submissions, you can now find them in the new wiki entry created by @cfabbro or directly via the
programming.code_quality_tips
tag here.8 votes -
Dissecting A Dweet: Parallax Mountains (Analyzing a 140 byte JavaScript demo)
3 votes -
Cracking the Code of Cicada 3301 [Episodes 1-4 Playlist]
4 votes -
Dirty tricks 6502 programmers use
8 votes -
Paged Out! A new experimental (one article == one page) free magazine about programming
10 votes -
Typesetting Markdown – Part 7: Mathematics
5 votes -
Onivim 2 pre-alpha is out!
9 votes -
Dissecting A Dweet: Ring Weave ~ a 140 byte javascript animation
9 votes