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

lol (3)

1 Name: dicks : 2012-02-25 17:03 ID:vYRzb1JR

[b][i][u][o]this board is more dead than[/o][/u] [spoiler][sup]/prog/[/sup][/spoiler][/i][/b]

2 Name: #!/usr/bin/anonymous : 2012-02-25 19:11 ID:Heaven

Terrible!

3 Name: #!/usr/bin/anonymous : 2014-10-30 21:37 ID:0mPA+8Bz

fag

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

>EXPERT HTML PROGRAMMER (8)

1 Name: >EXPERT HTML PROGRAMMER : 2014-04-21 17:52 ID:lot+OX0a

>EXPERT HTML PROGRAMMER

2 Name: 4-ch.net/code : 2014-05-02 14:42 ID:6E69x8qt

4-ch.net/code

4 Name: #!/usr/bin/anonymous : 2014-08-10 09:32 ID:Fu87NZgk

<?test ><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html><?test ><!-- ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?test --><?test ?>
<head>
<?test >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- ?>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<?test --> <?test ?>
<title>HTML or XML?</title>
Post too long. Click to view the whole post or the thread page.

5 Name: #!/usr/bin/anonymous : 2014-10-24 20:58 ID:Is1ApMpB

><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
>"http://www.w3.org/TR/html4/strict.dtd">

who uses html 4 these days?

<!DOCTYPE html>
<html>
...

6 Name: #!/usr/bin/anonymous : 2014-10-25 05:02 ID:Heaven

>>5
That's XHTML 1.0.
Well, actually it's both.
That trick isn't possible with HTML5, because HTML5 isn't XML or SGML.
IMO, once they decided to ditch XML and SGML, they really should have gone with a more sensible style of markup... maybe something like RTF. But I guess there's some unwritten law that standards can't be sensible.

7 Name: #!/usr/bin/anonymous : 2014-10-28 04:46 ID:W/pqbgBQ

>>6
prefix hypertext markup with continue indications

(leltype!!! phm)

(phm
(charset shift_jis)
(parse until (end)))

(title standards@4ch)
...

(fuck wakabamark)

8 Name: #!/usr/bin/anonymous : 2014-10-28 04:52 ID:W/pqbgBQ

>>7
It doesn't have to be strictly prefix though, so likely another name..

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

Why can't you find /secert lounge/ RedCream, WHY? (2)

1 Name: #!/usr/bin/anonymous : 2014-10-21 19:22 ID:cPjN8J+6

RedCream you are a blowhard!

2 Name: #!/usr/bin/anonymous : 2014-10-22 15:24 ID:z97nlblS

fag

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

What is your definition of "freedom" ? (12)

1 Name: #!/usr/bin/anonymous : 2014-04-22 10:49 ID:kQlYfQNM

Discuss.

3 Name: #!/usr/bin/anonymous : 2014-04-24 08:09 ID:M8os6tex

Freedom is the freedom to express 2 + 2 = 4. That granted, all else follows!

4 Name: #!/usr/bin/anonymous : 2014-04-25 01:07 ID:muqlh1bG

When I was young, I heard a song and thought to myself that the lyrics were

>Freedom's just another word for nothing left to do

Later, when I was slightly less young, I realized the lyrics actually were

>Freedom's just another word for nothing left to lose

Those definitions aren't especially useful to me, however, since I'm not a blues singer.

5 Name: #!/usr/bin/anonymous : 2014-05-30 09:49 ID:lW3PjXp1

I don't have one

6 Name: #!/usr/bin/anonymous : 2014-06-13 20:54 ID:4tpzojyy

"Freedom" only really has meaning in context. Freedom to do something, freedom not to have something done to you. On it's own it's an empty ideal.

Seeing as this is a programming board, I assume you mean "freedom" in a free software context, in which case my vote for free license goes to the MIT license. Simple and to the point, and not "copyleft" (which IMO is just trading one master for an arguably more benevolent one.)

7 Name: #!/usr/bin/anonymous : 2014-06-20 13:34 ID:Heaven

>>6
Your opinion is not appreciated. GPLv3 is the only license. We don't need shitty companies. We need transparency. Freedom as in free. The end.

8 Name: #!/usr/bin/anonymous : 2014-06-20 22:18 ID:4tpzojyy

>>7
Hello Stallman.

