top:
day week month all

programming

Community for : 3.2 years

The Official Sub for Programming
__________
Have your say on any programming language, opinions and questions, memes and pics, are good.




Owner: system

Mods:












30
Hehehehe - programming!      (pic8.co)
submitted by Darth_Nougat to programming 3 years ago (+31/-1)
11 comments last comment...
https://pic8.co/sh/oEnnlL.gif

Hehehe. Programming's COOL!
29
Jewwood purposely makes the medieval ages look grey and dreary. In reality they all wore bright colours     (programming)
submitted by BlueEyedAngloMasterRaceGod to programming 2 years ago (+31/-2)
18 comments last comment...
How they presented themselves: https://www.thetapestryhouse.com/media/transfer/img/william_embarks_bayeux_tapestry_metth005.jpg

How Jews present them: https://thunderclam.files.wordpress.com/2011/10/1.jpg

"Most people in the Middle Ages wore woollen clothing, with undergarments (if any) made of linen. Among the peasantry, wool was generally shorn from the sheep and spun into the thread for the cloth by the women of the family. Dyes were common, so even the lower class peasants frequently wore colourful clothing."

They had better clothes than we do.
28
UTF-16 has been nothing but a 30-year mistake which blights the entire Unicode text system.     (programming)
submitted by SithEmpire to programming 1.8 years ago (+28/-0)
24 comments last comment...
Standard ASCII is one byte per character, ending at 0x7F, which gives just about enough space for control bytes, spaces, punctuation and uppercase/lowercase Latin.

Extended ASCII uses the upper half to include some accented letters, and there have been attempts to use dreaded "code pages" for switching alphabet entirely, but Unicode is the proper international solution... in return for accepting that the character encoding is no longer one byte each, and moreover may be variable width.

UTF-8 is proudly variable-width, matching ASCII in most documents while using only those upper half byte values to encode non-ASCII, a robust system which reduces impact when an unaware program reads it as ASCII. The variable width is an issue for a few types of program such as word processors, though most operations (copying, sorting, searching) need not care.

Then some butthurt happened in the early 1990s, and someone just had to insist on fixed byte width, and out popped UTF-16. Two bytes per character, costing a load of extra storage for most files, and absolutely no plan for what happens when we reach 0xFFFF. Java, C# and JavaScript all signed up to it for their fixed width string storage.

The Unicode character space started getting flooded with every alphabet in existence with all the durka durkas and the ching chang chongs, and symbols for mathematics, music and such. It looks to me that they got up to 0xD000 before admitting that it is going to run dry.

The solution? Reserve 0xD800 to 0xDFFF... for using pairs of characters in that range to represent 0x10000 and above. So, a variable width encoding.

This is indeed literally as retarded as having to use a gas-powered generator to recharge an electric car.

Even worse, the UTF-8 system could store Unicode up to 0x7FFFFFFF, but that UTF-16 extension only takes it up to 0x10FFFF, and now Unicode itself specifies 0x10FFFF as the limit just to appease UTF-16.

UTF-16 has fucked everything up for zero benefit in return. Even C++ has an entire wide-string type and string library suite for it which is widely known as a massive trap to avoid and put UTF-8 bytes inside normal strings instead. Windows purports to use wide-strings for files, but it is broken.

Python (a.k.a. programming for niggers) 2 tried to "help" with Unicode in the same way that cats "help" ensure that everything is knocked successfully onto the floor. Python 3 sort of behaves itself, while in the background it insists that if a single string character would be multi-byte in UTF-8 then the entire fucking string gets converted to a fixed width encoding big enough for that. Actually that is really a different manifestation of insistence on fixed width rather than UTF-16 specifically, but that type of thinking is still the problem.

UTF-16 must be destroyed.
24
Python is horseshit and Guido van Rossum is a nigger-loving nigger.     (programming)
submitted by SithEmpire to programming 2.4 years ago (+25/-1)
50 comments last comment...
All of my contact with Python is to fix broken stuff, where most of the time the fix is to start over with a better platform. Every time I end up having to use it, I find new failures in its design which are even more mentally retarded than the time before.

Reliance on white space is colossally retarded and it imposes the need for a `pass` keyword. Anyone who thinks it is possible to force programmers into writing legible code that way is a colossal retard.

