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: Blue Moon Buun Futaba Headline Mercury Pseud0ch Toothpaste

I met Stallman on my vacation in Los Angeles (3)

1 Name: #!/usr/bin/anonymous : 2020-01-25 04:01 ID:RI5se2tf

>I saw RMS in a store in Los Angeles during my vacation

>I told him how great it was to meet him in person
>but I didn't want to bother him and ask him for a picture
>"I'd just like to interject for a moment"
>that took me by surprise and I could only say "huh?"
>that's when I realized he wasn't buying
>he was camping and had his sleeping bag in a corner
>"I'd just like to interject for a moment"
>he had recently woken up and was looking for water to wash his beard with
>"I'd just like to interject for a moment"
>followed him to his sleeping bag where he pulled a needle from his hobo bag
>"I'd just like to interject for a moment"
>I asked him if it's true that he's a pedophile and that Epstein financed him
>"I'd just like to interject for a moment"
Post too long. Click to view the whole post or the thread page.

2 Name: #!/usr/bin/anonymous : 2020-01-31 05:57 ID:Heaven

>his stomach explodes because too much semen
>the room is filled with pink liquid: his guts (red) mixed with semen (white)

why did RMS's stomach exploding from his own semen when he orgasmed (interesting medical condition, that) kill your daughter? and how did he survive?

or did your daughter switch to he/him pronouns moments before his death?

3 Name: #!/usr/bin/anonymous : 2020-05-02 03:22 ID:s1EGrfKj

what the actual fuck

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

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

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

15 Name: Gleb : 2018-07-23 21:12 ID:+fA6NNP7

I think that the main thing here is that Python is quite cool and better than some other languages. Plus taking into account the list of available frameworks (https://webcase.studio/blog/best-python-frameworks/), you can see that it's possible to create everything with this powerful language!

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

>>15

> 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

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

>>16
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

>>14
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: <http://dbpedia.org/resource/>.
<#op> a dbr:Faggot_%28slang%29 .
}

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

>>18
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.

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

mobile.pl of 4-ch (2)

1 Name: #!/usr/bin/anonymous : 2020-03-29 07:05 ID:1yzj/i/3

http://static.4-ch.net/source/mobile

Anybody have that file? This page doesn't seem to exist now. I need that for my website. Thank you.

2 Name: #!/usr/bin/anonymous : 2020-04-03 16:00 ID:okYcGTg/

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

[Sharing]Your personal projects[Inspiration] (108)

1 Name: #!/usr/bin/anonymous : 2014-11-08 13:20 ID:p3iUEkWT

What are your (current) hobby projects? What languages or libraries are you using? How usable or complete is it? What makes what you're doing novel or great?
No need to be smug or anything, or get all angry at other people for using <thing you hate>. Just share what you're up to. Add a URL if it's public too, if you want.

I'll start. I'm writing a stack-based language in Racket for use in embedded devices. It's already got Hindley-Milner style type inference, it just needs to actually produce output.
I'm also planning a modal text editor that feels like vim and a music-making program somehow.

But enough about me. Let's get some actual content on the front page of /code/.

99 Name: #!/usr/bin/anonymous : 2018-07-16 03:30 ID:Heaven

>>89 Sounds nice. How's it been going for you so far? Got any links?

100 Name: Staycey : 2018-08-07 13:59 ID:nbjNbUT8

I think that you would better contact some real company (like woxapp.com) and discuss with them what is really important and popular at the market now. Otherwise, you can learn something and then never use it... so it will be just a waste of your time.

101 Name: #!/usr/bin/anonymous : 2018-08-25 12:20 ID:rGIviNz8

>>94
Still going. Currently aiming to write a Lua REPL in it. You write code in this language in the REPL, and whenever you evaluate something, it compiles everything it needs to Lua, writes it out to a temp file, and runs it in lua or luajit or something. That's the plan, anyway.

102 Name: #!/usr/bin/anonymous : 2018-10-24 09:56 ID:ql1KSoAi

Trying to write a gopher browser with ncurses and shit

103 Name: #!/usr/bin/anonymous : 2018-10-27 08:18 ID:Heaven

>>102
let me guess, in go?

