Programming @4-ch

Programming @4-ch

Be it HTML, C++, Java or whatever language you prefer, programming is what we do best around this board.
Markup languages are also fine around here, as with all the "not so real" languages of Shell script, CSS, and other various third party scripting languages.
  • We are sick of language discrimination, more so the PHP/Java bashers. There will be little tolerance of blatant and repetitive insults. You are still welcome to bring forward a sensible, insult-free argument regarding a certain topic at the appropriate time and place for it.
  • Please use WakabaMark or the appropriate HTML tags (with HTML enabled, of course) to format your code.
Rules · 規則
Board look: Amber Blue Moon Buun Channel4 Futaba Headline Mercury Mittens Pseud0ch Tanasinn Toothpaste


1 Name: #!/usr/bin/anonymous : 2013-08-21 00:26 ID:E1O1alV+

'-._ ___.....___

`.__           ,-'        ,-.`-,
`''-------' ( p ) `._ HAVE YOU HAXED
. \

................._ --...--,

                 `-.._         _.-'


2 Name: #!/usr/bin/anonymous : 2013-08-21 10:45 ID:0o+BK5LS

what are you doing here? they deleted the shelter thread

3 Post deleted.

4 Name: #!/usr/bin/anonymous : 2015-09-20 00:09 ID:u3CKxn+M

good job

5 Name: #!/usr/bin/anonymous : 2015-09-27 09:42 ID:Heaven

I've been to that board, and for God's sake what a bunch of shit-posting that turned into.

6 Name: #!/usr/bin/anonymous : 2015-10-07 22:03 ID:2bfjSZDH

if you see it as shit posting you have not ascended yet..

first try to engage in "shit posting" and then you might understand it better

7 Name: #!/usr/bin/anonymous : 2017-03-05 19:19 ID:GkCUSKtw

dicks out for Harambe

8 Name: #!/usr/bin/anonymous : 2017-10-01 12:30 ID:UbVRD27V

hax my gaynus

9 Name: #!/usr/bin/anonymous : 2017-10-10 07:43 ID:Heaven

>>6 >>7,8
Didn't work. Any other tips?

10 Name: #!/usr/bin/anonymous : 2021-02-24 21:24 ID:ARnQ6aXR

pork semen

Name: Link:
Leave these fields empty (spam trap):
More options...

/code/ Challenge № III - Dokyun Calendar (3)

1 Name: #!/usr/bin/anonymous : 2021-01-25 02:38 ID:JgcWjPb2

I always enjoyed doing these back on /prog/. Here's the deal:

Dokyun Calendar
Input: one non-negative integer, corresponding to a certain number of days after September 1st, 1993 (inclusive).
Output: three non-negative integers, corresponding to the day, month, and year, in the calendar of your choice.

There are no damn rules, just make something cool!
Addendum: don't forget leap years.

The best submission, as determined by the hive mind, wins ten (10) Internet Cool Guy Points.

2 Name: #!/usr/bin/anonymous : 2021-02-14 18:03 ID:VRfdhI8j

Nice idea, but it feels almost wrong to have something like that. It breaks the magic, if you will. Something that goes the other way (takes a date in some format and outputs the September 1993 date) seems like a better idea.

3 Name: #!/usr/bin/anonymous : 2021-02-16 02:47 ID:JgcWjPb2

Name: Link:
Leave these fields empty (spam trap):
More options...

Authentic rodent agony sounds (1)

1 Name: #!/usr/bin/anonymous : 2021-02-03 00:25 ID:Ogj+XrYQ

I'm programming a game in Lisp. How can I get some authentic rodent agony sound effects?

Name: Link:
Leave these fields empty (spam trap):
More options...

C# (3)

1 Name: #!/usr/bin/anonymous : 2020-07-21 09:25 ID:iKA2oBfn

Why does C shart suck so much?

2 Name: #!/usr/bin/anonymous : 2020-07-22 01:20 ID:WFzdwUzq

Because it's Java except made by M$ so they don't have to put up with Oracle's bullshit.

Which is a perfectly understandable motivation, they just missed the memo that everyone on the planet stopped giving a single fuck about Java the nanosecond that HTML/CSS/JS became mature enough to create cross-platform apps in.

(shitty cross-platform apps, but not any shittier than Java apps tbqh)

3 Name: #!/usr/bin/anonymous : 2020-12-31 08:55 ID:/AwlEA/k

I prefer Java apps over bloated web pages that blow my bandwidth

Name: Link:
Leave these fields empty (spam trap):
More options...

2ch-style BBs (42)

1 Name: #!/usr/bin/anonymous : 2006-06-15 20:34 ID:ySfwccWX

Does anybody know of any PHP-based ones?

I did check out Kareha, but my hosts basically won't allow it and having to edit teh sauce to redirect out of the CGI-bin would be horrendously complex for me (I have no knowledge of Perl).

So, are there any? I thought I read that 2ch's boards were PHP-based.
Reason I ask is because I'm interested in setting one up for a college project; I've tried Vanilla (don't!), and while it looks pretty good, I'm not too keen on registration and overcomplication.

Cheers guys :3

33 Name: #!/usr/bin/anonymous : 2006-06-27 20:32 ID:Heaven

Nigga please. "Unrepairable" is the obvious derivation of "repairable". Irreparable is the fancy word from way back in the top hats and walking sticks era.

34 Name: #!/usr/bin/anonymous : 2006-06-28 14:22 ID:Heaven

"Unrepairable" sounds awful. Just say it.

35 Name: #!/usr/bin/anonymous : 2006-06-29 17:24 ID:Heaven

>>34 unpossible!

36 Name: #!/usr/bin/anonymous : 2006-07-01 11:44 ID:Heaven

just say not repairable..cunts.

37 Name: #!/usr/bin/anonymous : 2006-07-04 20:41 ID:Heaven

or just say "fucked".

38 Name: #!/usr/bin/anonymous : 2006-07-08 19:34 ID:Heaven

>>36 !repairable

39 Name: #!/usr/bin/anonymous : 2020-12-16 00:56 ID:dVtC/3Mt

What defines a 2ch-style board?

IDs based on IP address?
"no bump" feature?

40 Name: #!/usr/bin/anonymous : 2020-12-16 14:57 ID:c40mcZvY


41 Name: #!/usr/bin/anonymous : 2020-12-29 20:04 ID:wWO4hEDv

For me it's doing necromancy on 14 year olds

42 Name: #!/usr/bin/anonymous : 2020-12-31 02:54 ID:tUBQzr8y


Name: Link:
Leave these fields empty (spam trap):
More options...

Mobile Advertising Company Hacked. All Code and Data Leak. (5)

2 Name: #!/usr/bin/anonymous : 2018-10-14 01:23 ID:RGS+SjgA

@prefix dbr: <> .
#op a dbr:Faggot_(slang) .

3 Name: #!/usr/bin/anonymous : 2018-10-14 01:25 ID:RGS+SjgA

@prefix dbr: <> .
<#op> a dbr:Faggot_(slang) .

4 Name: #!/usr/bin/anonymous : 2018-11-17 21:59 ID:VdnZZXCH

5 Name: #!/usr/bin/anonymous : 2020-12-30 08:02 ID:xMVU1OEC

advertising is heinously anus

Name: Link:
Leave these fields empty (spam trap):
More options...

reCaptcha alternatives (6)

1 Name: #!/usr/bin/anonymous : 2019-11-29 12:51 ID:4W27XWZe

I was wondering if there were any alternatives to Captcha/reCaptcha, preferably ones that don't require user input.

2 Name: #!/usr/bin/anonymous : 2019-12-03 18:10 ID:ENx1WjM7

My own website is slated to use captchouli at some point in the future.
You can also use a hidden input field that a user would never interact with, but a bot would send an input to. Then you can safely block all requests made from that input field.
That's hardly foolproof, but the only reliable ways that I know of that do not require user input are JS-based and make determinations using analytics. So basically, what you're asking for is botnet.

3 Name: #!/usr/bin/anonymous : 2019-12-05 11:16 ID:j3ppFbie

I see

4 Name: #!/usr/bin/anonymous : 2020-07-25 22:51 ID:SnT6F2mR

captcha is heinously anus

5 Name: #!/usr/bin/anonymous : 2020-12-19 21:04 ID:Xg5IFpU2

> captchas that don't require user input

OP, what do you think a CAPTCHA is, just curious

6 Name: #!/usr/bin/anonymous : 2020-12-20 11:47 ID:urOFhg52

i think he means text input... not that multimedia captchas are any better. i would much rather have a lightweight textbox like on here than google's horrible mess

Name: Link:
Leave these fields empty (spam trap):
More options...

Fuck eregi() (2)

1 Name: #!/usr/bin/anonymous : 2020-12-17 17:54 ID:vXJLi2ZO

>Fatal error: Uncaught Error: Call to undefined function eregi()
>Looking through code to see wtf is the problem
>Finally give up and google it
>eregi() was removed from php 7.0

  (  。_。) ・・・・・
_(_つ / ̄ ̄/­_

2 Name: #!/usr/bin/anonymous : 2021-01-07 20:20 ID:Heaven

I hate php 7.0 and I refuse to upgrade to 8.0

Name: Link:
Leave these fields empty (spam trap):
More options...

Programming is for fags (4)

1 Name: #!/usr/bin/anonymous : 2020-10-04 19:58 ID:UhljbjBK

Look deep within yourself, you know it to be true.

2 Name: Dogshit : 2020-10-15 22:41 ID:sz9RsT2T

I hate programming too

3 Name: #!/usr/bin/anonymous : 2020-11-29 05:03 ID:mSWnjhAt

Could you explain?

4 Name: #!/usr/bin/anonymous : 2020-11-29 23:59 ID:BGkrRXQ4

I'm pretty gay, but I'm not really a programmer.
It's more of a brainlet codemonkey thing imo.

Name: Link:
Leave these fields empty (spam trap):
More options...

Reasons why Python 3 (and 2) is shit (25)

1 Name: #!/usr/bin/anonymous : 2017-06-16 00:22 ID:jv9oB1f2

  • FOIC
  • reduce is not built-in
  • no do-while statement
  • singled expression lambdas
  • no index lists
  • no frozenset literals
  • awfully bad scope rules
  • terrible OOP design
  • no pattern matching nor switch-case statements/expressions

16 Name: #!/usr/bin/anonymous : 2018-07-25 06:00 ID:Heaven


> it's possible to create everything with this powerful language!

ok, how do i create a multithreaded program using a runtime with no global interpreter lock?

it would be nice if the variables used had enforced static typing too

17 Name: #!/usr/bin/anonymous : 2018-07-31 19:41 ID:5o4nANVW

There are a damn lot of languages, so "better than some other languages" is a little faint praise.

A bit of a cheap shot, don't you think? How about "how do I introduce a new operator without the inventor of the language quitting"

18 Name: #!/usr/bin/anonymous : 2018-10-02 02:33 ID:Heaven

It's really annoying when I have to change scope and need to manually delete X spaces from each line for a specific block, if I had braces I could just add or remove them.

19 Name: #!/usr/bin/anonymous : 2018-10-14 01:29 ID:j50HCb9X

@prefix dbr: <>.
<#op> a dbr:Faggot_%28slang%29 .

20 Name: #!/usr/bin/anonymous : 2018-10-14 14:23 ID:5o4nANVW

Use a better text editor than notepad. Seriously.
Select line range and tab or shift-tab to change indentation in notepad++, visual studio, vscode, probably most other windows software. << and >> in vim.

21 Name: #!/usr/bin/anonymous : 2019-08-09 12:02 ID:G8sTA6MV

I wouldn't say Python is shit.

It's a Language that has it's Ups and Downs. The same applies to all Languages. No Language is perfect.

I myself hate Python due to it's Syntax, how it handles Whitespace and the fact that it's an over-rated Language.

22 Name: #!/usr/bin/anonymous : 2019-08-11 18:15 ID:RGyzdZ1B

it's a programmign language. It's quite trash but there are worse. it works fine if you want to do something quickly, and has a great net scraping library.

much better for taping things together than php

23 Name: #!/usr/bin/anonymous : 2019-11-18 20:16 ID:SKj3RXIt

it breaks everything whenever you actually have to do something important on a non-debian based distro

24 Name: #!/usr/bin/anonymous : 2020-04-09 23:19 ID:574Yv04T

Python is a great scripting language, you don't need everything to have fun.

I can write a simple script with command-line arguments to read an Excel file, dump JSON, parse everything, talk to a database, in a few lines of code.

Add PIP and venv, and you have a brain orgasm for your daily tasks. No language is perfect.

25 Name: #!/usr/bin/anonymous : 2020-09-09 01:55 ID:gtsRtqWp

Name: Link:
Leave these fields empty (spam trap):
More options...

New thread

Name: Link:
Leave these fields empty (spam trap):
More options...