[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / w / wg] [i / ic] [r9k] [cm / hm / y] [3 / adv / an / cgl / ck / co / diy / fa / fit / hc / int / jp / lit / mlp / mu / n / po / pol / sci / soc / sp / tg / toy / trv / tv / vp / x] [rs] [status / ? / @] [Settings] [Home]
Board:  
Settings   Home
4chan
/g/ - Technology
Text Board: /tech/


Posting mode: Reply
Name
E-mail
Subject
Comment
Verification
reCAPTCHA challenge image
Get a new challenge Get an audio challengeGet a visual challenge Help
File
Password (Password used for file deletion)
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 3072 KB.
  • Images greater than 250x250 pixels will be thumbnailed.
  • Read the rules and FAQ before posting.
  • Japanese このサイトについて - 翻訳


New HTML/CSS rolled out two weeks ago. Be sure to check out the new mobile-optimized layout for phones, and inline extension features.

We also added two new themes (first time in 4.5 years!). Thanks to seaweed for porting them over from OneeChan!

We are still working through a few bugs with the new code. Please report any bugs you find to newhtml@4chan.org.

File: 1338040272839.jpg-(65 KB, 499x699, hipster.jpg)
65 KB
>making web content
>using anything but php for server side scripting, mysql for database, javascript for client side scripting
Why are you so hipster?
>>
Your shitty site better not break when JavaScript is disabled.
>>
>>25107828
HTML back up for users that have java script disabled but I haven't gone out of may to make the site work perfectly for IE users and display a notice telling them to download Firefox.
>>
>>25107876
>implying I let you decide which browser I use
>>
>>25107806
>PHP, HTML and CSS masterrace.
>I only started webdev 3 days ago.
http://awsomedude1.heliohost.org/text.php
>>
>>25107913
u wot m8
>>
>>25107931
I wot m8.
>>
>>25107947
he wot m8
>>
>>25107961
we wot m8
>>
File: 1338040845563.png-(109 KB, 490x394, 1312228949574.png)
109 KB
>>25107961
they wot m8
>>
>>25107971
i fcked ur mother u faggot
>>
>>25107806

who is she?
>>
File: 1338040933811.gif-(108 KB, 200x160, 1266151731483.gif)
108 KB
>>25107980
cum on me brah
>>
>>25107999
cum hir bro, ill beat ur sorry but
>>
File: 1338041034305.gif-(4 KB, 344x326, 1264957492538.gif)
4 KB
>>25108017
nah bro i dun want 2
fuck u bro i have ur IP
>>
File: 1338041122583.png-(112 KB, 1022x478, colors and shit.png)
112 KB
>>25107913
This guy here.
What colours look better?
Both loosely based of yotsuba and yotsuba b.
>>
>>25108061
First one.
Because pink.
>>
>>25107913
>View source

Dude, what are you doing. Holy shit. My boss can do better, and he fucked up a lot of websites already.
>>
>>25108029
What the fuck did you just say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to be but another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth.
>>
>>25108091
>Dude, what are you doing.
I don't know what I'm doing.
I'm actually suprised that I got it to a "It just werks" stage.
What do you suggest that I should change?
>>
>>25108117
everything.
Shit sux yo
>>
>>25108131
>Shit sux yo
Noted.
>>
>>25108117
https://developer.mozilla.org/en-US/learn/html

Come back in a month.
>>
>>25108117
Learn XHTML Strict 1.0

Your source made me cringe. It's like something from 1999.
>>
>>25108177
Will do.
>>
>>25108189
While you're there, go learn Visual Basic. It'll help you in the long run
>>
>>25107806
This isn't 1999 anymore. We have things like Rails, Django, and Node that allow for much easier and more powerful web development.
Also, PostgreSQL > MySQL
>>
>>25107828
Fucking this.
I am sick of the reliance on google apis.
>>
>>25108201
>While you're there, go learn Visual Basic.
In what ways?
>>
>>25108213
Wait, I meant to quote:
>It'll help you in the long run
How will it help?
>>
>>25108213
From the ground up. Visual Basic will help you a lot later on.
>>
>>25107806
MySQL licensing terms: I can only use MySQL if my webpage is GPL licensed. The free as in beer version of DB2 has no such restriction, and neither has PostgreSQL. And MS-SQL is no more expensive than MySQL.

I can also get more shit done quickly using Common Lisp with CL-WHO CSS-Lite, Hunchentoot, Parenscript and so on. You the user get javascript, css and xhtml, on a faster server.