9 Name: #!/usr/bin/anonymous : 2014-07-02 09:23 ID:5H6su3Ag

But what if I want the freedom to have my work ripped off and exploited for commercial gain by leading companies such as Apple?

10 Name: #!/usr/bin/anonymous : 2014-07-11 13:34 ID:xtFFI2kx

>>9
That happens already on their side since they just ignore licences anyway, but if you really want such freedom, just upload your code on the interbutts without a licence.

11 Name: #!/usr/bin/anonymous : 2014-08-07 23:41 ID:muqlh1bG

>>10
In some countries, that's rather difficult. Luckily, the WTFPL covers such cases.

12 Name: #!/usr/bin/anonymous : 2014-10-14 20:48 ID:bGisZxUq

Freedom = being able to show Micro$oft, Apple and Stallman the middle finger whenever I want to.

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

Backup tweets (5)

1 Name: #!/usr/bin/anonymous : 2012-03-28 13:38 ID:DenC9bHu

How would I use wget to backup all a users tweets into a html file? There's 20 tweets per page so you need to iterate { TWEETS/20 } times

3 Name: #!/usr/bin/anonymous : 2012-05-20 18:01 ID:2e2u3CdO

>>2
Someone did it just in BASH without the API.

Then some guy defaced his site :(

4 Name: #!/usr/bin/anonymous : 2012-09-14 05:38 ID:Heaven

$ man wget

5 Name: #!/usr/bin/anonymous : 2014-10-11 00:33 ID:/N8oSbgd

fag

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

penis borg (1)

1 Name: #!/usr/bin/anonymous : 2014-09-28 12:52 ID:SBGFU3eD

penis borg

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

WAIFUCHAN.ORG IS YOUR FRIEND C: (2)

1 Name: WAIFUCHAN.ORG IS YOUR FRIEND C: : 2014-09-25 04:51 ID:a63ycuIT

WAIFUCHAN.ORG IS YOUR FRIEND C:

2 Name: #!/usr/bin/anonymous : 2014-09-27 18:06 ID:V8Ov5sYG

gooby plz

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

Tcl/Tk (25)

1 Name: #!/usr/bin/anonymous : 2008-08-24 01:33 ID:LD6S4lTz

Tcl is one of the most underrated computer languages today.

It has a weird syntax, but on the other hand the syntax makes it more extensible than any other language besides the Lisp family.

Tk is reputed for it's antique-looking widgets. However with the latest 8.5 releast TTk, Themeable Tk is the default which means native look on Vista, XP, OSX. (Not Linux though, but what can you call native there anyway?)

So if you don't know Tcl yet, go and learn it. It's extremely simple, has an interactive shell, and will expand your mind... much more than learning most other languages!!

Tcl/Tk rocks!

See http://www.tcl.tk/

16 Name: dmpk2k!hinhT6kz2E : 2008-08-28 19:17 ID:Heaven

> Python has a peculiar syntax that appeals to hackers because of its simplicity.

Compared to what?

http://svn.python.org/view/*checkout*/python/trunk/Grammar/Grammar?rev=65872

That's not particularly simple.

17 Name: #!/usr/bin/anonymous : 2008-08-29 11:27 ID:Heaven

>>15
Jeez, you're bitchy. I take back my previous statement. Take some Midol.

18 Name: #!/usr/bin/anonymous : 2008-08-29 21:18 ID:Heaven

>>17

Well fuck you too.

You want to dump on my favorite language? I'll dump on yours.

Lisp is more readable than python. It has fewer parenthesis, and is easier to post/copy/paste into forums with fewer mistakes.

19 Name: #!/usr/bin/anonymous : 2008-08-30 00:08 ID:Heaven

>>18
Who the hell said it was my favorite language, and where did you ever read in my post that I didn't like lisp?

Get off the internet.

20 Name: #!/usr/bin/anonymous : 2008-08-30 23:51 ID:Heaven

> those with a less immediately readable syntax (for example, C, Haskell, Lisp, or god forbid, APL)

Lisp's syntax is far more readable than Python.

21 Name: #!/usr/bin/anonymous : 2008-08-31 03:58 ID:Heaven

>>20
I said immediately. Try explaining a cdr or progn to a non-programmer, both which are very prevalent in lisp. What common Python idioms are likely to pose a problem for a new programmer?
Serious question. I've tried teaching people Python and Lisp both. Of those, Python is far, far easier for the average person to grasp. Not to mention it forces good indentation habits, but that's again a different story.

Once again trying to bring this thread back on topic, Tcl is kind of in the middle. It's fairly easy to teach to people that have at least a basic understanding of programming, but I imagine the complete non-coder would have a difficult time understanding the idiosyncrasies (e.g. the -switches for commands)

22 Name: #!/usr/bin/anonymous : 2008-08-31 20:36 ID:Heaven

> Try explaining a cdr or progn to a non-programmer, both which are very prevalent in lisp.

They're just words. All the words that are in lisp, are in this book: http://l1sp.org/cl/ or you can learn about them by typing:

(describe 'WORD)
> What common Python idioms are likely to pose a problem for a new programmer?

It all seems problematic for a new programmer. Explaining why sometimes you use [] lists and sometimes you use () tuples. Explaining why print isn't a method is also problematic. Explaining why they check __name__ also seems to cause problems. Operator-order is also difficult; explaining why they sometimes read a statement right-to-left, and other times from left-to-right seems problematic.

Someone who is familiar with some algol-like syntax such as is seen in a shell or in another language will have a completely different set of problems- the if, postfix-if, yield, self, and so on.

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

23 Name: #!/usr/bin/anonymous : 2008-09-01 15:18 ID:Heaven

>>22
Caution: Smug Lisp Weenie threadshitting.

24 Name: #!/usr/bin/anonymous : 2008-09-01 18:16 ID:Heaven

>>23
Caution: Pyfag.

25 Name: #!/usr/bin/anonymous : 2014-09-24 21:19 ID:5RXkJc27

>>22
Lisp is shit. The worst kind of shit: The kind [i]other people swear they like to eat.[/i]

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

gaynal sex (2)

1 Name: #!/usr/bin/anonymous : 2014-08-21 00:04 ID:77in1rtB

gaynal sex

2 Name: #!/usr/bin/anonymous : 2014-09-24 04:37 ID:EoG0cxR9

gaynus - 1. (n) The anus of a gay male. exp: "Ouch, right in the [b]gaynus[/b][i]![/i]"
gaynal - 1. (adj) relating to the anus of a gay male. exp: "Let's have some [b]gaynal[/b] sex[i]![/i]" exp: "I'm in the mood for some [b]gaynal[/b] fisting[i]![/i]"

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

GameBoy Color emulator in JavaScript (13)

1 Name: #!/usr/bin/anonymous : 2011-08-04 08:17 ID:Qeftnp5w

Someone made a GameBoy Color emulator in JavaScript, now you can play all the classics!
http://www.grantgalitz.org/gamecenter/

4 Name: #!/usr/bin/anonymous : 2011-12-21 21:43 ID:BvKBdNGo

Wow. This is cool.

5 Name: #!/usr/bin/anonymous : 2011-12-23 00:40 ID:uzN0HapF

Wow! God job to whoever made this!! Minecraft, now this! And you guys said Java was dead!

6 Name: #!/usr/bin/anonymous : 2011-12-24 17:25 ID:BvKBdNGo

>>5

wth man

He said JavaScript. NOT JAVA.

7 Name: #!/usr/bin/anonymous : 2011-12-26 23:20 ID:z8oT3Vji

>>6
Just pretend he was trolling.

Is there any sort of easy-to-read guide or manual on the Game Boy and its instruction set (Z80?)?

9 Name: #!/usr/bin/anonymous : 2012-01-04 05:53 ID:PyTm9YAw

10 Name: #!/usr/bin/anonymous : 2012-01-04 09:32 ID:gvG7mhwu

>>7

>(Z80)

Nice ID :o

11 Name: #!/usr/bin/anonymous : 2012-01-17 19:38 ID:wR2Te6ws

This reminds me of the PC emulator someone wrote in javascript:
http://bellard.org/jslinux/
It isn't very fast, but it's still very impressive.

12 Name: #!/usr/bin/anonymous : 2014-09-03 03:58 ID:+P8b84o1

gooby plz

13 Name: #!/usr/bin/anonymous : 2014-09-17 21:04 ID:VjPMwcga

https://www.sendspace.com/file/zagq2q
It is private leaked cracked version! Do not say thanks!!

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: