ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์ProgrammingRuby !!! Trend Web Application .....หรือเปล่า
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: Ruby !!! Trend Web Application .....หรือเปล่า  (อ่าน 2868 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
POM
ก๊วนเสียว
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 295



ดูรายละเอียด
« เมื่อ: 26 พฤศจิกายน 2007, 10:38:11 »

Ruby :
    1. Logic เปลี่ยนไป ใช้งานง่าย Develop ง่าย
     2. ไม่มีการ include หรือ require อีกต่อไป
     3.  Coding กระชับ สั่น
     4. มี Template system ที่เรียกใช้งานง่าย


จริงหรือครับ

โครงสร้างเปลี่ยนจาก PHP ที่ถนัดไป แต่ถ้าเป็น trend ในอนาคตจอง web application ก็น่าเปลี่ยนครับ


ไม่ทราบว่าใครจะให้ counter example ได้มั้ยครับ



คุณตี๋
บันทึกการเข้า
Tee++;
โปรแกรมเมอร์ จอหงวน
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 79
ออฟไลน์ ออฟไลน์

กระทู้: 1,861



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 26 พฤศจิกายน 2007, 10:45:17 »

" ตี๋ " ไหนครับ ถ้าหมายถึง Tee++; ก็จะให้ตัวอย่างไปเลยว่า....


" เขียนเป็นซะที่ไหน เข้าใจแค่ Concept คร่าวๆ เอง "


 Grin Grin Grin
บันทึกการเข้า

POM
ก๊วนเสียว
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 295



ดูรายละเอียด
« ตอบ #2 เมื่อ: 26 พฤศจิกายน 2007, 10:54:14 »

" ตี๋ " ไหนครับ ถ้าหมายถึง Tee++; ก็จะให้ตัวอย่างไปเลยว่า....


" เขียนเป็นซะที่ไหน เข้าใจแค่ Concept คร่าวๆ เอง "


 Grin Grin Grin


ตี๋นี่แหละครับ 5 5 ผมอยากทราบเรื่อง trend ครับ

เขียนไม่เป็นไม่เป็นไรครับ


ผมว่า  รู้ trend สำคัญมากกกกกกว่า รู้จักอ่ะครับ
บันทึกการเข้า
Dr.K
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 432
ออฟไลน์ ออฟไลน์

กระทู้: 6,744



ดูรายละเอียด เว็บไซต์
« ตอบ #3 เมื่อ: 26 พฤศจิกายน 2007, 13:08:23 »

Ruby on Rails
เป็นอีก trend นึงที่น่าจับตามอง
ในฐานะเว็บที่พัฒนา application หรือ web2.0 ตามยุค
กำลังเริ่มศึกษาครับ
ยังไม่กล้าวิจารณ์อะไร
บันทึกการเข้า

ab5olute
สมุนแก๊งเสียว
*

พลังน้ำใจ: 17
ออฟไลน์ ออฟไลน์

กระทู้: 523



ดูรายละเอียด
« ตอบ #4 เมื่อ: 26 พฤศจิกายน 2007, 13:17:35 »

ความคิดผม เรื่อง trand ต้องตาม branding ด้วย ใครเป็นเจ้าของตัวนี้ และมี join กันใคร หรือป่าว
บันทึกการเข้า
sunkoster
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 46
ออฟไลน์ ออฟไลน์

กระทู้: 4,071



ดูรายละเอียด เว็บไซต์
« ตอบ #5 เมื่อ: 26 พฤศจิกายน 2007, 13:28:58 »

Ruby on Rails
เป็นอีก trend นึงที่น่าจับตามอง
ในฐานะเว็บที่พัฒนา application หรือ web2.0 ตามยุค
กำลังเริ่มศึกษาครับ
ยังไม่กล้าวิจารณ์อะไร


ตามอาหมอ เลยคับ
วันก่อนผมเพิ่งไปสัมนามา
เป็นอะไรที่น่าสนมาก
เด๋วถ้าเจอโฮสที่รองรับ จะลองศึกศาจริงจัง
บันทึกการเข้า

sunkoster
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 46
ออฟไลน์ ออฟไลน์

กระทู้: 4,071



ดูรายละเอียด เว็บไซต์
« ตอบ #6 เมื่อ: 26 พฤศจิกายน 2007, 13:31:12 »

ปาดดดดดดดดดดดดดดดดดด



ดรีมโฮส เล่นได้
ใครอยากลอง หลังจากเทสบนโลคอลเสร็จ ยัดใช้จริงได้ที่ดรีมโฮส คับ Grin
บันทึกการเข้า

EThaiZone
เจ้าพ่อโลลิค่อน
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 321
ออฟไลน์ ออฟไลน์

กระทู้: 12,516



ดูรายละเอียด
« ตอบ #7 เมื่อ: 27 พฤศจิกายน 2007, 08:39:59 »

แล้ว Python ละครับ

ผมเห็นพี่กูทำนี้ด้วย python
โค๊ด:
https://www.google.com/webmasters/tools/docs/en/sitemap-generator.html

ชะรอย ถ้าภายใน GG เป็น python ผมจะไม่แปลกใจเลย

 Tongue
บันทึกการเข้า

minute1
ก๊วนเสียว
*

พลังน้ำใจ: 2
ออฟไลน์ ออฟไลน์

กระทู้: 385



ดูรายละเอียด
« ตอบ #8 เมื่อ: 27 พฤศจิกายน 2007, 08:55:11 »

น่าสนแฮะ แต่ปัญหาเรื่องโฮสต์นี่ ไม่รู้จะเหมือน Java หรือเปล่าโฮสต์อย่างแพง
บันทึกการเข้า

เพราะอากาศเปลี่ยนแปลงบ่อย ดูแลสุขภาพให้ดีนะครับ...ดูแลให้ดี ทั้งสุขภาพกาย และ สุขภาพใจ   
myong1
สมุนแก๊งเสียว
*

พลังน้ำใจ: 33
ออฟไลน์ ออฟไลน์

กระทู้: 569



ดูรายละเอียด
« ตอบ #9 เมื่อ: 27 พฤศจิกายน 2007, 09:17:31 »

ช่วงประมาณ 3 ปีก่อน ผมดู list ในหนังสือจาก amazon บ่อยมาก

ตอนนั้นหนังสือเกี่ยวกับ Ruby on Rails ขายดีเป็นอันดับต้น ๆ มาตลอด ไม่รู้ตอนนี้เป็นไงบ้าง

เท่าที่รู้แบบงู ๆ ปลา ตัว Ruby on Rails จุดเด่นคือเขียนง่าย และเขียนได้เร็วกว่าภาษาอื่น ๆ

ส่วนตัวผมก็ยังคิดว่า php ยังยืนอยู่ได้อีกนานครับ ไม่ใช่เพราะภาษานะครับ

แต่นึกดูนะครับ บอร์ดที่เราใช้อยู่,  blog ที่ดี ๆ,   cms ที่แจ่ม ๆ,   directory ที่แจ๋ว ๆ  ฯลฯ

ล้วนเป็น php ทั้งสิ้น ถ้าจะมีอะไรมาแทนที่ก็ต้องทำสิ่งที่ผมยกมาได้ทั้งหมดและต้องดี แล้วยังต้องเป็น open source ด้วย

ซึ่งต้องใช้เวลาและคนพัฒนาจำนวนมาก ตอนนี้ผมยังมองไม่เห็นว่าจะมีภาษาไหนทำได้เสมือนอย่าง php ครับ  Smiley

บันทึกการเข้า
POM
ก๊วนเสียว
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 295



ดูรายละเอียด
« ตอบ #10 เมื่อ: 27 พฤศจิกายน 2007, 09:36:10 »

แล้ว Python ละครับ

ผมเห็นพี่กูทำนี้ด้วย python
โค๊ด:
https://www.google.com/webmasters/tools/docs/en/sitemap-generator.html

ชะรอย ถ้าภายใน GG เป็น python ผมจะไม่แปลกใจเลย

 Tongue


Python  โครงสร้างภาษาเป็นไงอ่ะครับ
ดูในเว็บ เป็นโฆษณาหลาเลยว่า NASA uses Python...

ถ้าไม่เจ๋งจริง gg คงไม่เอามี dev Web App เพื่อชนกับ MS หรอกนะเนี่ย

แล้ว รูบี้หล่ะ



ผมมี บทความที่ฝรั่งเขีนยนะครับ เกริ่นคือว่า 7 เหตุผลที่เขากลับมาใช้ PHP หลังจากใช้ Ruby ได้ 2 ปี



อ่านเองนะครับ 


7 reasons I switched back to PHP after 2 years on Rails
listen  Saturday September 22, 2007 5:49PM
by Derek Sivers in Opinion


SUMMARY: I spent two years trying to make Rails do something it wasn’t meant to do, then realized my old abandoned language (PHP, in my case) would do just fine if approached with my new Rails-gained wisdom.


“Is there anything Rails can do, that PHP CAN’T do?”

The answer is no.

I threw away 2 years of Rails code, and opened a new empty Subversion respository.

Then in a mere TWO MONTHS, by myself, not even telling anyone I was doing this, using nothing but vi, and no frameworks, I rewrote CD Baby from scratch in PHP. Done! Launched! And it works amazingly well.

It’s the most beautiful PHP I’ve ever written, all wonderfully MVC and DRY, and and I owe it all to Rails.

Inspired by Rails:

*- all logic is coming from the models, one per database table, like Martin Fowler’s Active Record pattern.

*- no requires or includes needed, thanks to __autoload.

*- real MVC separation: controllers have no HTML or business-logic, and only use REST-approved HTTP. (GET is only get. Any destructive actions require POST.)

*- all HTML coming from a cute and powerful templating system I whipped up in 80 lines, all multi-lingual and caching and everything

*- … and much more. In only 12,000 lines of code, including HTML templates. (Down from 90,000, before.)

Though I’m not saying other people should do what I’ve done, I thought I should share my reasons and lessons-learned, here:

SEVEN REASONS I SWITCHED BACK TO PHP AFTER 2 YEARS ON RAILS:

#1 - “IS THERE ANYTHING RAILS/RUBY CAN DO THAT PHP CAN’T DO? … (thinking)… NO.”
For 2 years, I thought Rails is genius, PHP is shit. Rails is powerful, PHP is crap.
I was nearly killing my company in the name of blindly insisting Rails was the answer to all questions, timeframes be damned.
But when I took a real emotionless non-prejudiced look at it, I realized the language didn’t matter that much.
Ruby is prettier. Rails has nice shortcuts. But no big shortcuts I can’t code-up myself in a day if needed.
Looked at from a real practical point of view, I could do anything in PHP, and there were many business reasons to do so.

#2 - OUR ENTIRE COMPANY’S STUFF WAS IN PHP: DON’T UNDERESTIMATE INTEGRATION
By the old plan (ditching all PHP and doing it all in Rails), there was going to be this One Big Day, where our entire Intranet, Storefront, Members’ Login Area, and dozens of cron shell scripts were ALL going to have to change. 85 employees re-trained. All customers and clients calling up furious that One Big Day, with questions about the new system.
Instead, I was able to slowly gut the ugly PHP and replace it with beautiful PHP. Launch in stages. No big re-training.

#3 - DON’T WANT WHAT I DON’T NEED
I admire the hell out of the Rails core gang that actually understand every line inside Rails itself. But I don’t. And I’m sure I will never use 90% of it.
With my little self-made system, every line is only what’s absolutely necessary. That makes me extremely happy and comfortable.

#4 - IT’S SMALL AND FAST
One little 2U LAMP server is serving up a ton of cdbaby.com traffic damn fast with hardly any load.

#5 - IT’S BUILT TO MY TASTES
I don’t need to adapt my ways to Rails. I tell PHP exactly what I want to do, the way I want to do it, and it doesn’t complain.
I was having to hack-up Rails with all kinds of plugins and mods to get it to be the multi-lingual integration to our existing 95-table database.
My new code was made just for me. The most efficient possible code to work with our exact needs.

#6 - I LOVE SQL
Speaking of tastes: tiny but important thing : I love SQL. I dream in queries. I think in tables.
I was always fighting against Rails and its migrations hiding my beloved SQL from me.

#7 - PROGRAMMING LANGUAGES ARE LIKE GIRLFRIENDS: THE NEW ONE IS BETTER BECAUSE *YOU* ARE BETTER
Rails was an amazing teacher. I loved it’s “do exactly as I say” paint-by-numbers framework that taught me some great guidelines.
I love Ruby for making me really understand OOP. God, Ruby is so beautiful. I love you, Ruby.
But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because he’s a better programmer now! You look back at your old ugly PHP code, compared to your new beautiful Ruby code, and think, “God that PHP is ugly!” But don’t forget you wrote that PHP years ago and are unfairly discriminating against it now.
It’s not the language (entirely). It’s you, dude. You’re better now. Give yourself some credit.

Ok. All that being said, I’m looking forward to using Rails some day when I start a brand new project from scratch, with Rails in mind from the beginning.

But I hope that this reaches someone somewhere thinking, “God our old code is ugly. If we only threw it all away and did it all over in Rails, it’d be so much easier!”



คัดเพลสมาจาก   http://www.oreillynet.com/ruby   เข้าไปอ่านแบบเต็มๆได้ครับ


อ่านแล้วสนใจ python มากกว่าแล้วตอนนี้ คุณ EThaiZone ให้ข้อมูลได้มากกว่านี้ป่าวครับ

« แก้ไขครั้งสุดท้าย: 27 พฤศจิกายน 2007, 09:42:41 โดย POM » บันทึกการเข้า
minute1
ก๊วนเสียว
*

พลังน้ำใจ: 2
ออฟไลน์ ออฟไลน์

กระทู้: 385



ดูรายละเอียด
« ตอบ #11 เมื่อ: 27 พฤศจิกายน 2007, 10:05:21 »

ภาษาโปรแกรมมิ่ง กับ ศาสนา มันคล้ายกันกันครับ นั่นก็คือความเชื่อและศรัทธา

ผมเริ่มเขียนโปรแกรมมาด้วย ภาษา C ดังนั้น ผมจึงชอบ Java และ PHP เพราะ Syntax ใกล้เคียงกัน มันเป็นความเชื่อและศรัทธาของผม... Cry
บันทึกการเข้า

เพราะอากาศเปลี่ยนแปลงบ่อย ดูแลสุขภาพให้ดีนะครับ...ดูแลให้ดี ทั้งสุขภาพกาย และ สุขภาพใจ   
Shuriken
บุคคลทั่วไป
« ตอบ #12 เมื่อ: 27 พฤศจิกายน 2007, 10:20:07 »

Ruby นี่ถ้าเป็น CMS ใช่ Dupal หรือเปล่าครับ
บันทึกการเข้า
Dr.K
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 432
ออฟไลน์ ออฟไลน์

กระทู้: 6,744



ดูรายละเอียด เว็บไซต์
« ตอบ #13 เมื่อ: 27 พฤศจิกายน 2007, 10:29:30 »

ภาษาโปรแกรมมิ่ง กับ ศาสนา มันคล้ายกันกันครับ นั่นก็คือความเชื่อและศรัทธา

ผมเริ่มเขียนโปรแกรมมาด้วย ภาษา C ดังนั้น ผมจึงชอบ Java และ PHP เพราะ Syntax ใกล้เคียงกัน มันเป็นความเชื่อและศรัทธาของผม... Cry
โปรแกรมมิ่ง กับ สาวๆ  มันคล้ายกันครับ นั่นก็คือชอบของใหม่ และเนื่องจากเราเบื่อเร็ว
ผมเริ่มจีบสาวๆ และหากิ๊กไปพร้อมๆกัน ผมจึงชอบหลายภาษา
มันเป็นความชอบของผม... Cry
บันทึกการเข้า

POM
ก๊วนเสียว
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 295



ดูรายละเอียด
« ตอบ #14 เมื่อ: 27 พฤศจิกายน 2007, 12:24:02 »

I love Ruby for making me really understand OOP. God, Ruby is so beautiful. I love you, Ruby.
But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because he’s a better programmer now! You look back at your old ugly PHP code, compared to your new beautiful Ruby code, and think, “God that PHP is ugly!” But don’t forget you wrote that PHP years ago and are unfairly discriminating against it now.
It’s not the language (entirely). It’s you, dude. You’re better now. Give yourself some credit.


ถ้า php(ขอใช้ชื่อว่า นางสาว พีพี่) ผมซึ่งกำลังแก่วันแก่คืน  แต่ผมรู้ใส่ในหมดแล้ว ว่าเธอแก่ แต่งดงามภายในมาก

ในขณะที่ นางสาวรู้บี้ ใหม่กว่า เต่งตึง แต่ยังไม่รู้ใส่ใน ว่างดงามเท่า พีพี่ มั้ย

ผมก็คงไม่ทึ้งพีพี่ไปเพียงเพราะว่า เธอแก่ และเหี่ยว เพราะว่าผมรู้ว่าจิตใจพีพี่งดงามเพียงใด
บันทึกการเข้า
minute1
ก๊วนเสียว
*

พลังน้ำใจ: 2
ออฟไลน์ ออฟไลน์

กระทู้: 385



ดูรายละเอียด
« ตอบ #15 เมื่อ: 27 พฤศจิกายน 2007, 12:42:08 »

ภาษาโปรแกรมมิ่ง กับ ศาสนา มันคล้ายกันกันครับ นั่นก็คือความเชื่อและศรัทธา

ผมเริ่มเขียนโปรแกรมมาด้วย ภาษา C ดังนั้น ผมจึงชอบ Java และ PHP เพราะ Syntax ใกล้เคียงกัน มันเป็นความเชื่อและศรัทธาของผม... Cry
โปรแกรมมิ่ง กับ สาวๆ  มันคล้ายกันครับ นั่นก็คือชอบของใหม่ และเนื่องจากเราเบื่อเร็ว
ผมเริ่มจีบสาวๆ และหากิ๊กไปพร้อมๆกัน ผมจึงชอบหลายภาษา
มันเป็นความชอบของผม... Cry


อันนี้ก็น่าคิด บางทีผมก็แอบมองสาวๆ รุ่นๆ เหมือนกัน แต่ไม่มีปัญญาจีบ ต้องกับไปหาคนที่บ้านอยู่ดี  Grin
บันทึกการเข้า

เพราะอากาศเปลี่ยนแปลงบ่อย ดูแลสุขภาพให้ดีนะครับ...ดูแลให้ดี ทั้งสุขภาพกาย และ สุขภาพใจ   
EThaiZone
เจ้าพ่อโลลิค่อน
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 321
ออฟไลน์ ออฟไลน์

กระทู้: 12,516



ดูรายละเอียด
« ตอบ #16 เมื่อ: 12 ธันวาคม 2007, 22:01:14 »

ขอขุดหน่อยนะ

เรื่อง python ผมแค่สนใจเพราะมันดูแปลกๆ ตรงว่า
ผมไม่สามารถจัดว่ามันไว้ทำแนวเว็บเบส หรือ เดสท็อบแอฟฯ

โค๊ด:
http://www.mail-archive.com/tutor@python.org/msg24968.html

เลยงง ค้น python 3d  เจอจนปวดหัว

---------------------------------

แต่สำหรับตัว Ruby ผมก็ว่าดีนะ  ลองอ่านเรื่องนี้ดู
โค๊ด:
http://www.cansmile.com/forum/index.php?topic=104.0
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์