It's win-win.

Oh, and idiots cannot get hired to work on my web-page, which is great news.
>>
>>25108213
He's joking.

XHTML Strict 1.0
CSS 2.1+
JavaScript

Learn those.
>>
>>25108223
Can't tell what you're saying.
>>
>>25108222
See:
>>25108221
I fucked up.
What way will it help me?
I already know a fair bit about Python.

>>25108232
Okay.
The reason the code looks like it's from 1999, is because the site I was learning of was from a long time ago.
>>
>>25108223
0/10

>MS-SQL
nope.edu
>>
>>25108177
>XHTML Strict 1.0
No, don't do this.
XHTML is supposed to be used when you need to embed XML data.
If you're serving it just as HTML you're doing it wrong.

Learn HTML 4.01 and HTML5.
>>
>>25108245
Fair enough.

>>25108256
You're a fucking idiot.
>>
bump
>>
>>25108222
Why the fuck would anyone recommend visual basic over languages like python or ruby?
>>
PHP is shit, slow and insecure. Ruby or Python is much better and faster. Heck even ASP.NET and Java are better than PHP.
MySQL is ok but slow so I prefer Postgre and Redis
JavaScript is amazing but I implement fallbacks when it doesn't work
I use Python for all my backend.
>>
>>25108256
Thanks for yout input.
>>
>>25108256

It's the fucking same
>>
>>25108272
Can you make a GUI IP tracer in 5 minutes with Pythong or Ruby? No? Okay.
Visual Basic: 1
Shitty pieces of shit languages: 0
>>
>>25108283
Please for the love of god ignore him.
>>
>>25108279

I see phyton being used everywhere nowadays, from websites to 3D applications, what's the deal with that? Is it really that good?
>>
>>25108292
Please for the love of god ignore this faggot.
He has no idea.
>>
OP is a fag, what is actually good for those applications he listed?
>>
>>25108285
No, it isn't.
XHTML is fucking useless.
>>
>>25107806
Django seems good for server side development.

What do you think about Django /g/?
>>
>>25108307
No, it isn't
Regular HTML is fucking useless.
>>
>>25108300
>>25108292
I will learn XHTML.
>>
>>25108313
Yes, it is.
XHTML is fucking useless.
>>
>>25108243
MySQL is only free for people who release the source for their entire stack. At that point you might as well pay for MS-SQL. Their standard table engine can deal with such advanced concepts as foreign keys.

If I don't want to pay, there's motherfucking DB2 and PostgreSQL available.

MySQL is good for people who want to do OSS stuff or just want to learn, but it's not good for proprietary stuff.

And Common Lisp's web stack is much better than PHP's web stack.

That's basically what I'm saying.

>>25108252
It's quite popular amongst people who're hosting an ASP.net site on IIS running on MS Windows Server 2008.

It's not my cup of tea, but plenty of people are satisfied with it.
>>
>>25108320
No it isn't.
XHTML is the best thing ever.
>>
>>25108303
Python (Django or Twisted), Ruby (RoR or Sinatra), MySQL/PostGre/Reddit/MongoDB as your database.
>>
>>25108266
Actually, he's right. 99% of people using XHTML are actually doing it completely wrong; they serve it as text/html which invokes the tag-soup HTML parser in the browser. They should really be using application/xhtml+xml, which involves the XML-based proper XHTML parser.

Anyway, XHTML is irreleveant thanks to <!doctype html>
>>
>Actually using XHTML oh god why? Just use regular HTML 4.* or if you are sane, HTML 5 (doctype html)

Not that it matters much, nobody outside of some retard that doesn't actually get any work done cares about your syntax and if you closed a faggy bracket.
>>
>>25108327
Mongo isn't relational though, so you have to put many checks in your code instead of letting your database handle it.

It's a tradeoff but many people seem to think it's worth it.

