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

TeX/LaTeX (9)

1 Name: #!/usr/bin/anonymous : 2007-12-30 09:14 ID:4eMCKv+m

I just discovered this a few weeks ago, and I love it. It's obviously not a hardcore programming language, but it is simply phenomenal when it comes to typesetting formal scientific work. If you write any sort of reports, articles or w/e, I would recommend looking into this

2 Name: #!/usr/bin/anonymous : 2007-12-30 13:44 ID:Heaven

>>1
How old are you? I'm guessing 12 to 16, right? No offense, LOL.

3 Name: #!/usr/bin/anonymous : 2007-12-30 18:38 ID:ItzRzCOd

>>2
How old are you? I'm guessing 52 to 56, right? No offense, LOL.

4 Name: #!/usr/bin/anonymous : 2008-01-01 07:53 ID:fjiAL8/d

>>3
How many oppai oppai posts have you done? I'm guessing 2-5, right? No offense, LOL.

5 Name: #!/usr/bin/anonymous : 2008-01-01 13:51 ID:cxcTksCT

>>4
Forget it, it's NP complete.

6 Name: #!/usr/bin/anonymous : 2008-01-01 14:26 ID:Heaven

But it doesn't have jisshin/kashin model.

7 Name: #!/usr/bin/anonymous : 2008-01-01 22:12 ID:Heaven

>>6
Is TRON a meme now?

8 Name: #!/usr/bin/anonymous : 2008-01-02 13:29 ID:Heaven

That depends on how many people use that line in a given period of time.

9 Name: #!/usr/bin/anonymous : 2017-11-10 00:18 ID:JlAF2nkU

dicks out for Harambe

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

Giving Up (9)

1 Name: #!/usr/bin/anonymous : 2007-09-01 05:51 ID:a5XAP1up

Have you ever worked on a piece of software that just made you give up on using a certain programming language?