104 Name: #!/usr/bin/anonymous : 2019-03-09 22:21 ID:pLeq12Qx

>>101
Update: it's going well
It's a pretty fully-functional language at this point; by default it is interpreted but you give a command-line flag to the interpreter and it outputs the Lua equivalent instead.
So far I've got if and while compiling and I'm halfway through define.
New current short-ish-term goal is to write a pico-8 library so you can make games in it.
I'm going to release version 0.0 soon

105 Name: #!/usr/bin/anonymous : 2019-04-03 20:25 ID:A428x2sH

>>104 oh yeah I released this on Monday
https://gitlab.com/worst-lang/worst

106 Name: num : 2019-10-27 13:46 ID:8aR9YFvv

This is my personal project with a few other guys. We browse the chans of the web and this one is pretty interesting. :^) enjoy! https://soda.privatevoid.net/

107 Name: #!/usr/bin/anonymous : 2019-11-22 01:51 ID:CI2ZPqVa

I'm working on upgrading tanami.org/overscript/ with a modern interface, it's going to be moved to overscript.net

108 Name: #!/usr/bin/anonymous : 2020-03-05 10:12 ID:cIyEW+iy

>>107
I saw it. It's very nice!

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

Scheduled reminder that LISP sucks! (15)

1 Name: #!/usr/bin/anonymous : 2017-09-11 08:42 ID:XlAXKVtS

Scheduled reminder that LISP sucks!

6 Name: #!/usr/bin/anonymous : 2017-10-22 09:46 ID:n0cwrir9

7 Name: #!/usr/bin/anonymous : 2017-10-23 00:26 ID:Heaven

kek

8 Name: #!/usr/bin/anonymous : 2019-01-26 08:17 ID:0C9gmWa8

()))(()()()(()()))))))))())))))())(((()))))(()(()(()())())())())()()())))))(()(())((()()))(((((()()))()())()())(()())))()()()((((()))()()))()))))())()()))((())()()())()()(())))()()))())((())(()()((())()())((()())))()))))())())(())(((()))))))(()(()(((())))())()()()(()(())()((()()(())(()(())())((()()))()))()())))(())))))(()()()()(()))()()(()()(()()))())((())()))))))()()())())())))))))))())())()()()()))()()(()(()(()(((()(()())()(()(((())))))())()()((())()())()()())()())))))()()()()(()(()()()()(()()()()))()(())(()()))))()()()()()()))(()())(()()()()(()))())()()(()())))()(())))(())))(())()()()())()()()())())()()()()((()))((()(()))())()()())(())((())()(((())))()()()))(())())(()())()())(()(())()())()())()((()()((()))))(())()())))(()))())(()())()()()())()))))()())())))()())()()((())()))))))))()()))))((())()())(()())))))))(())()())()())(()()(()))())()()))()())()()()()))))())))(()))))()(()(())(())()(())())(())())()()(()()(()()()()()((()))(()(())))()))))()()(()())())()()(())()())()))()))))))(())))(()))()(()())))()))()(())))))())()()()(()))()()()))()))))))(())(())()())))()())()()()((()()))()()(())()((())(()()(()))()))()())((())))()()(()))(()))((()(()())(()))((((()()())()))())))())))(((()())(()))(())()())(()(((())()()))()()()))())))(()((()))())()()))())))(()((()(((())()(()())()(()(()(()()(()()())()))()))())()()((())())())))((()))()())(())()()()(()((()())))))())())))())()))(()()()())(())()())))(()))))())(((()())))()(())(())()))())(()()())))()()()))))()()()))))))()()((()()((()(()()()()))))(((())())()()))())()()(()()()()())(()()())))())()())()(()))()()())()(())()(()()))))(()(())()(())(()((())()))()))(((()()()()()(())(()(((())()((()())((()()))(())()()())())))))())()()(()))())((((((()))((((())(()(())((())))()))(()))()))(()((())(()(()))()))))())(()))()())))(())()(()())))((())))())()()()))()()()))))(())(()(()(())))))))))()()(()())()))()()()()())(()()()())(())()())()(())()()((()))))())))())()))())()()((()))(()(((()(())()))()(()(())))((()())))()()()(()())())(()())))())))(()))(((()(()(()(((()(())())(()())()())()))((()()()())))()()))(())(((((()(()(()(())()()((()(())()()()()(((())()()())())()))))()()()())(()))()(()()())(())()())()))()()()))))))(()(()()())(()((((()()))()))))()(())))))))()(()))()(()))())))))()))()()()()())(()(())))()()))(()((()))(()()()))))()())(()()(())((((()(()(())))(((())(())())()()(()()))))()()(())())())())()(()((())()))())(((()))))(()(()))()))())())()))(()())))()()()()(()()()))))()))))(())))(()((()()()))(())))))(()))())))((()(()()())))()(()))))))())()(()))(()))

