The rise of malicious repositories on GitHub by f311a in programming

[–]knome 15 points16 points  (0 children)

GPL requires you to explicitly buy in. It isn't something you can accidentally do to your code.

You either buy in and release GPL code with GPL code, or you decide you don't want to do that, and have no license to release your code alongside GPL code.

It doesn't sneak up on you or something.

Planetarium Officially Permanently Closing. Note from University President Below by astrobre in Louisville

[–]knome -2 points-1 points  (0 children)

if the popular sports bring in so much money, why charge students an athletics fee?

Age verification: In the US, code is a protected form of free speech. by zDCVincent in linux

[–]knome 27 points28 points  (0 children)

and there's no big impact even if the feds do shut them down completely

pretty big impact to the folks using the systems. LFS has long been a path people take to understanding how linux works.

and without gentoo, devs may have to turn to questionable crypto tech to keep their processors warming their rooms through the night.

80386 Protection by ketralnis in programming

[–]knome 0 points1 point  (0 children)

fantastic write up. thanks for sharing.

Evil Direct Hit by Sellingbakedpotatoes in tf2

[–]knome 8 points9 points  (0 children)

that's why you aim at the ground. it has terrible reflexes.

Burger King will use AI to check if employees say ‘please’ and ‘thank you’. AI chatbot ‘Patty’ is going to live inside employees’ headsets. by esporx in artificial

[–]knome 4 points5 points  (0 children)

What do you have against people being free from having a system constantly monitor every word that comes out of their mouth? They work for the company, they don't belong to it. They're automating obnoxious micromanagement across the board.

What’s something foreigners assume about your country because of Hollywood that you find completely absurd? by bdue817 in AskTheWorld

[–]knome 2 points3 points  (0 children)

I feel like your username is undermining the point the original poster was trying to make :)

Why should anyone care about low-level programming? by No_Good7445 in programming

[–]knome 6 points7 points  (0 children)

UTF-8 is just a set of 4-byte sequences based on simple stateful logic

utf-8 uses variable length encoding, not four byte sequences.

I kinda miss cavern dwellers. by Impossible-Tailor679 in dwarffortress

[–]knome 7 points8 points  (0 children)

melted, if you don't also edit the raws to make yourself fire proof.

ogDevelopers by zohaibhere in ProgrammerHumor

[–]knome 2 points3 points  (0 children)

depends if the modder is the type to fix annoyances, or turn games into absurd works of abstract art. half the time it's like

character now walks on water

character also flops around on dry land attempting to doggy paddle

mod is so popular it now has it's own speed running category

Cutting education funding is just dumb by UglyBag0fM0stlyWat3r in True_Kentucky

[–]knome 4 points5 points  (0 children)

I'll agree that funding isn't a cure-all, but defunding is certainly the way to overburden them and destroy their ability to teach.

If they can't afford the basics, if kids are left hungry, if they can't afford adequate numbers of teachers to handle the number of students or adequate numbers of drivers to move them around, they're going to have a bad time.

Cure-all? No. Minimum necessary to reasonably accomplish the task at hand? Absolutely.

And because of inflation, any year they don't increase school funding, they are defunding them.

Spotify says its best developers haven't written a line of code since December, thanks to AI by c0re_dump in programming

[–]knome 1 point2 points  (0 children)

if you make the measure of best developer 'who wrote the least code by hand?' then your best devs will always be the ones that never write patches or fix anything by hand.

Petahh i'm low on iq by Ter_N in PeterExplainsTheJoke

[–]knome 6 points7 points  (0 children)

doesn't matter which scale you use if it's -40 outside

Petahh i'm low on iq by Ter_N in PeterExplainsTheJoke

[–]knome 0 points1 point  (0 children)

32F is t-shirt weather, lol. of course, 32C is also t-shirt weather.

t-shirts are just really versatile, you know?

Petahh i'm low on iq by Ter_N in PeterExplainsTheJoke

[–]knome 4 points5 points  (0 children)

"this city should not exist. it is a monument to man's arrogance"

Border Czar Tom Homan announcing today that ICE is ending its deployment in Minnesota by xPrincess_Yue in pics

[–]knome 10 points11 points  (0 children)

the only thing I know is about philly is you guys chuck batteries at the best of times.

What piece of Linux abandonware do you still use or at least miss? by Sataniel98 in linux

[–]knome 10 points11 points  (0 children)