Like most pretentious garbage it changes many classic reserved words, just enough that the number of complainers does not rise above half the users. `throw` is `raise`, `catch` is `except`, `null` is `None`, `true` is `True`, `false` is `False`. So much for keeping to a lowercase style when you can use capitals just because those are constants rather than keywords.

Inconsistently, it retains `==`, `!=` and `^` but changes `&&` to `and`, `||` to `or` and `!` to `not`.

Despite being popular for data processing, it cannot thread. It has something called threads, but this is only useful for I/O, because its "global interpreter lock" fundamentally can only run one line at any time. The autistically screeched response is to run extra processes, but its attempt at shared memory is also total ass. All the data popularity comes from being a front end to NumPy, which is written in C.

Lambdas? Only if the result can be written in one expression, no statements allowed.

Class constructor? Some nigger decided to name that `__init__`.

Anonymous object? It was supposed to work but doesn't, but you can `import types` and use `types.SimpleNamespace` instead, that works. Unless you want methods with statements in, then you need to use `def` and pass in all scope variables.

No pre-increment or post-increment. `+=` works, but you can't use it within a comparison test, because fuck you.

No `switch`, get used to `elif` nigger.

No do-while, make a flag or copy the fucking loop code.

No labels for `continue` and `break`, no numeric argument option, not even a fall-back `goto`. Guido himself said that this type of code is too complicated, by which he means he is too retarded to understand it, so fuck off and make a load of complicated flags and tests instead.

It doesn't even have the `===` operator like other languages with dynamic types, you have to test the types yourself... using `__class__` like a nigger.

No `static` keyword, but you can make a static method if you put `@staticmethod` on the line before. Genius.

You can have the ternary operator, but you have to put the test condition in the middle instead of at the front. Also `if` and `else` are reused for doing that, just in case you missed having a horizontal scroll bar.

That much is only what I have learned while otherwise trying to avoid Python.

Fuck
23
programming langauge     (files.catbox.moe)
submitted by mikenigger to programming 1.7 years ago (+24/-1)
11 comments last comment...
16
Project Managers Over Coders     (jssocial.pw)
submitted by GrayDragon to programming 2.5 years ago (+16/-0)
8 comments last comment...
12
python 3.12: the cucked edition     (archive.ph)
submitted by v0atmage to programming 7 months ago (+12/-0)
14 comments last comment...
https://archive.ph/j5j7k

And now for something completely different
They have no need of our help
So do not tell me
These haggard faces could belong to you or me
Should life have dealt a different hand
We need to see them for who they really are
Chancers and scroungers
Layabouts and loungers
With bombs up their sleeves
Cut-throats and thieves
They are not
Welcome here
We should make them
Go back to where they came from
They cannot
Share our food
Share our homes
Share our countries
Instead let us
Build a wall to keep them out
It is not okay to say
These are people just like us
A place should only belong to those who are born there
Do not be so stupid to think that
The world can be looked at another way

(now read from bottom to top)
Refugees, by Brian Bilston.
11
Owning an encyclopedia.     (programming)
submitted by bosunmoon to programming 1 month ago (+11/-0)
8 comments last comment...
It used to be That you could buy a set of books that could provide a set of facts you could quote and rely on.
Now we have the internet.
Why don't we have a blockchain wealth of real and true facts?
10
Go finally has generics     (go.dev)
submitted by v0atmage to programming 2.1 years ago (+10/-0)
7 comments last comment...
10
Even Niggers don't like Code of Conducts     (files.catbox.moe)
submitted by v0atmage to programming 1.6 years ago (+10/-0)
2 comments last comment...
9
Programming Cheat Sheets - A really great site for self education.     (overapi.com)
submitted by oldblo to programming 3.1 years ago (+9/-0)
5 comments last comment...
9
Little Code if You Hate Teams Status     (programming)
submitted by patchCodeUnsuccessful to programming 1.8 years ago (+9/-0)
11 comments last comment...
$sh = New-Object -ComObject Wscript.shell
while($true)
{
$sh.sendkeys('{F15}')
Start-Sleep -Seconds 30
}
powershell script.
9
Gov't TETRA radio standard has been cracked [47:29]     (www.youtube.com)
submitted by Love240 to programming 6 months ago (+9/-0)
3 comments last comment...
https://www.youtube.com/watch?v=MXPBkWvlN8c