9 Name: #!/usr/bin/anonymous : 2019-03-05 16:47 ID:i9qJgRdH

Don't talk about my other car

10 Name: #!/usr/bin/anonymous : 2019-04-07 18:16 ID:vfFzjxTs

>>8
Is LISP anti-Semitic because of all those Nazi parentheses?

11 Name: #!/usr/bin/anonymous : 2019-10-06 20:05 ID:Cv0YsQXA

lissshshhhhhp

vc: pow

12 Name: #!/usr/bin/anonymous : 2019-11-18 20:14 ID:wo7wCEby

use shiichan
piss off language puritans,
kill website 4 years later
?????
revive website 10 years later
profit

13 Name: #!/usr/bin/anonymous : 2019-11-26 20:18 ID:V1qgb+oU

>>12
yes

>>4
that's actually a really interesting article. I don't think that oddities like that make or break either language though. I think that >>3 was just getting at the fact that an uninitiated person will have trouble deciphering the purpose of those functions when viewing a lisp program.

14 Name: #!/usr/bin/anonymous : 2019-12-20 16:55 ID:dWGgI2YI

I will never understand the rivalry between C and Lisp. One's a low-level language designed to make systems programming more orderly and make operating systems easier to port. The other is a high-level language designed so that it could be abstracted as far as the programer needs to fulfil very specific tasks.

It's like comparing Python and Ada or Javascript and C#. What do you even hope to accomplish with such a thing?

15 Name: #!/usr/bin/anonymous : 2019-12-24 18:38 ID:iSfuYfjF

> What do you even hope to accomplish with such a thing?

Trolling and/or smug programmer wank of the "my way is the only correct way" variety.

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

reCaptcha alternatives (3)

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
Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:

How to make my own imageboard (14)

1 Name: #!/usr/bin/anonymous : 2013-12-13 02:52 ID:ivLZN6o0

I am very new to the imageboard setup stuff so I have no clue how to set it up. And I haven't/don't know how to make a table for a DB. If someone could he that would be great.

5 Name: #!/usr/bin/anonymous : 2014-04-21 20:10 ID:rqtFFo91

  1. Learn HTML and CSS (or find a cheatsheet)
  2. Learn basic PHP or Perl (one or the other)
  3. Install apache and PHP/Perl and MySQL
  4. Learn SQL commands like SELECT, INSERT, UPDATE, and DROP
  5. ???
  6. PROFIT

Or just do:

[form.html]
``<html><body><h1>Post here:</h1><form name="theform" action="post.php" method="post"><textarea name="comment" placeholder="Post a comment here" rows="8" cols="64"></textarea> <input type="submit" name="submit" value="Reply" /></form></body></html>

[post.php]

Post too long. Click to view the whole post or the thread page.

6 Name: #!/usr/bin/anonymous : 2014-05-03 05:47 ID:Heaven

tl;dr - it takes 4 years 2 weeks 1 second to make an imageboard!

7 Post deleted.

8 Name: #!/usr/bin/anonymous : 2017-05-09 11:48 ID:yejGrNaH

read all the scripts at http://tanami.org/overscript/ then come back

9 Name: #!/usr/bin/anonymous : 2017-05-11 09:21 ID:U9no1vcm

>>8
huh, didn't know that existed. Thanks.

10 Name: #!/usr/bin/anonymous : 2017-05-16 05:02 ID:uDa0QT6N

ったく日本人にこれといった腕を持つプログラマがいなくて困ってるわ

どんだけ日本人じはスキルがねーんだよw

11 Name: ANONYMOUS : 2019-01-15 07:45 ID:iXcXD2BI