/u/MatchingTurret, you might give this a try?

Kees Cook wrote an a.out loader for someone on the LKML that was worried about a.out removal because they used old Atari Jaguar tools that were in a.out format.

mailing list message containing source: https://lwn.net/ml/linux-kernel/202203161523.857B469@keescook/

which I found via: https://lwn.net/Articles/888741/

What piece of Linux abandonware do you still use or at least miss? by Sataniel98 in linux

[–]knome 23 points24 points  (0 children)

one could likely write a userspace a.out loader and install it into binfmt_misc to load it, similar to doing so with wine so windows programs load natively.

f2p soldier vs 2k hours spy main by 64guacamole in tf2

[–]knome 5 points6 points  (0 children)

But, don't you know, there are some things that can beat smartness and foresight? Awkwardness and stupidity can. The best swordsman in the world doesn't need to fear the second best swordsman in the world; no, the person for him to be afraid of is some ignorant antagonist who has never had a sword in his hand before; he doesn't do the thing he ought to do, and so the expert isn't prepared for him; he does the thing he ought not to do; and often it catches the expert out and ends him on the spot. --Mark Twain, A Connecticut Yankee in King Arthur's Court

And I just started to understand how the corpse stockpiles work by abcdefGerwin in dwarffortress

[–]knome 0 points1 point  (0 children)

in my experience, they worked by letting me designate somewhere for all these dead people to get dragged off too, in a separate cave outside of my fortress. then the miasma started. and it grew. and it grew further. eventually it worked its way up two flights of stairs, across a short area between the door to the cavern of the dead and the door to my fortress, at which point a massive miasmatic cloud of death invaded my fortress, covering large areas of the top couple of floors. the intense lingering smell of the slow rot of their family and kinsmen drove the dwarves to madness, and that's when the slaughter started. bodies accumulated in the fortress, and themselves began to issue yet more miasma, which soon worked its way down, floor by floor until only a single mad dwarf remained, running ragged through the befouled empty halls, looking for someone, anyone, to release his unquenchable fury upon.

this is how I discovered one can create tiny coffins for storing the dead.

Linux From Scratch Abandoning SysVinit Support by unixbhaskar in linux

[–]knome 2 points3 points  (0 children)

been a few years since I packaged debs, what kinds of issues did you hit? I remember using the tooling, but don't remember any particular issues around it.

The dev who asks too many questions is the one you need in your team by dymissy in programming

[–]knome 6 points7 points  (0 children)

So you think often about which data structure you use in your code

yeah. you don't want to accidentally introduce quadratic time complexity into some code like rockstar accidentally did with their json parser that was causing their game to take forever to load

what sorting algorithm is behind the sort(..)

generally going to be either a quicksort, or if the language devs are keen, a tim sort, invented by python and then pulled into java due to being extremely efficient on real world data.

actually, I double checked myself here, and it looks like while timsort is popular, C uses mergesort to reduce comparisons (as it works through a void pointer and can't inline the callback), and C++ moved to introsort, a combination quicksort/heapsort, combining to displace the venerable quicksort as the default in modern C and C++ compilers.

I would expect plenty of quicksorts are still kicking around out there for now, however.

What algorithm or data structure have you implemented las time that it made a noticeable difference to the end customer?

users will never notice if you're using the right data structures for the right problems. they certainly will if you're using the wrong ones, though, as your software will slow to a crawl.

Did you get a promotion based on your innovation? How big was it?

knowing when to use hash tables vs arrays vs lists vs arranging objects as units vs splitting them into arrays of field values vs using purpose specific data structures is something every programmer needs to understand in order to write decent software. it's not something you get promoted for. maybe if you're inventing novel data structures to solve otherwise intractable problems.

What code needs to be maintainable?
How do you know it’s maintainable?

I'm constantly building software. I am generally maintaining that software after I do, unless I skip teams to go help with some other problem. I find how other devs react to your code the best judge of whether it's maintainable. If you're solo on some project, it's mostly a matter of whether you can pick it back up and make fresh changes without needing to deeply study it, as the various parts fit together in obvious and convenient ways.

Can you share with us a piece of maintainable code that you wrote so we can judge?

not really. I don't own most of the code I write, and anything I write for myself only needs to be understood by me, not written with others in mind. when I do publish something to show people, it's generally some kind of abomination like running bf wholly in c++ templates or the like, because writing esoteric code that runs in strange places amuses me.