In this talk we will discuss the radio jailbreaking journey that enabled us to perform the first public disclosure and security analysis of the proprietary cryptography used in TETRA (Terrestrial Trunked Radio): a European standard for trunked radio globally used by government agencies, police, prisons, emergency services and military operators. Besides governemental applications, TETRA is also widely deployed in industrial environments such as factory campuses, harbor container terminals and airports, as well as critical infrastructure such as SCADA telecontrol of oil rigs, pipelines, transportation and electric and water utilities.

For over two decades, the underlying algorithms have remained secret and bound with restrictive NDAs prohibiting public scrutiny of this highly critical technology. As such, TETRA was one of the last bastions of widely deployed secret proprietary cryptography. We will discuss in detail how we managed to obtain the primitives and remain legally at liberty to publish our findings.

This journey has involved reverse-engineering and exploiting multiple zero-day vulnerabilities in the highly popular Motorola MTM5x00 TETRA radio and its TI OMAP-L138 trusted execution environment (TEE) and covers everything from side-channel attacks on DSPs, through writing decompilers headache-inducing DSP architectures, all the way to exploiting ROM vulnerabilities in the Texas Instruments TEE.

Jos Wetzels
Carlo Meijer
Wouter Bokslag
8
Tell me     (files.catbox.moe)
submitted by MonkeysSmarterThanNiggers to programming 2.8 years ago (+8/-0)
13 comments last comment...
8
Rust SJW mods throw a temper tantrum against core devs     (github.com)
submitted by v0atmage to programming 2.4 years ago (+8/-0)
8 comments last comment...
https://github.com/rust-lang/team/pull/671

Update- reddit discussion thread:

https://archive.md/7okI2

Also a relevant HN post from a month ago: https://archive.md/gSCR8
8
Is Rust more energy efficient?     (archive.is)
submitted by v0atmage to programming 2.2 years ago (+8/-0)
2 comments last comment...
8
Carbonyl is a Chromium based browser built to run in a terminal     (github.com)
submitted by shitface9000 to programming 1.3 years ago (+8/-0)
3 comments last comment...
7
Ukraine simps cut programmer's funding because russia is evil     (files.catbox.moe)
submitted by v0atmage to programming 1.6 years ago (+9/-2)
14 comments last comment...
https://files.catbox.moe/v4804m.png

TLDR; Paying a US citizen programmer who lives in Russia with US payment systems violated the ethics of pro Ukraine cucks.
7
AI finds new sorting algorithm     (archive.is)
submitted by shitface9000 to programming 10 months ago (+7/-0)
9 comments last comment...
6
A book I am writing     (files.catbox.moe)
submitted by RobertJHarsh to programming 3.1 years ago (+6/-0)
6 comments last comment...
6
My whole life is a lie     (twitter.com)
submitted by shitface9000 to programming 1.4 years ago (+6/-0)
7 comments last comment...
6
Code Incomplete     (programming)
submitted by GrayDragon to programming 1.2 years ago (+7/-1)
15 comments last comment...
SF9K and I came up with the parody of the establish programmer text, "Code Complete." We will write "Code Incomplete: How To Cut Corners And Still Stay Employed."

We will become millionaires!
6
Why is modern software so slow? -> "Clean" Code, Horrible Performance [22:40] - Molly Rocket      (www.yewtu.be)
submitted by Love240 to programming 10 months ago (+6/-0)
15 comments last comment...
https://www.yewtu.be/watch?v=tD5NrevFtbU

"Clean" Code principles shown in their own examples to produce losses of 15x the speed of computation time.
5
Frontend, Backend, And Develops Roadmap - Roadmaps Are Like A Skill Tree Apparently     (files.catbox.moe)
submitted by oldblo to programming 3.0 years ago (+5/-0)
8 comments last comment...
https://files.catbox.moe/tmirua.png

If anyone wants to add any other programming roadmaps they like in the comments please feel free to.
5
Why do I have to rightclick on every title every time in order to read it?     (programming)
submitted by AnotherGalaxy to programming 2.4 years ago (+5/-0)
7 comments last comment...
Here are some problems:
1) If I click on a title it takes me out of the site
2) If I click on an image nothing happens
3) In order to see comments I have to rightclick "comments", otherwise I have to come back to the site.

Could you sort this out please?
It's a bit frustrating that this happens every time and nobody noticed this problem yet.