HTML + CSS + PHP + MySQL + SQL + ??? = PROFIT!!!!

12 Name: HA : 2019-01-15 07:48 ID:iXcXD2BI

TROLOLOLOLOLOL HAHAHAHA

13 Name: #!/usr/bin/anonymous : 2019-08-20 00:43 ID:9zIAkO+F

sudo apt get website

14 Name: #!/usr/bin/anonymous : 2019-10-06 20:00 ID:uzcpeJza

use wakaba. if you are not stupid then you can do it. try your best ganbatte (*´∀`)

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

Rewrite 4-ch in Rust (4)

1 Name: #!/usr/bin/anonymous : 2019-08-18 05:18 ID:u38a3CkG

Do it. Now.

Also remember to follow the code of conduct

2 Name: #!/usr/bin/anonymous : 2019-08-18 19:45 ID:HBwGNd1/

Eat my ass out with a teaspoon

3 Name: #!/usr/bin/anonymous : 2019-08-19 08:00 ID:/MyiS9LL

>>2
Okay baby

4 Name: #!/usr/bin/anonymous : 2019-08-23 20:43 ID:u38a3CkG

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

RIP /prog/rider (48)

1 Name: #!/usr/bin/anonymous : 2017-03-04 20:05 ID:QUE518++

progrider finally kicked the bucket.. shame. there's news about a new one at goatfinger.ga

39 Name: #!/usr/bin/anonymous : 2017-06-15 04:05 ID:Heaven

why not just use 4-ch

40 Name: #!/usr/bin/anonymous : 2017-07-19 21:16 ID:DdkJdGdT

it is a cult. its posters are on psuedo-crack. I used to be a big fan until I realized how harmful its way of thinking is. As a fan of survival shows, I will make an analogy:

On Naked and Afraid XL, there was this one incident where half of the survivalists had to tap out on the same day. It began when they found a fruit tree and ate the fruit. they enjoyed it, it was good, but it took a couple hours for some, a whole twelve or so hours for others to begin feeling the awful excruciating pain that was caused by eating this fruit. Some were lucky, and did not get the poisoning.

Ladies and gentlemen, much of the things you read on here, the things you absorb here, are like this scenario. You get hooked and soak it all in, but it may take a good amount of time, perhaps years, before you notice the negative effects, and will you have the wisdom to know where it started?

goatfinger has a unique affect on people. it has the ability to bewilder and "change someone's entire perspective on life" as was with me and as I often hear. However, this perspective change is not so different from a psychotic experience. Beware.

41 Name: #!/usr/bin/anonymous : 2017-08-01 16:23 ID:DdkJdGdT

goatfinfer - incredibly shit

42 Name: #!/usr/bin/anonymous : 2017-10-11 21:51 ID:DdkJdGdT

goatfinfer - incredibly shit

43 Name: #!/usr/bin/anonymous : 2017-10-12 23:18 ID:UBjv7BE9

What's "goatfinfer"?

44 Name: #!/usr/bin/anonymous : 2017-10-14 16:02 ID:r4BhLdWB

>>43
incredibly shit

45 Name: #!/usr/bin/anonymous : 2018-03-06 20:28 ID:5paw317M

goatfinger has moved to goatfinfer.ga

thank you myfreenom for the amazing support and service.

46 Name: #!/usr/bin/anonymous : 2019-03-26 21:46 ID:Fw4Q6YTW

goatfinger.cf now, thank you again myfreenom for the amazing support and service.

47 Name: #!/usr/bin/anonymous : 2019-06-13 02:42 ID:YnJFXBDz

goatfinger.cf is dead

48 Name: #!/usr/bin/anonymous : 2019-08-19 08:00 ID:1omhj1jH

>>47
good

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

Java Server Faces sucks tremendous amounts of dick (1)

1 Name: #!/usr/bin/anonymous : 2019-02-14 00:48 ID:UJSjKKh9

It's shit. It's fucking shit.

Jesus christ I hate it so much. It doesn't have the right to exist. Die you piece of shit.
I could have done the project THREE TIMES without it. It's specifically designed to make you suffer and want to die.


Anyways, vent off in any way or form, I'm going to sleep.
Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:

New thread

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