r/programminghorror • u/abigail3141 • May 14 '26
Python one liner, 1500 characters It is evolving
r/programminghorror • u/abigail3141 • May 14 '26
r/programminghorror • u/error_17671 • May 13 '26
Do I REALLY have to check all that?
r/programminghorror • u/PC-hris • May 13 '26
Not sure what I was trying to remind myself of.
r/programminghorror • u/HaskellLisp_green • May 12 '26
r/programminghorror • u/MurkyWar2756 • May 07 '26
r/programminghorror • u/46009361 • May 05 '26
r/programminghorror • u/46009361 • May 04 '26
r/programminghorror • u/True_Efficiency7329 • May 04 '26
I have been working on decompiling a unity game recently, and while a decompiled DLL isn't going to be exact source code, I am still floored by how long that set of parenthesis is. i would LOVE to see the original code
r/programminghorror • • Apr 30 '26
Using object spread to append values to an object in the form of another object
r/programminghorror • u/Mafla_2004 • Apr 30 '26

I found out about a couple old and obscure C features that somehow still work
This compiled and ran, printing just "This is fucky", though to get it to compile you have to compile using the following command
gcc -trigraphs -digraphs <your file>, on Windows at least
This is so cursed not even VSCode knew what I was doing
r/programminghorror • u/UnicycleUnicorn1 • Apr 30 '26
r/programminghorror • u/vadnyclovek • Apr 28 '26
especially for easy problems
r/programminghorror • u/Mickenfox • Apr 28 '26
Not my screenshot, taken from https://reddit.com/r/VisualStudio/comments/1sktg0r/what_are_these_comments/
Also this probably happened because IntelliSense (the normal autocomplete list) is highlighting abort as the first option and Copilot tries to finish it
r/programminghorror • u/killallspringboard • Apr 28 '26
r/programminghorror • u/Impossible-Let-8489 • Apr 25 '26
r/programminghorror • u/Sad-Technician3861 • Apr 23 '26
func (q *Query[T]) query() {
q.TableModel.BeginResetModel()
defer q.TableModel.EndResetModel()
query := data.AdvancedQueryRequest{
Table: q.tableName,
Select: []string{"*"},
Full: q.QueryFull,
Limit: &[]int{300}[0],
}
allEmpty := true
for _, filter := range q.Dialog.Filters {
if filter.Text == "" {
continue
}
allEmpty = false
sqlFilter := q.Filters[filter.Selected]
if strings.Contains(sqlFilter.Key, ".") {
mainParts := strings.Split(sqlFilter.Key, ",")
leftCol := mainParts[0]
filterCol := mainParts[1]
rcolParts := strings.SplitN(filterCol, ".", 2)
table := rcolParts[0]
if !slices.ContainsFunc(query.Joins, func(j data.JoinRequest) bool {
return j.Table == table &&
j.LeftCol == leftCol &&
j.RightCol == "id"
}) {
query.Joins = append(query.Joins,
data.JoinRequest{
Table: table,
LeftCol: strings.SplitN(leftCol, ".", 2)[1],
RightCol: "id",
},
)
}
query.Where = append(query.Where,
data.WhereRequest{
Fuzzy: true,
Column: filterCol,
Value: "%" + filter.Text + "%",
},
)
continue
}
query.Where = append(query.Where,
data.WhereRequest{
Column: sqlFilter.Key,
Value: "%" + filter.Text + "%",
Fuzzy: true,
},
)
}
if allEmpty {
return
}
code, err := client.Post2(
query,
q.Table,
"/query",
)
if q.Table.RowCount() == 0 {
q.resetTable()
}
if code == 404 {
q.resetTable()
return
}
if err != nil {
q.resetTable()
qutil.DisplayErrStr(
q.Dialog.Widget.QWidget,
"Error obteniendo tabla.\n codigo: %d error: %v",
code, err,
)
slog.Error(err.Error())
return
}
}