I'm still enamoured by the relational model, even if I have to built ORM wrappers for my database.
>>
>>25108329
The safest bet of any website at this point in time is to use and abide by a XHTML 1.0 Strict doctype and it's standards.
>>
>>25108327
>Python (Django or Twisted), Ruby (RoR or Sinatra)
For what?
>>
>>25108326
Yes, it is.
XTHML is the worst thing ever.
>>
>>25108327
Remember there's also Flask, Python's parallel to Sinatra
http://flask.pocoo.org/
>>
>>25108340
It's good for unstructured data and for being really fast.
>>
>>25108351
Actually
><!doctype html>
Do older browsers even know how to take this? IE6 for example?
>>
>>25108356
No, it isn't
XHTML>Regual shitty HTCL
>>
>>25108354
Server side scripts that generate the web pages.
>>
>>25108354
The backend. For front you can use pure HTML/CSS and add Javascript when you need extra stuff
>>
>>25108351
I've written everything in html5 for the past year and can get it working perfectly on every modern browser(IE9+) and without too many issues on shit as old as IE6, it's just a bit dirty how I let it work in older browsers.
>>
>>25108318
It's a waste of time.
You're gonna have to serve your content as HTML anyway because IE < 9 doesn't support it, which means you'll lose ALL the benefits of XHTML.
If you want maximum compatibility, use HTML 4
If you want sane development and don't care about 10 year old browsers, use HTML 5.
>>
>>25108363
They don't.
>>
>>25108351
Nope. HTML5 is fully backwards compatible (it doesn't actually imply that you have to use e.g. canvases, etc.). Again, you're probably not serving it as a/x+x anyway, so it's being parsed as HTML, which happens to work because of coincidental similarities in the syntax.

Read this and come back: http://hixie.ch/advocacy/xhtml
>>
>>25108360
True.
As I said, it's a trade-off.
>>
>>25108363
>Do older browsers even know how to take this? IE6 for example?
Yes.
>>
>>25108388
This guy is correct. IE <9 will choke on an XHTML page served as a/x+x, so until we can drop them, we'll have to serve as text/html, which means the "glorious" page will be parsed as if it were HTML anyway.
>>
>>25108363
>IE6
>2012
Why would you bother with that? Just go for IE8-9 and Chrome, FF3.6/4
>>
>>25108405
And by choke, I mean download prompt.
>>
>>25108388
Then I will not learn XHTML.
What's on the list:
>HTML 4-5.
>CSS3.
>Javascript ( I'll probably do this later, rather than sooner ).
>SQL.
In the midst of this whole XHTML shit flinging argument, /g/ has helped me a lot.
Thanks men.
>>
>>25108376
Well I don't know about you, but I don't like assuming clients have HTML5 supported browsers and then copping shit when it doesn't work.

>>25108406
Some older clients use IE6.

>>25108389
>>25108399
;liohtf;oisdygsdutg
>>
>not developing for only the latest browsers
Why do you hate progress?
>>
>>25108423
No problem. And remember: XHTML is dead.
>>
>>25108430
Some people intend to have actual users.
>>
So much misinformation in this thread.

>php slower than ruby
TROLOLGOGO

>mysql slow
TROLOLOLO

>ruby fast
SLAHAHASDFKLJSDFJSDF

>ruby scalable
I SHIVA LINGA SHAMALANGA DING DONG


OP I fully agree with you. Anyone else is a butthurt faggot hipster. I use Codeigniter all day everyday.

I challenge any of you faggots to build apps faster than I can. Nothing else matters until your app ships. I ship mother fucking apps. I'll ship before you're even done with your first controller.
>>
File: 1338042820474.png-(140 KB, 241x589, 1333692351620.png)
140 KB
>>25108423
Don't go anywhere near HTML4 what the hell are you doing.
>>
>>25108449

HTML is HTML. If he learns HTML5 he already knows HTML4
>>
>>25108424
>;liohtf;oisdygsdutg
The only purpose of the doctype is to trigger standards mode in the browser.
All the extra junk that as required in html 4 is pretty much useless because everyone ignored it anyway.

<!doctype html>
is enough to trigger standards mode in all browsers, even as far back as IE 6.
In fact, <!doctype html niggers suck cock> would probably trigger standards mode.
>>
>>25108449
>Don't go anywhere near HTML4 what the hell are you doing.
I don't know what I'm doing.
That's why I asked for help.
>>
>>25108440
The fastest code is code that doesn't exist.

Nothing will ship faster than nothing.
>>
>>25108449
He should know the difference between html 5 and 4, so if he bumps into compatibility problems he can work around them by dropping back to 4.
>>
File: 1338043061562.png-(86 KB, 298x571, 1337845321966.png)
86 KB
>PHP
http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/
>>
>>25108510
Who cares? I can still write apps. I can write code that others can understand. I can do it quickly. I can do it without thinking. Most of the "bad design" bullshit arguments are moot when you consider how awesome the php documentation is. It takes 2 seconds to google a function name.
>>
>>25108440
I think I've seen your work in the websites that have little retarded error messages about database connections being down in the upper left corner on the webpage.

Also, the notion that nothing is good until it's shipped is only true as long as your shipping app makes, and doesn't cost money. A quickly hacked-together bank app using mysqli_connect is not going to help anyone. At that point, the bank would be better off with static html.
>>
>>25108329
If you serve it as an application, everything and everything that isn't standard xhtml breaks your page. Its far to restrictive.
>>
>>25108424
Then tell them to upgrade. For the sake of security, development time and usability. You can have more than 1 browser installed.
>>
>>25108482
That's a yes. Thank you. I'll try using the new doctype in the future.

>>25108510
I read through that entire article last time I saw it linked. I'll still use php anyway because it's easy and supported everywhere.
>>
I just started HTML like 10 minutes ago.
I was trying to make a simple multiple choice option table type thing.
How bad is it /g/?
What would be a perfect example of what I was trying?
http://pastebin.com/yJG8EeNv
>>
>>25108573
They don't pay me to tell them to upgrade. They pay me for a website that works. If I told them that they'd find someone else.
>>
>>25108546
I make internal "enterprise" (herp derp derppp) apps at work.

Seeing mysql errors is shit fucking retarded, I've never made an app that displayed any bullshit errors to the user. If any kind of unrecoverable error happens, the user sees an oops message and I get email about what happened. Most frameworks handle this kind of thing for you hassle free...
>>
>>25108577
Close off tags that you start

<option></option>
>>
>>25108626
That includes </select> and good on you for using indenting.
>>
>>25108648
>>25108626
Ahh, thanks.
I was not aware that those needed to be closed.
>>
>>25108594
So they rather pay more to create something that is shit than create something that is less? And they won't appeal to common sense? Even if it's advise from an "expert"? I wonder what country you live in, so I can avoid it like the plague.
>>
>>25108675
you clearly have not done any consulting or worked a real job ever.
>>
>>25108702
Ohh but I have. That's why I would advise my customers to upgrade. I will still make something that just works without wasting resources.
>>
>>25108670
Rule of thumb: Close off all tags, always.
Shit like <br> should be closed with <br />.

That way, when you need to parse the markup later, it's a lot easier.
>>
>>25108675
Australia. [spoiler]Stay away.[/spoiler]
>>
>>25108753
>spoiler
>on /g/
I should stop posting on other boards
>>
File: 1338044028222.jpg-(58 KB, 399x313, 1281922444153.jpg)
58 KB
>>25107806
I work with Python+Django at work. But for small projects PHP works fine.

http://anonsleepover.org/
>>
File: 1338044215226.jpg-(38 KB, 300x277, fuckina.jpg)
38 KB
>>25108297
>what's the deal with that?
It's a beautiful language. It's pure pleasure to write Python. The only thing holding it back is CPython (it's default implementation). Fucking GIL, man.
>>
>>25108577
This guy here.
Another quick question.
When using php, if I want to use HTML do I still use indentation inside echos?
Like:
http://pastebin.com/7GifwUiG
>>
>>25108901
Only to make it more readable yes, otherwise no.
>>
>>25108823
I have just ONE thing holding me back from learning Python. Whitespace used as the method for closing a block of code. That makes me angry and want to hurl. I want an "end" or ; or } or something goddammit.
>>
>>25108922
Learn Ruby then.
>>
>>25108934
I did. Following that exact train of thought, in fact.
>>
>>25107913
>http://awsomedude1.heliohost.org/text.php
>that source code
lol
that's funny
>>
File: 1338044623629.gif-(1.37 MB, 224x178, imout2.gif)
1.37 MB
>>25108922
Oh god. That is by far my favorite feature. It forces people to make actually readable code. If you don't like that then you can fuck right off to Java.
>>
>>25108901
If you're using HTML inside a .PHP file you don't even have to use php to show it. Only php code should go inside php tags.
>>
>>25108980
I know, I just put them there... for the fuck of it.
>>
>>25108961
Read his post again... slowly


Delete Post [File Only] Password
Style
[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / w / wg] [i / ic] [r9k] [cm / hm / y] [3 / adv / an / cgl / ck / co / diy / fa / fit / hc / int / jp / lit / mlp / mu / n / po / pol / sci / soc / sp / tg / toy / trv / tv / vp / x] [rs] [status / ? / @] [Settings] [Home]
[Disable Mobile View / Use Desktop Site]

- futaba + yotsuba -
All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.