After spending almost a year working on some forum software in PHP, I just recently said fuck it and started anew in Perl--a language which (I'll admit) I had turned away from previously. The last straw for me was trying to deal with Unicode in PHP, which was just terrible. And I was also becoming just sick of magic quotes and some of the other hassles of the language in general.

2 Name: #!/usr/bin/anonymous : 2007-09-01 17:17 ID:Heaven

It's called practicing. Musicians do it all the time, as do graphic artists.

3 Name: #!/usr/bin/anonymous : 2007-09-01 18:43 ID:vmMpcyiY

Art and music is fun, though.

4 Name: #!/usr/bin/anonymous : 2007-09-02 00:51 ID:XxujhPHK

Right, but PHP is a crock of shit.

5 Name: #!/usr/bin/anonymous : 2007-09-02 00:55 ID:Heaven

>>2
Someone can practice an instrument long enough and realize they don't like it, but there's a difference between, "Well this isn't for me," and, "This shit is just objectively awful." I don't think people would say the later about a piano, but they might about PHP.

6 Name: #!/usr/bin/anonymous : 2007-09-02 02:13 ID:Heaven

PHP is the kazoo of programming languages.

7 Name: dmpk2k!hinhT6kz2E : 2007-09-02 05:20 ID:Heaven

Zope3 came very close from turning me off from Python permanently. It's only recently that I've begun tentatively prod that language again, mainly due to Django and Pylons. I still dislike the syntax intensely, but I can overlook that.

Also, trolling Python fanboys on reddit is fun. It borders on a religion for some of them.

8 Name: #!/usr/bin/anonymous : 2007-09-03 23:48 ID:Heaven

PHP is the "client" programming language. The language is not extendable in the language itself without going to Java-style pains or dealing with string eval.

Contrast with Perl, where you can pretty much define your own syntax features in the language. This came in handy when developing a database transaction helper package, particularly when we realized that automatic restart on serialization failure or deadlock would be a really nice thing to have. Also transaction nesting, PostgreSQL having savepoints since 8.0 and all.

Perhaps someone who'd been using PHP for 10 years could replicate that. But, I wouldn't want to have that conversation with him.

9 Name: #!/usr/bin/anonymous : 2017-11-09 02:38 ID:FsptFmUL

dicks out for Harambe

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

Smoke weed everyday (10)

1 Name: #!/usr/bin/anonymous : 2010-07-01 13:43 ID:CUP9EvwS

It makes programming less annoying

2 Name: #!/usr/bin/anonymous : 2010-07-10 10:33 ID:tMNdxDbd

Nope. You have to use your brain when you're coding. If you are annoyed by coding, then you should consider quiting.

3 Name: #!/usr/bin/anonymous : 2010-07-10 23:06 ID:T/GlYzfb

yeah everyone knows that coders are into speed and adderal and like substances.

The networking guys seem to like weed a lot. Maybe you should consider crossing the divide.

4 Name: #!/usr/bin/anonymous : 2010-07-14 01:33 ID:m0Fr78vN

>>2

It's a /prog/ joke.

5 Name: #!/usr/bin/anonymous : 2010-07-28 19:40 ID:dVV/8eC7

i'm a coder and mostly just do weed. does wonders!

6 Post deleted.

7 Name: #!/usr/bin/anonymous : 2010-08-11 05:10 ID:Heaven

>>4
It's really not.

8 Name: #!/usr/bin/anonymous : 2010-08-12 03:22 ID:+FXaTri4

Yeah im a network IT and we all smoke tons of weed, I can see where programmers like to use speed and shit

9 Name: #!/usr/bin/anonymous : 2010-08-18 08:29 ID:Heaven

>>4
it's actually a failed /b/ thing that has just been spammed all over /prog/ by the same idiot who tried to spam it on /b/ and failed. you're probably that idiot, and should go back to b, please.

10 Name: #!/usr/bin/anonymous : 2017-11-08 15:03 ID:GEVBK23H

dicks out for Harambe

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

Scheduled reminder that LISP sucks! (7)

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

Scheduled reminder that LISP sucks!

2 Name: "Please Don't Shout Lisp" guy : 2017-09-11 18:22 ID:Heaven

Please don't shout Lisp.

3 Name: #!/usr/bin/anonymous : 2017-10-19 21:18 ID:DchfXdXe

Why does LISP suck, OP? Justify your claim, or else we might conclude that LISP rules, by default. Coming from C mindset, LISP is admittedly hard code to follow with all the parentheses and shit and oddities such as CAR and CDR that are vestigial remains from a 1950s mainframe instruction set.

4 Name: #!/usr/bin/anonymous : 2017-10-20 20:34 ID:Heaven

Unlike C, which has no oddities whatsoever. Did you know the m' in malloc' does not mean `memory'? https://www.spinellis.gr/blog/20170914/

5 Name: #!/usr/bin/anonymous : 2017-10-21 02:41 ID:DchfXdXe

I have to admit that LISP has a most fascinating culture, from it's genius creator (and coiner of 'AI' term) John McCarthy, to the whole MIT subculture replete with "Knights of the Lambda Calculus", SICP wizard Sussman and awesomely named Guy Steele with Scheme LISP, and the landmark MACSYMA algebra system (first CAS).

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

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

RIP /prog/rider (44)

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

35 Name: #!/usr/bin/anonymous : 2017-04-08 03:54 ID:0Fa/lxv6

>>34

> ga/y/

Not clicking on that.

36 Name: #!/usr/bin/anonymous : 2017-04-21 08:06 ID:07N1kL1y

The pedophile /prog/ was the worst /prog/ ever. Do we have a pedophile-free replacement?

37 Name: #!/usr/bin/anonymous : 2017-05-09 20:39 ID:UBjv7BE9

>anonymous board
>pedophile-free

Pick one.

38 Name: #!/usr/bin/anonymous : 2017-06-07 08:23 ID:QpGFNZ2G

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

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

Windows redone (43)

1 Name: #!/usr/bin/anon 2006-02-15 22:03 ID:YJPrUgHV

We've all used Windows. A lot of us use it for games and desktop applications. Quite a few of us love it. And I'm sure we've all got things we hate about it too.

I have a few bones to pick:
a) Drive letters:
Most files are organized into folders. For example, "C:\Program Files". But each filesystem and device has its own root folder, like "A:\", "C:\", and other letters assigned in the stone age.

(backward compatibility, blah, blah, blah, it's been several decades, blah, blah, blah)

b) Folder structure:
Yes, we've all heard the reasons why we should spend forever typing "C:\Program Files\Accessories" and "C:\Documents and Settings\Brian\My Documents", why there's "C:\Windows\System" and "C:\Windows\System32", or why on some versions it's "C:\WinNT". So what?

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

34 Name: #!/usr/bin/anonymous : 2006-03-31 07:48 ID:5TWcrxKz

>>33

Yes, but that's mainly for system administration, rather than user interaction. I'm talking about something like a single message window that would inform you of incoming IMs, emails, finished downloads, etc. Basically everything handled with balloons right now, plus more. In addition you should be able to filter and log all the notifications.

35 Name: #!/usr/bin/anonymous : 2006-03-31 15:07 ID:Heaven

Stop bumping this dumb thread. Nobody cares about Windows users and their retarded fantasies.

36 Name: #!/usr/bin/anonymous : 2006-03-31 23:22 ID:Heaven

>>34
Nothing but you is stopping you writing this. That's the problem with you Windows users: it's always "someone else should" instead of "I should". We are in /code/, are we not?

37 Name: #!/usr/bin/anonymous : 2006-04-05 02:32 ID:Heaven

>>36
Well, developing non-console apps for Windows is generally harder than on Linux, I think.

38 Name: #!/usr/bin/anonymous : 2006-04-06 16:25 ID:Heaven

every 1MB of RAM used for OS is lost 1MB of RAM. System should be light and fast to allow PROGRAMS use the ram, not crappy windows (not meant as a system name).

As for winapi32 : whith .NET it's dead

39 Name: #!/usr/bin/anonymous : 2006-04-08 01:22 ID:Heaven

Uh, yeah, the operating system should fit in 64K. DOS fan?

40 Name: #!/usr/bin/anonymous : 2006-07-14 03:07 ID:irUeVFKv

> e) Configuration:

Registry is a total mess. Config files starting with a dot in your home directory are way better.

41 Name: #!/usr/bin/anonymous : 2006-07-14 12:41 ID:Heaven

>>40
saging a legendary thread

42 Name: #!/usr/bin/anonymous : 2006-07-15 04:31 ID:F++K+XDH

>>39
I am.

43 Name: #!/usr/bin/anonymous : 2017-10-04 00:59 ID:P8MulBiA

penus

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

HAX MY ANUS (9)

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

[code]
'-._ ___.....___

`.__           ,-'        ,-.`-,
`''-------' ( p ) `._ HAVE YOU HAXED
`-' ( MY ANUS TODAY ?
\
. \
\---..,--'

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

                 `-.._         _.-'
`'-----''

[/code]

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?

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

Tests (4)

1 Name: #!/usr/bin/anonymous : 2017-09-20 18:39 ID:twRD6tvK

Even post numbers think tests are good.
Odd post numbers think tests are shit.

I'll start. Unit tests are a crutch

2 Name: #!/usr/bin/anonymous : 2017-09-23 20:16 ID:KX0q8kcl

dicks out for Harambe

3 Name: #!/usr/bin/anonymous : 2017-09-25 06:15 ID:sMX0bWfe

nice idea for a thread.

they can only find errors, not prove that the program is working

4 Name: #!/usr/bin/anonymous : 2017-09-27 18:42 ID:PM60ti8s

Tests are great when you have something like QuickCheck to generate them for you

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

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

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

5 Name: #!/usr/bin/anonymous : 2017-06-21 19:33 ID:ilN/++Zs

>>4
Oh damn, busted. I must have been thinking of "accumulate".

They really don't have that? Does it at least have immutable map literals?

6 Name: #!/usr/bin/anonymous : 2017-07-03 23:23 ID:jv9oB1f2

>>5
No and no. Guido van Rossum is against immutability. He is also against TCO and recursion in general (search for: "neopythonic" "tail recursion elimination")

7 Name: #!/usr/bin/anonymous : 2017-07-16 19:53 ID:M3qI9Fmx

>>2
There is nothing wrong with forced indentation. A good programmer shall indent their code regardless. A bad programmer will make everything look like shit so forced indentation makes his good usable to others besides himself.

8 Name: #!/usr/bin/anonymous : 2017-07-16 19:55 ID:M3qI9Fmx

> no do-while statement

There already is while. A do-while construct is redundant.

9 Name: #!/usr/bin/anonymous : 2017-07-20 19:37 ID:ilN/++Zs

>>8
Both for and named let subsume while, to boot.

10 Name: #!/usr/bin/anonymous : 2017-08-30 00:30 ID:jv9oB1f2

Reason#381: [i]inconsistency and lack of abstraction for array declarations[/i] https://docs.python.org/2/faq/programming.html#how-do-i-create-a-multidimensional-list

11 Name: #!/usr/bin/anonymous : 2017-08-31 16:55 ID:jv9oB1f2

12 Name: #!/usr/bin/anonymous : 2017-09-03 18:53 ID:eycA3OAX

  • GIL
  • metamethods
  • attributes

13 Name: #!/usr/bin/anonymous : 2017-09-06 19:50 ID:zwyhM5U6

>>7
Yes but they'll indent it in a specific way, while the compiler won't compile if someone uses the "wrong" whitespace.

14 Name: #!/usr/bin/anonymous : 2017-09-06 20:16 ID:Heaven

>>13
They'll indent it in a shitty, inconsistent way, because they're a bad developer, and the compiler will force them to not do that.

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

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

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

73 Name: #!/usr/bin/anonymous : 2016-10-30 16:24 ID:/XKYs9lR

#include <stdio.h>

void main( int argc, char *argv[] )
{
printf("    ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\n");
printf("    ( ´∀`) < "); puts(argv[1]);
printf("     /    |  \________\n");
printf("  /     .|\n");
printf("   /\"⌒ ヽ |.イ |\n");
printf(" __ |  .ノ || ||__\n");
printf("    ノく_つ ∪ ∪   \\n");
printf("__((_________\\n");
printf(" ̄ ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ ̄ | |\n");
printf(" _____________| |\n");
printf("  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |\n");
Post too long. Click to view the whole post or the thread page.

74 Name: #!/usr/bin/anonymous : 2016-11-02 14:39 ID:Ar0frgQ5

I've been so busy with classes that I haven't had any time for my project. It really sucks. I miss working on it, and I feel like my programming skills might atrophy if I don't use them.

75 Name: #!/usr/bin/anonymous : 2016-11-02 19:06 ID:CCbly2Ll

>>74
don't worry, they wont!

76 Name: #!/usr/bin/anonymous : 2016-11-02 20:16 ID:jdDDUZ5G

>>74
Nah, all you lose is what the hell you were doing on that project more than a week ago.

77 Post deleted.

78 Name: #!/usr/bin/anonymous : 2016-11-13 15:36 ID:cfTgRxUb

Just playing with making a very dumb sorta-BBcode-to-HTML converter in flex, just for the hack of it.

79 Name: #!/usr/bin/anonymous : 2016-12-14 08:16 ID:FM/xpue5

I really want to sit down and give Perl 6 a spin but I simply don't have the time.

80 Name: #!/usr/bin/anonymous : 2017-03-30 20:02 ID:zsYtzRP0

I'm >>72 and I originally started it in Haskell. I've since restarted the project in Guile because there's a bit too much boilerplate in Haskell to get what I want.
I've simplified all the code heavily (I'll figure out the SLOC difference later but it's got to be <5%), and made it so that the whole thing is a library rather than a program, and a "setup" (which instruments are plugged in where, what UI pieces you want to see, etc) is a simple program you write. You should be able to live-code the thing in the REPL if you want, too, because that's hot these days.

81 Name: #!/usr/bin/anonymous : 2017-05-07 17:12 ID:ed9UcoP8

>>63
I swear I could have written this post, since I also started a roguelike after dumping my previous, over-scoped project.

I'm working in love2d, since I'm most familiar with scripting shit, and honestly, I'm really enjoying it. It's just free enough to not feel like I need to switch to a heavier-duty engine to get basic shit done, and the rotLove library for 437 display is flexible enough to be used full time, after you tweak it a bit.

82 Name: #!/usr/bin/anonymous : 2017-08-27 13:05 ID:P34EKj1y

I have been shaving yaks:
I am making a game in Pico-8, but it got to a certain size and the dynamicity of Lua meant I couldn't comfortably refactor it without scrapping it and starting again.
So in order to avoid that problem and to work in a language I am more comfortable with, I decided to write a typed DSL for Lua and a pico8 API on top of that, so I woudn't have t actually manually write any lua at all.
So, in order to do that, I taught myself Idris so I could use dependent types and because it's basically a more user-friendly Haskell.

Anyway I'm coming out of that valley and actually managing to write some proper code for the game using my DSL. It's pretty neat.

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: