This is a test post to see why my posts are not being posted at amber-lang.
-- On Saturday, 20 June 2015 21:57:30 UTC-4, Richard Eng wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Richard Eng wrote: > This is a test post to see why my posts are not being posted at > amber-lang. 1 Test Failed. ;-) > On Saturday, 20 June 2015 21:57:30 UTC-4, Richard Eng wrote: > > The tutorial article is currently at 688 views. It won't be long > till it surpasses 700, so yes, it looks like we will capture the > 10%. All things considered, we're doing well... > > > On Thursday, 18 June 2015 09:33:21 UTC-4, Sean DeNigris wrote: > > Herby Vojčík wrote > > Yes, Go had hype and Smalltalk has rumours if being a dead > horse > >> I'm rather disappointed at the reception of my Amber tutorial > > Unix, which Alan Kay describes as "a budget of bad ideas" (and > I agree), > took almost 50 years to take over the world [1]. Maybe you're > 10 years too > early to make Smalltalk popular ;) But seriously, I think > you're using the > wrong metrics. The great majority of people > thinkers i.e. > they judge every new thing by how useful it is to their > current goals. This > is the definition of the Pink Plane. Given that the real value > of Smalltalk > is that it's prototype Dynabook software, which is way into > the blue plane > of computing, convincing the masses of its value is extremely > unlikely - and > not required! If say 10% of programmers are interested in the > inherent value > of ideas, and we capture this 10%, that will be more than > enough critical > mass. And given your report of relative popularity of your > blog posts, > 570/7000 = 8% doesn't sound too far off ;) > > BTW I'm not saying don't try to reach as many people as > possible, only to > reframe what failure looks like. > > [1] > http://www.forbes.com/sites/timworstall/2013/05/07/is-unix-now-t > <http://www.forbes.com/sites/timworstall/2013/05/07/is-unix-now-the-most-successful-operating-system-of-all-time/> > > > > > ----- > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/A-Gentle-Introduction-to-Amber-tp4831244p4833048.html > <http://forum.world.st/A-Gentle-Introduction-to-Amber-tp4831244p4833048.html> > > Sent from the Amber Smalltalk mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
But it does happen a lot!
I used to get it a lot when I used my own domain's e-mail server even though it wasn't on any black/grey list. One of the reasons I now switched amber-lang to my, more commercial, icloud address. Google ramps this up every year it seems. Pe 21 iun. 2015, la 22:37, Herby Vojčík <[hidden email]> a scris: > Richard Eng wrote: >> This is a test post to see why my posts are not being posted at amber-lang. > > 1 Test Failed. ;-) -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Herby Vojčík
Hmmm...
-- Silk does not understand #TD: What's the correct way to add a label? On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Oh, so simple:
-- Silk TD LABEL: 'Username:' On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Hmmm, something's wrong. Even with 'Silk TD LABEL:', the cells in the table are not aligning correctly. This was never a problem with the Web package.
-- On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Richard Eng wrote: > Hmmm, something's wrong. Even with 'Silk TD LABEL:', the cells in the > table are not aligning correctly. This was never a problem with the Web > package. > > > On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote: > > Oh, so simple: > > Silk TD LABEL: 'Username:' > > > On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote: > > Hmmm... > > Silk does not understand #TD: > > What's the correct way to add a label? > > > On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote: > > > > Richard Eng wrote: > > I don't disagree with you, but as Martin pointed out, in > a typical web > > application project, you are *given* HTML; you are not > asked to > > write/generate HTML. > > > > Nevertheless, in the next installment of the Amber > tutorial, I *will* be > > examining Silk. > > > > > > On Thursday, 11 June 2015 10:50:36 UTC-4, Herby wrote: > > > > > > > > Richard Eng wrote: > > > It's very easy to insert raw HTML instead of using > HTMLCanvas. > > For example, > > > > > > || > > > '#client-main'asJQuery append: > > > '<form> > > > <table> > > > <tr><td>Username:</td><td><input name="name"></td></tr> > > > <tr><td>Password:</td><td><input name="password" > > type="password"></td></tr> > > > <tr><td><input type="submit" value="Okay"></td></tr> > > > </table> > > > </form>' > > Just in case, above thing could probably written this way in > Silk: > > '#client-main' asSilk > FORM > TABLE > TR: { > Silk TD: 'Username:'. > Silk TD INPUT: 'name'->'name' }; > TR: { > Silk TD: 'Password'. > Silk TD INPUT: { 'name'->'password'. 'type'->'password' }}; > TR: { > Silk TD INPUT: { 'type'->'submit'. 'value'->'Okay' } This is not correct code. See the medium article for correct pieces. > > Of course, it could be written other ways, too, as it is > pretty flexible > in ways how to insert content into an element. This piece > uses `TAG: > content` convenient method heavily. > > (uppercase needed, as DNU is used to generate tags from any > uppercase > message, so you can insert you custom tags as well) > > > > > > > I just thought it'd be nice to use Smalltalk to > programmatically > > create > > > the HTML. I used Seaside many years ago, so it's what I'm > > familiar with; > > > in Seaside, there was no other way to use HTML (most web > > frameworks use > > > HTML templates). > > > > > > In fact, for all future work, I'm inclined to inject > raw HTML. > > It's much > > > > IMNSHO, this is unhappy inclination. I very hope if not > Web then at > > least Silk allows you to use objects, not strings > regularly. It has > > different approach, maybe having simple methods returning > array of > > elements / a wrapped DocumentFragment could be seen as > flexible enough > > (while retaining objects all the way). > > > > > more flexible than the programmatic approach and is > much more > > natural > > > for Amber (than it is for Pharo). However, I still need > to solve the > > > issue of > > > > > > (('#myForm1 *'asJQuery)filter:':input') > > > > > > crapping out on me when a false value causes a break > from the loop. > > > > > > > > > On Thursday, 11 June 2015 01:24:27 UTC-4, Martin Bähr > wrote: > > > > > > Excerpts from Richard Eng's message of 2015-06-11 > 05:40:09 +0200: > > > > Thanks to Herby's (very extensive) proofreading and > vetting, I've > > > made many > > > > substantial changes to the article, esp. the coding > examples. > > > It's now > > > > ready for publishing and I've posted it at Reddit: > > > > > > > > > > > > > > http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > > > > > > > > the article reads nicely, but i wonder, why the > excursion on switch? > > > it is not > > > specific to amber, and it gives the impression that you > feel the > > > need to > > > apologize for it. > > > > > > this should be an aside linked to a separate post, if > it's mentioned > > > at all. > > > > > > what i would like to know is, if there is a way to not use > > smalltalk to > > > generate html, but just have it as plain raw html. the > example you > > > give doesn't > > > demonstrate that the smalltalk variant is easier to > read. on the > > > contrary. > > > > > > i find plain html much nicer to read, and it even looks > like > > > smalltalk is more > > > typing. > > > > > > also, in day to day work, i very often have to deal > with html given > > > to me by > > > others. i don't write html, our designers do. > > > > > > having to translate the designers output into smalltalk > is just > > > busywork. and > > > having to update for changes even worse. it's just not > practical. > > > > > > finally though, i really like that you are using a REST > api example. > > > that's > > > right up my alley, and when i find some time i'll try > to get this to > > > run. > > > > > > greetings, martin. > > > > > > -- > > > eKita - the online platform for your entire academic life > > > -- > > > chief engineer eKita.co > > > pike programmer pike.lysator.liu.se > <http://pike.lysator.liu.se> <http://pike.lysator.liu.se> > > <http://pike.lysator.liu.se> > > > caudium.net <http://caudium.net> <http://caudium.net> > <http://caudium.net> > > societyserver.org <http://societyserver.org> > <http://societyserver.org> > > > <http://societyserver.org> > > > secretary beijinglug.org <http://beijinglug.org> > <http://beijinglug.org> > > <http://beijinglug.org> > > > mentor fossasia.org <http://fossasia.org> > <http://fossasia.org> <http://fossasia.org> > > > foresight developer foresightlinux.org > <http://foresightlinux.org> > > <http://foresightlinux.org> <http://foresightlinux.org> > > > realss.com <http://realss.com> <http://realss.com> > <http://realss.com> > > > unix sysadmin > > > Martin Bähr working in china > http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > > > > > -- > > > You received this message because you are subscribed to > the Google > > > Groups "amber-lang" group. > > > To unsubscribe from this group and stop receiving > emails from it, > > send > > > an email to [hidden email] <javascript:> > > > <mailto:[hidden email] > <javascript:>>. > > > For more options, visit > https://groups.google.com/d/optout > <https://groups.google.com/d/optout> > > <https://groups.google.com/d/optout > <https://groups.google.com/d/optout>>. > > > > -- > > You received this message because you are subscribed to > the Google > > Groups "amber-lang" group. > > To unsubscribe from this group and stop receiving emails > from it, send > > an email to [hidden email] > > <mailto:[hidden email]>. > > For more options, visit > https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In all of your code examples where you use #TD:, I get:
-- Silk does not understand #TD: Am I doing something wrong, or is your article incorrect? On Wednesday, 24 June 2015 04:48:54 UTC-4, Herby wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Where you use 'Silk open', I also get:
You received this message because you are subscribed to the Google Groups "amber-lang" group.Silk does not understand #open
-- On Wednesday, 24 June 2015 12:22:40 UTC-4, Richard Eng wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Here's what I've concluded...
You received this message because you are subscribed to the Google Groups "amber-lang" group.With the exception of #FORM:, none of the other TAG:'s work. I have to use '<<' with 'Silk TAG'. That's why all of your example break. On Wednesday, 24 June 2015 12:29:27 UTC-4, Richard Eng wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Richard Eng wrote: > Here's what I've concluded... > > With the exception of #FORM:, *none* of the other TAG:'s work. I have to > use '<<' with 'Silk TAG'. That's why all of your example break. I just don't believe that, #FORM: has no specialty at all and Silk has unit tests which test lots of scenarios, including making some table using TAG and TAG: messages. > On Wednesday, 24 June 2015 12:29:27 UTC-4, Richard Eng wrote: > > Where you use 'Silk open', I also get: > > Silk does not understand #open #open must just work, it's normally implemented (in DOMite, from which Silk inherits). You must have something wrong in your setup. > On Wednesday, 24 June 2015 12:22:40 UTC-4, Richard Eng wrote: > > In all of your code examples where you use #TD:, I get: > > Silk does not understand #TD: > * > * > (I'm just cut-and-pasting into my application.) > > Am I doing something wrong, or is your article incorrect? > > > On Wednesday, 24 June 2015 04:48:54 UTC-4, Herby wrote: > > > > Richard Eng wrote: > > Hmmm, something's wrong. Even with 'Silk TD LABEL:', the > cells in the > > table are not aligning correctly. This was never a > problem with the Web > > package. > > > > > > On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote: > > > > Oh, so simple: > > > > Silk TD LABEL: 'Username:' > > > > > > On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote: > > > > Hmmm... > > > > Silk does not understand #TD: > > > > What's the correct way to add a label? > > > > > > On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote: > > > > > > > > Richard Eng wrote: > > > I don't disagree with you, but as Martin pointed out, in > > a typical web > > > application project, you are *given* HTML; you are not > > asked to > > > write/generate HTML. > > > > > > Nevertheless, in the next installment of the Amber > > tutorial, I *will* be > > > examining Silk. > > > > > > > > > On Thursday, 11 June 2015 10:50:36 UTC-4, Herby wrote: > > > > > > > > > > > > Richard Eng wrote: > > > > It's very easy to insert raw HTML instead of using > > HTMLCanvas. > > > For example, > > > > > > > > || > > > > '#client-main'asJQuery append: > > > > '<form> > > > > <table> > > > > <tr><td>Username:</td><td><input name="name"></td></tr> > > > > <tr><td>Password:</td><td><input name="password" > > > type="password"></td></tr> > > > > <tr><td><input type="submit" value="Okay"></td></tr> > > > > </table> > > > > </form>' > > > > Just in case, above thing could probably written this way in > > Silk: > > > > '#client-main' asSilk > > FORM > > TABLE > > TR: { > > Silk TD: 'Username:'. > > Silk TD INPUT: 'name'->'name' }; > > TR: { > > Silk TD: 'Password'. > > Silk TD INPUT: { 'name'->'password'. 'type'->'password' }}; > > TR: { > > Silk TD INPUT: { 'type'->'submit'. 'value'->'Okay' } > > This is not correct code. See the medium article for correct > pieces. > > > > > Of course, it could be written other ways, too, as it is > > pretty flexible > > in ways how to insert content into an element. This piece > > uses `TAG: > > content` convenient method heavily. > > > > (uppercase needed, as DNU is used to generate tags from any > > uppercase > > message, so you can insert you custom tags as well) > > > > > > > > > > I just thought it'd be nice to use Smalltalk to > > programmatically > > > create > > > > the HTML. I used Seaside many years ago, so it's what > I'm > > > familiar with; > > > > in Seaside, there was no other way to use HTML (most web > > > frameworks use > > > > HTML templates). > > > > > > > > In fact, for all future work, I'm inclined to inject > > raw HTML. > > > It's much > > > > > > IMNSHO, this is unhappy inclination. I very hope if not > > Web then at > > > least Silk allows you to use objects, not strings > > regularly. It has > > > different approach, maybe having simple methods returning > > array of > > > elements / a wrapped DocumentFragment could be seen as > > flexible enough > > > (while retaining objects all the way). > > > > > > > more flexible than the programmatic approach and is > > much more > > > natural > > > > for Amber (than it is for Pharo). However, I still need > > to solve the > > > > issue of > > > > > > > > (('#myForm1 *'asJQuery)filter:':input') > > > > > > > > crapping out on me when a false value causes a break > > from the loop. > > > > > > > > > > > > On Thursday, 11 June 2015 01:24:27 UTC-4, Martin Bähr > > wrote: > > > > > > > > Excerpts from Richard Eng's message of 2015-06-11 > > 05:40:09 +0200: > > > > > Thanks to Herby's (very extensive) proofreading and > > vetting, I've > > > > made many > > > > > substantial changes to the article, esp. the coding > > examples. > > > > It's now > > > > > ready for publishing and I've posted it at Reddit: > > > > > > > > > > > > > > > > > > > > http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > > > > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>> > > > > > > > > > > > > > > > > > > the article reads nicely, but i wonder, why the > > excursion on switch? > > > > it is not > > > > specific to amber, and it gives the impression that you > > feel the > > > > need to > > > > apologize for it. > > > > > > > > this should be an aside linked to a separate post, if > > it's mentioned > > > > at all. > > > > > > > > what i would like to know is, if there is a way to > not use > > > smalltalk to > > > > generate html, but just have it as plain raw html. the > > example you > > > > give doesn't > > > > demonstrate that the smalltalk variant is easier to > > read. on the > > > > contrary. > > > > > > > > i find plain html much nicer to read, and it even looks > > like > > > > smalltalk is more > > > > typing. > > > > > > > > also, in day to day work, i very often have to deal > > with html given > > > > to me by > > > > others. i don't write html, our designers do. > > > > > > > > having to translate the designers output into smalltalk > > is just > > > > busywork. and > > > > having to update for changes even worse. it's just not > > practical. > > > > > > > > finally though, i really like that you are using a REST > > api example. > > > > that's > > > > right up my alley, and when i find some time i'll try > > to get this to > > > > run. > > > > > > > > greetings, martin. > > > > > > > > -- > > > > eKita - the online platform for your entire academic > life > > > > -- > > > > chief engineer eKita.co > > > > pike programmer pike.lysator.liu.se > <http://pike.lysator.liu.se> > > <http://pike.lysator.liu.se> <http://pike.lysator.liu.se> > > > <http://pike.lysator.liu.se> > > > > caudium.net <http://caudium.net> <http://caudium.net> > <http://caudium.net> > > <http://caudium.net> > > > societyserver.org <http://societyserver.org> > <http://societyserver.org> > > <http://societyserver.org> > > > > <http://societyserver.org> > > > > secretary beijinglug.org <http://beijinglug.org> > <http://beijinglug.org> > > <http://beijinglug.org> > > > <http://beijinglug.org> > > > > mentor fossasia.org <http://fossasia.org> > <http://fossasia.org> > > <http://fossasia.org> <http://fossasia.org> > > > > foresight developer foresightlinux.org > <http://foresightlinux.org> > > <http://foresightlinux.org> > > > <http://foresightlinux.org> <http://foresightlinux.org> > > > > realss.com <http://realss.com> <http://realss.com> > <http://realss.com> > > <http://realss.com> > > > > unix sysadmin > > > > Martin Bähr working in china > > http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>> > > > > > > > > -- > > > > You received this message because you are subscribed to > > the Google > > > > Groups "amber-lang" group. > > > > To unsubscribe from this group and stop receiving > > emails from it, > > > send > > > > an email to > > ... > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by horrido
Richard Eng wrote: > Where you use 'Silk open', I also get: > > Silk does not understand #open Indeed, I used #open initially, but then I changed it to #newStream; sorry. Going to update the article. > On Wednesday, 24 June 2015 12:22:40 UTC-4, Richard Eng wrote: > > In all of your code examples where you use #TD:, I get: > > Silk does not understand #TD: > * > * > (I'm just cut-and-pasting into my application.) > > Am I doing something wrong, or is your article incorrect? > > > On Wednesday, 24 June 2015 04:48:54 UTC-4, Herby wrote: > > > > Richard Eng wrote: > > Hmmm, something's wrong. Even with 'Silk TD LABEL:', the > cells in the > > table are not aligning correctly. This was never a problem > with the Web > > package. > > > > > > On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote: > > > > Oh, so simple: > > > > Silk TD LABEL: 'Username:' > > > > > > On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote: > > > > Hmmm... > > > > Silk does not understand #TD: > > > > What's the correct way to add a label? > > > > > > On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote: > > > > > > > > Richard Eng wrote: > > > I don't disagree with you, but as Martin pointed out, in > > a typical web > > > application project, you are *given* HTML; you are not > > asked to > > > write/generate HTML. > > > > > > Nevertheless, in the next installment of the Amber > > tutorial, I *will* be > > > examining Silk. > > > > > > > > > On Thursday, 11 June 2015 10:50:36 UTC-4, Herby wrote: > > > > > > > > > > > > Richard Eng wrote: > > > > It's very easy to insert raw HTML instead of using > > HTMLCanvas. > > > For example, > > > > > > > > || > > > > '#client-main'asJQuery append: > > > > '<form> > > > > <table> > > > > <tr><td>Username:</td><td><input name="name"></td></tr> > > > > <tr><td>Password:</td><td><input name="password" > > > type="password"></td></tr> > > > > <tr><td><input type="submit" value="Okay"></td></tr> > > > > </table> > > > > </form>' > > > > Just in case, above thing could probably written this way in > > Silk: > > > > '#client-main' asSilk > > FORM > > TABLE > > TR: { > > Silk TD: 'Username:'. > > Silk TD INPUT: 'name'->'name' }; > > TR: { > > Silk TD: 'Password'. > > Silk TD INPUT: { 'name'->'password'. 'type'->'password' }}; > > TR: { > > Silk TD INPUT: { 'type'->'submit'. 'value'->'Okay' } > > This is not correct code. See the medium article for correct > pieces. > > > > > Of course, it could be written other ways, too, as it is > > pretty flexible > > in ways how to insert content into an element. This piece > > uses `TAG: > > content` convenient method heavily. > > > > (uppercase needed, as DNU is used to generate tags from any > > uppercase > > message, so you can insert you custom tags as well) > > > > > > > > > > I just thought it'd be nice to use Smalltalk to > > programmatically > > > create > > > > the HTML. I used Seaside many years ago, so it's what I'm > > > familiar with; > > > > in Seaside, there was no other way to use HTML (most web > > > frameworks use > > > > HTML templates). > > > > > > > > In fact, for all future work, I'm inclined to inject > > raw HTML. > > > It's much > > > > > > IMNSHO, this is unhappy inclination. I very hope if not > > Web then at > > > least Silk allows you to use objects, not strings > > regularly. It has > > > different approach, maybe having simple methods returning > > array of > > > elements / a wrapped DocumentFragment could be seen as > > flexible enough > > > (while retaining objects all the way). > > > > > > > more flexible than the programmatic approach and is > > much more > > > natural > > > > for Amber (than it is for Pharo). However, I still need > > to solve the > > > > issue of > > > > > > > > (('#myForm1 *'asJQuery)filter:':input') > > > > > > > > crapping out on me when a false value causes a break > > from the loop. > > > > > > > > > > > > On Thursday, 11 June 2015 01:24:27 UTC-4, Martin Bähr > > wrote: > > > > > > > > Excerpts from Richard Eng's message of 2015-06-11 > > 05:40:09 +0200: > > > > > Thanks to Herby's (very extensive) proofreading and > > vetting, I've > > > > made many > > > > > substantial changes to the article, esp. the coding > > examples. > > > > It's now > > > > > ready for publishing and I've posted it at Reddit: > > > > > > > > > > > > > > > > > > > > http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > > > > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>> > > > > > > > > > > > > > > > > > > the article reads nicely, but i wonder, why the > > excursion on switch? > > > > it is not > > > > specific to amber, and it gives the impression that you > > feel the > > > > need to > > > > apologize for it. > > > > > > > > this should be an aside linked to a separate post, if > > it's mentioned > > > > at all. > > > > > > > > what i would like to know is, if there is a way to not use > > > smalltalk to > > > > generate html, but just have it as plain raw html. the > > example you > > > > give doesn't > > > > demonstrate that the smalltalk variant is easier to > > read. on the > > > > contrary. > > > > > > > > i find plain html much nicer to read, and it even looks > > like > > > > smalltalk is more > > > > typing. > > > > > > > > also, in day to day work, i very often have to deal > > with html given > > > > to me by > > > > others. i don't write html, our designers do. > > > > > > > > having to translate the designers output into smalltalk > > is just > > > > busywork. and > > > > having to update for changes even worse. it's just not > > practical. > > > > > > > > finally though, i really like that you are using a REST > > api example. > > > > that's > > > > right up my alley, and when i find some time i'll try > > to get this to > > > > run. > > > > > > > > greetings, martin. > > > > > > > > -- > > > > eKita - the online platform for your entire academic life > > > > -- > > > > chief engineer eKita.co > > > > pike programmer pike.lysator.liu.se > <http://pike.lysator.liu.se> > > <http://pike.lysator.liu.se> <http://pike.lysator.liu.se> > > > <http://pike.lysator.liu.se> > > > > caudium.net <http://caudium.net> <http://caudium.net> > <http://caudium.net> > > <http://caudium.net> > > > societyserver.org <http://societyserver.org> > <http://societyserver.org> > > <http://societyserver.org> > > > > <http://societyserver.org> > > > > secretary beijinglug.org <http://beijinglug.org> > <http://beijinglug.org> > > <http://beijinglug.org> > > > <http://beijinglug.org> > > > > mentor fossasia.org <http://fossasia.org> > <http://fossasia.org> > > <http://fossasia.org> <http://fossasia.org> > > > > foresight developer foresightlinux.org > <http://foresightlinux.org> > > <http://foresightlinux.org> > > > <http://foresightlinux.org> <http://foresightlinux.org> > > > > realss.com <http://realss.com> <http://realss.com> > <http://realss.com> > > <http://realss.com> > > > > unix sysadmin > > > > Martin Bähr working in china > > http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>> > > > > > > > > -- > > > > You received this message because you are subscribed to > > the Google > > > > Groups "amber-lang" group. > > > > To unsubscribe from this group and stop receiving > > emails from it, > > > send > > > > an email to [hidden email] <javascript:> > > > > <mailto:[hidden email] > > > > ... > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Herby Vojčík
Herby Vojčík wrote: > > > Richard Eng wrote: >> Here's what I've concluded... >> >> With the exception of #FORM:, *none* of the other TAG:'s work. I have to >> use '<<' with 'Silk TAG'. That's why all of your example break. I looked at sources; you are mixing "Silk TAG:" with "aSilkInstance TAG:". It is indeed true that "Silk TAG:" does not work (from the examples it is clear, though, that it is useful), and on the other hand, all "aSilkInstance TAG:" work (not just FORM:). Nevertheless, it should be easy to use "Silk newStream TAG:" instead of "Silk TAG:" and it should just work. I will probably add direct "Silk TAG:". > I just don't believe that, #FORM: has no specialty at all and Silk has > unit tests which test lots of scenarios, including making some table > using TAG and TAG: messages. > >> On Wednesday, 24 June 2015 12:29:27 UTC-4, Richard Eng wrote: >> >> Where you use 'Silk open', I also get: >> >> Silk does not understand #open > > #open must just work, it's normally implemented (in DOMite, from which > Silk inherits). > > You must have something wrong in your setup. > >> On Wednesday, 24 June 2015 12:22:40 UTC-4, Richard Eng wrote: >> >> In all of your code examples where you use #TD:, I get: >> >> Silk does not understand #TD: >> * >> * >> (I'm just cut-and-pasting into my application.) >> >> Am I doing something wrong, or is your article incorrect? >> >> >> On Wednesday, 24 June 2015 04:48:54 UTC-4, Herby wrote: >> >> >> >> Richard Eng wrote: >> > Hmmm, something's wrong. Even with 'Silk TD LABEL:', the >> cells in the >> > table are not aligning correctly. This was never a >> problem with the Web >> > package. >> > >> > >> > On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote: >> > >> > Oh, so simple: >> > >> > Silk TD LABEL: 'Username:' >> > >> > >> > On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote: >> > >> > Hmmm... >> > >> > Silk does not understand #TD: >> > >> > What's the correct way to add a label? >> > >> > >> > On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote: >> > >> > >> > >> > Richard Eng wrote: >> > > I don't disagree with you, but as Martin pointed out, in >> > a typical web >> > > application project, you are *given* HTML; you are not >> > asked to >> > > write/generate HTML. >> > > >> > > Nevertheless, in the next installment of the Amber >> > tutorial, I *will* be >> > > examining Silk. >> > > >> > > >> > > On Thursday, 11 June 2015 10:50:36 UTC-4, Herby wrote: >> > > >> > > >> > > >> > > Richard Eng wrote: >> > > > It's very easy to insert raw HTML instead of using >> > HTMLCanvas. >> > > For example, >> > > > >> > > > || >> > > > '#client-main'asJQuery append: >> > > > '<form> >> > > > <table> >> > > > <tr><td>Username:</td><td><input name="name"></td></tr> >> > > > <tr><td>Password:</td><td><input name="password" >> > > type="password"></td></tr> >> > > > <tr><td><input type="submit" value="Okay"></td></tr> >> > > > </table> >> > > > </form>' >> > >> > Just in case, above thing could probably written this way in >> > Silk: >> > >> > '#client-main' asSilk >> > FORM >> > TABLE >> > TR: { >> > Silk TD: 'Username:'. >> > Silk TD INPUT: 'name'->'name' }; >> > TR: { >> > Silk TD: 'Password'. >> > Silk TD INPUT: { 'name'->'password'. 'type'->'password' }}; >> > TR: { >> > Silk TD INPUT: { 'type'->'submit'. 'value'->'Okay' } >> >> This is not correct code. See the medium article for correct >> pieces. >> >> > >> > Of course, it could be written other ways, too, as it is >> > pretty flexible >> > in ways how to insert content into an element. This piece >> > uses `TAG: >> > content` convenient method heavily. >> > >> > (uppercase needed, as DNU is used to generate tags from any >> > uppercase >> > message, so you can insert you custom tags as well) >> > >> > > > >> > > > I just thought it'd be nice to use Smalltalk to >> > programmatically >> > > create >> > > > the HTML. I used Seaside many years ago, so it's what >> I'm >> > > familiar with; >> > > > in Seaside, there was no other way to use HTML (most web >> > > frameworks use >> > > > HTML templates). >> > > > >> > > > In fact, for all future work, I'm inclined to inject >> > raw HTML. >> > > It's much >> > > >> > > IMNSHO, this is unhappy inclination. I very hope if not >> > Web then at >> > > least Silk allows you to use objects, not strings >> > regularly. It has >> > > different approach, maybe having simple methods returning >> > array of >> > > elements / a wrapped DocumentFragment could be seen as >> > flexible enough >> > > (while retaining objects all the way). >> > > >> > > > more flexible than the programmatic approach and is >> > much more >> > > natural >> > > > for Amber (than it is for Pharo). However, I still need >> > to solve the >> > > > issue of >> > > > >> > > > (('#myForm1 *'asJQuery)filter:':input') >> > > > >> > > > crapping out on me when a false value causes a break >> > from the loop. >> > > > >> > > > >> > > > On Thursday, 11 June 2015 01:24:27 UTC-4, Martin Bähr >> > wrote: >> > > > >> > > > Excerpts from Richard Eng's message of 2015-06-11 >> > 05:40:09 +0200: >> > > > > Thanks to Herby's (very extensive) proofreading and >> > vetting, I've >> > > > made many >> > > > > substantial changes to the article, esp. the coding >> > examples. >> > > > It's now >> > > > > ready for publishing and I've posted it at Reddit: >> > > > > >> > > > > >> > > > >> > > >> > >> http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> >> >> >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> >> >> >> > >> > > >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> >> >> >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> >> >> >> > >> > > >> > > > >> > > >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> >> >> >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> >> >> >> > >> > > >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> >> >> >> > >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ >> >> <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>> >> >> >> > >> > > >> > > > >> > > > >> > > > the article reads nicely, but i wonder, why the >> > excursion on switch? >> > > > it is not >> > > > specific to amber, and it gives the impression that you >> > feel the >> > > > need to >> > > > apologize for it. >> > > > >> > > > this should be an aside linked to a separate post, if >> > it's mentioned >> > > > at all. >> > > > >> > > > what i would like to know is, if there is a way to >> not use >> > > smalltalk to >> > > > generate html, but just have it as plain raw html. the >> > example you >> > > > give doesn't >> > > > demonstrate that the smalltalk variant is easier to >> > read. on the >> > > > contrary. >> > > > >> > > > i find plain html much nicer to read, and it even looks >> > like >> > > > smalltalk is more >> > > > typing. >> > > > >> > > > also, in day to day work, i very often have to deal >> > with html given >> > > > to me by >> > > > others. i don't write html, our designers do. >> > > > >> > > > having to translate the designers output into smalltalk >> > is just >> > > > busywork. and >> > > > having to update for changes even worse. it's just not >> > practical. >> > > > >> > > > finally though, i really like that you are using a REST >> > api example. >> > > > that's >> > > > right up my alley, and when i find some time i'll try >> > to get this to >> > > > run. >> > > > >> > > > greetings, martin. >> > > > >> > > > -- >> > > > eKita - the online platform for your entire academic >> life >> > > > -- >> > > > chief engineer eKita.co >> > > > pike programmer pike.lysator.liu.se >> <http://pike.lysator.liu.se> >> > <http://pike.lysator.liu.se> <http://pike.lysator.liu.se> >> > > <http://pike.lysator.liu.se> >> > > > caudium.net <http://caudium.net> <http://caudium.net> >> <http://caudium.net> >> > <http://caudium.net> >> > > societyserver.org <http://societyserver.org> >> <http://societyserver.org> >> > <http://societyserver.org> >> > > > <http://societyserver.org> >> > > > secretary beijinglug.org <http://beijinglug.org> >> <http://beijinglug.org> >> > <http://beijinglug.org> >> > > <http://beijinglug.org> >> > > > mentor fossasia.org <http://fossasia.org> >> <http://fossasia.org> >> > <http://fossasia.org> <http://fossasia.org> >> > > > foresight developer foresightlinux.org >> <http://foresightlinux.org> >> > <http://foresightlinux.org> >> > > <http://foresightlinux.org> <http://foresightlinux.org> >> > > > realss.com <http://realss.com> <http://realss.com> >> <http://realss.com> >> > <http://realss.com> >> > > > unix sysadmin >> > > > Martin Bähr working in china >> > http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/> >> > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/>> >> > > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/> >> > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/>>> >> > > > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/> >> > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/>> >> > > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/> >> > <http://societyserver.org/mbaehr/ >> <http://societyserver.org/mbaehr/>>>> >> > > > >> > > > -- >> > > > You received this message because you are subscribed to >> > the Google >> > > > Groups "amber-lang" group. >> > > > To unsubscribe from this group and stop receiving >> > emails from it, >> > > send >> > > > an email to >> >> ... >> >> -- >> You received this message because you are subscribed to the Google >> Groups "amber-lang" group. >> To unsubscribe from this group and stop receiving emails from it, send >> an email to [hidden email] >> <mailto:[hidden email]>. >> For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
I notice that the class-side #doesNotUnderstand: is slightly different from the instance-side #doesNotUnderstand:, which is why your examples break. You're right, when I do 'Silk new TAG:', it works.
-- On Wednesday, 24 June 2015 14:44:46 UTC-4, Herby wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Richard Eng wrote: > I notice that the class-side #doesNotUnderstand: is slightly different > from the instance-side #doesNotUnderstand:, which is why your examples > break. You're right, when I do 'Silk new TAG:', it works. I told `Silk newStream TAG:`, `Silk new TAG:` does something slightly different (of course, '#client-div' asSilk is also an instance, that's why there the TAG: form works as well; also the last example uses instances, so AfAICT, it is not breaking (you wrote all of them break)). > On Wednesday, 24 June 2015 14:44:46 UTC-4, Herby wrote: > > > > Herby Vojčík wrote: > > > > > > Richard Eng wrote: > >> Here's what I've concluded... > >> > >> With the exception of #FORM:, *none* of the other TAG:'s work. I > have to > >> use '<<' with 'Silk TAG'. That's why all of your example break. > > I looked at sources; you are mixing "Silk TAG:" with "aSilkInstance > TAG:". It is indeed true that "Silk TAG:" does not work (from the > examples it is clear, though, that it is useful), and on the other > hand, > all "aSilkInstance TAG:" work (not just FORM:). > > Nevertheless, it should be easy to use "Silk newStream TAG:" instead of > "Silk TAG:" and it should just work. > > I will probably add direct "Silk TAG:". > > > I just don't believe that, #FORM: has no specialty at all and > Silk has > > unit tests which test lots of scenarios, including making some table > > using TAG and TAG: messages. > > > >> On Wednesday, 24 June 2015 12:29:27 UTC-4, Richard Eng wrote: > >> > >> Where you use 'Silk open', I also get: > >> > >> Silk does not understand #open > > > > #open must just work, it's normally implemented (in DOMite, from > which > > Silk inherits). > > > > You must have something wrong in your setup. > > > >> On Wednesday, 24 June 2015 12:22:40 UTC-4, Richard Eng wrote: > >> > >> In all of your code examples where you use #TD:, I get: > >> > >> Silk does not understand #TD: > >> * > >> * > >> (I'm just cut-and-pasting into my application.) > >> > >> Am I doing something wrong, or is your article incorrect? > >> > >> > >> On Wednesday, 24 June 2015 04:48:54 UTC-4, Herby wrote: > >> > >> > >> > >> Richard Eng wrote: > >> > Hmmm, something's wrong. Even with 'Silk TD LABEL:', the > >> cells in the > >> > table are not aligning correctly. This was never a > >> problem with the Web > >> > package. > >> > > >> > > >> > On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote: > >> > > >> > Oh, so simple: > >> > > >> > Silk TD LABEL: 'Username:' > >> > > >> > > >> > On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote: > >> > > >> > Hmmm... > >> > > >> > Silk does not understand #TD: > >> > > >> > What's the correct way to add a label? > >> > > >> > > >> > On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote: > >> > > >> > > >> > > >> > Richard Eng wrote: > >> > > I don't disagree with you, but as Martin pointed out, in > >> > a typical web > >> > > application project, you are *given* HTML; you are not > >> > asked to > >> > > write/generate HTML. > >> > > > >> > > Nevertheless, in the next installment of the Amber > >> > tutorial, I *will* be > >> > > examining Silk. > >> > > > >> > > > >> > > On Thursday, 11 June 2015 10:50:36 UTC-4, Herby wrote: > >> > > > >> > > > >> > > > >> > > Richard Eng wrote: > >> > > > It's very easy to insert raw HTML instead of using > >> > HTMLCanvas. > >> > > For example, > >> > > > > >> > > > || > >> > > > '#client-main'asJQuery append: > >> > > > '<form> > >> > > > <table> > >> > > > <tr><td>Username:</td><td><input name="name"></td></tr> > >> > > > <tr><td>Password:</td><td><input name="password" > >> > > type="password"></td></tr> > >> > > > <tr><td><input type="submit" value="Okay"></td></tr> > >> > > > </table> > >> > > > </form>' > >> > > >> > Just in case, above thing could probably written this way in > >> > Silk: > >> > > >> > '#client-main' asSilk > >> > FORM > >> > TABLE > >> > TR: { > >> > Silk TD: 'Username:'. > >> > Silk TD INPUT: 'name'->'name' }; > >> > TR: { > >> > Silk TD: 'Password'. > >> > Silk TD INPUT: { 'name'->'password'. 'type'->'password' }}; > >> > TR: { > >> > Silk TD INPUT: { 'type'->'submit'. 'value'->'Okay' } > >> > >> This is not correct code. See the medium article for correct > >> pieces. > >> > >> > > >> > Of course, it could be written other ways, too, as it is > >> > pretty flexible > >> > in ways how to insert content into an element. This piece > >> > uses `TAG: > >> > content` convenient method heavily. > >> > > >> > (uppercase needed, as DNU is used to generate tags from any > >> > uppercase > >> > message, so you can insert you custom tags as well) > >> > > >> > > > > >> > > > I just thought it'd be nice to use Smalltalk to > >> > programmatically > >> > > create > >> > > > the HTML. I used Seaside many years ago, so it's what > >> I'm > >> > > familiar with; > >> > > > in Seaside, there was no other way to use HTML (most web > >> > > frameworks use > >> > > > HTML templates). > >> > > > > >> > > > In fact, for all future work, I'm inclined to inject > >> > raw HTML. > >> > > It's much > >> > > > >> > > IMNSHO, this is unhappy inclination. I very hope if not > >> > Web then at > >> > > least Silk allows you to use objects, not strings > >> > regularly. It has > >> > > different approach, maybe having simple methods returning > >> > array of > >> > > elements / a wrapped DocumentFragment could be seen as > >> > flexible enough > >> > > (while retaining objects all the way). > >> > > > >> > > > more flexible than the programmatic approach and is > >> > much more > >> > > natural > >> > > > for Amber (than it is for Pharo). However, I still need > >> > to solve the > >> > > > issue of > >> > > > > >> > > > (('#myForm1 *'asJQuery)filter:':input') > >> > > > > >> > > > crapping out on me when a false value causes a break > >> > from the loop. > >> > > > > >> > > > > >> > > > On Thursday, 11 June 2015 01:24:27 UTC-4, Martin Bähr > >> > wrote: > >> > > > > >> > > > Excerpts from Richard Eng's message of 2015-06-11 > >> > 05:40:09 +0200: > >> > > > > Thanks to Herby's (very extensive) proofreading and > >> > vetting, I've > >> > > > made many > >> > > > > substantial changes to the article, esp. the coding > >> > examples. > >> > > > It's now > >> > > > > ready for publishing and I've posted it at Reddit: > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > >> > >> > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > >> > >> > >> > > >> > > > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > >> > >> > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>> > > >> > >> > >> > > >> > > > >> > > > > >> > > > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > >> > >> > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > >> > >> > >> > > >> > > > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > >> > >> > >> > > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > >> > >> > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>>> > > >> > >> > >> > > >> > > > >> > > > > >> > > > > >> > > > the article reads nicely, but i wonder, why the > >> > excursion on switch? > >> > > > it is not > >> > > > specific to amber, and it gives the impression that you > >> > feel the > >> > > > need to > >> > > > apologize for it. > >> > > > > >> > > > this should be an aside linked to a separate post, if > >> > it's mentioned > >> > > > at all. > >> > > > > >> > > > what i would like to know is, if there is a way to > >> not use > >> > > smalltalk to > >> > > > generate html, but just have it as plain raw html. the > >> > example you > >> > > > give doesn't > >> > > > demonstrate that the smalltalk variant is easier to > >> > read. on the > >> > > > contrary. > >> > > > > >> > > > i find plain html much nicer to read, and it even looks > >> > like > >> > > > smalltalk is more > >> > > > typing. > >> > > > > >> > > > also, in day to day work, i very often have to deal > >> > with html given > >> > > > to me by > >> > > > others. i don't write html, our designers do. > >> > > > > >> > > > having to translate the designers output into smalltalk > >> > is just > >> > > > busywork. and > >> > > > having to update for changes even worse. it's just not > >> > practical. > >> > > > > >> > > > finally though, i really like that you are using a REST > >> > api example. > >> > > > that's > >> > > > right up my alley, and when i find some time i'll try > >> > to get this to > >> > > > run. > >> > > > > >> > > > greetings, martin. > >> > > > > >> > > > -- > >> > > > eKita - the online platform for your entire academic > >> life > >> > > > -- > >> > > > chief engineer eKita.co > >> > > > pike programmer pike.lysator.liu.se > <http://pike.lysator.liu.se> > >> <http://pike.lysator.liu.se> > >> > <http://pike.lysator.liu.se> <http://pike.lysator.liu.se> > >> > > <http://pike.lysator.liu.se> > >> > > > caudium.net <http://caudium.net> <http://caudium.net> > <http://caudium.net> > >> <http://caudium.net> > >> > <http://caudium.net> > >> > > societyserver.org <http://societyserver.org> > <http://societyserver.org> > >> <http://societyserver.org> > >> > <http://societyserver.org> > >> > > > <http://societyserver.org> > >> > > > secretary beijinglug.org <http://beijinglug.org> > <http://beijinglug.org> > >> <http://beijinglug.org> > >> > <http://beijinglug.org> > >> > > <http://beijinglug.org> > >> > > > mentor fossasia.org <http://fossasia.org> > <http://fossasia.org> > >> <http://fossasia.org> > >> > <http://fossasia.org> <http://fossasia.org> > >> > > > foresight developer foresightlinux.org > <http://foresightlinux.org> > >> <http://foresightlinux.org> > >> > <http://foresightlinux.org> > >> > > <http://foresightlinux.org> <http://foresightlinux.org> > >> > > > realss.com <http://realss.com> <http://realss.com> > <http://realss.com> > >> <http://realss.com> > >> > <http://realss.com> > >> > > > unix sysadmin > >> > > > Martin Bähr working in china > >> > http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > >> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>> > >> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > >> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>>> > >> > > > > >> > > > -- > >> > > > You received this message because you are subscribed to > >> > the Google > >> > > > Groups "amber-lang" group. > >> > > > To unsubscribe from this group and stop receiving > >> > emails from it, > >> > > send > >> > > > an email to > >> > >> ... > >> > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "amber-lang" group. > >> To unsubscribe from this group and stop receiving emails from > it, send > >> an email to [hidden email] <javascript:> > >> <mailto:[hidden email] <javascript:>>. > >> For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
You're right. The last example did not break.
-- On Wednesday, 24 June 2015 15:25:42 UTC-4, Herby wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Richard Eng wrote: > You're right. The last example did not break. Released 0.1.4 with `Silk TAG:` working. > On Wednesday, 24 June 2015 15:25:42 UTC-4, Herby wrote: > > > > Richard Eng wrote: > > I notice that the class-side #doesNotUnderstand: is slightly > different > > from the instance-side #doesNotUnderstand:, which is why your > examples > > break. You're right, when I do 'Silk new TAG:', it works. > > I told `Silk newStream TAG:`, `Silk new TAG:` does something slightly > different (of course, '#client-div' asSilk is also an instance, that's > why there the TAG: form works as well; also the last example uses > instances, so AfAICT, it is not breaking (you wrote all of them > break)). > > > On Wednesday, 24 June 2015 14:44:46 UTC-4, Herby wrote: > > > > > > > > Herby Vojčík wrote: > > > > > > > > > Richard Eng wrote: > > >> Here's what I've concluded... > > >> > > >> With the exception of #FORM:, *none* of the other TAG:'s work. I > > have to > > >> use '<<' with 'Silk TAG'. That's why all of your example break. > > > > I looked at sources; you are mixing "Silk TAG:" with "aSilkInstance > > TAG:". It is indeed true that "Silk TAG:" does not work (from the > > examples it is clear, though, that it is useful), and on the other > > hand, > > all "aSilkInstance TAG:" work (not just FORM:). > > > > Nevertheless, it should be easy to use "Silk newStream TAG:" > instead of > > "Silk TAG:" and it should just work. > > > > I will probably add direct "Silk TAG:". > > > > > I just don't believe that, #FORM: has no specialty at all and > > Silk has > > > unit tests which test lots of scenarios, including making some > table > > > using TAG and TAG: messages. > > > > > >> On Wednesday, 24 June 2015 12:29:27 UTC-4, Richard Eng wrote: > > >> > > >> Where you use 'Silk open', I also get: > > >> > > >> Silk does not understand #open > > > > > > #open must just work, it's normally implemented (in DOMite, from > > which > > > Silk inherits). > > > > > > You must have something wrong in your setup. > > > > > >> On Wednesday, 24 June 2015 12:22:40 UTC-4, Richard Eng wrote: > > >> > > >> In all of your code examples where you use #TD:, I get: > > >> > > >> Silk does not understand #TD: > > >> * > > >> * > > >> (I'm just cut-and-pasting into my application.) > > >> > > >> Am I doing something wrong, or is your article incorrect? > > >> > > >> > > >> On Wednesday, 24 June 2015 04:48:54 UTC-4, Herby wrote: > > >> > > >> > > >> > > >> Richard Eng wrote: > > >> > Hmmm, something's wrong. Even with 'Silk TD LABEL:', the > > >> cells in the > > >> > table are not aligning correctly. This was never a > > >> problem with the Web > > >> > package. > > >> > > > >> > > > >> > On Tuesday, 23 June 2015 20:53:23 UTC-4, Richard Eng wrote: > > >> > > > >> > Oh, so simple: > > >> > > > >> > Silk TD LABEL: 'Username:' > > >> > > > >> > > > >> > On Tuesday, 23 June 2015 20:51:04 UTC-4, Richard Eng wrote: > > >> > > > >> > Hmmm... > > >> > > > >> > Silk does not understand #TD: > > >> > > > >> > What's the correct way to add a label? > > >> > > > >> > > > >> > On Thursday, 11 June 2015 11:07:05 UTC-4, Herby wrote: > > >> > > > >> > > > >> > > > >> > Richard Eng wrote: > > >> > > I don't disagree with you, but as Martin pointed out, in > > >> > a typical web > > >> > > application project, you are *given* HTML; you are not > > >> > asked to > > >> > > write/generate HTML. > > >> > > > > >> > > Nevertheless, in the next installment of the Amber > > >> > tutorial, I *will* be > > >> > > examining Silk. > > >> > > > > >> > > > > >> > > On Thursday, 11 June 2015 10:50:36 UTC-4, Herby wrote: > > >> > > > > >> > > > > >> > > > > >> > > Richard Eng wrote: > > >> > > > It's very easy to insert raw HTML instead of using > > >> > HTMLCanvas. > > >> > > For example, > > >> > > > > > >> > > > || > > >> > > > '#client-main'asJQuery append: > > >> > > > '<form> > > >> > > > <table> > > >> > > > <tr><td>Username:</td><td><input name="name"></td></tr> > > >> > > > <tr><td>Password:</td><td><input name="password" > > >> > > type="password"></td></tr> > > >> > > > <tr><td><input type="submit" value="Okay"></td></tr> > > >> > > > </table> > > >> > > > </form>' > > >> > > > >> > Just in case, above thing could probably written this way in > > >> > Silk: > > >> > > > >> > '#client-main' asSilk > > >> > FORM > > >> > TABLE > > >> > TR: { > > >> > Silk TD: 'Username:'. > > >> > Silk TD INPUT: 'name'->'name' }; > > >> > TR: { > > >> > Silk TD: 'Password'. > > >> > Silk TD INPUT: { 'name'->'password'. 'type'->'password' }}; > > >> > TR: { > > >> > Silk TD INPUT: { 'type'->'submit'. 'value'->'Okay' } > > >> > > >> This is not correct code. See the medium article for correct > > >> pieces. > > >> > > >> > > > >> > Of course, it could be written other ways, too, as it is > > >> > pretty flexible > > >> > in ways how to insert content into an element. This piece > > >> > uses `TAG: > > >> > content` convenient method heavily. > > >> > > > >> > (uppercase needed, as DNU is used to generate tags from any > > >> > uppercase > > >> > message, so you can insert you custom tags as well) > > >> > > > >> > > > > > >> > > > I just thought it'd be nice to use Smalltalk to > > >> > programmatically > > >> > > create > > >> > > > the HTML. I used Seaside many years ago, so it's what > > >> I'm > > >> > > familiar with; > > >> > > > in Seaside, there was no other way to use HTML (most web > > >> > > frameworks use > > >> > > > HTML templates). > > >> > > > > > >> > > > In fact, for all future work, I'm inclined to inject > > >> > raw HTML. > > >> > > It's much > > >> > > > > >> > > IMNSHO, this is unhappy inclination. I very hope if not > > >> > Web then at > > >> > > least Silk allows you to use objects, not strings > > >> > regularly. It has > > >> > > different approach, maybe having simple methods returning > > >> > array of > > >> > > elements / a wrapped DocumentFragment could be seen as > > >> > flexible enough > > >> > > (while retaining objects all the way). > > >> > > > > >> > > > more flexible than the programmatic approach and is > > >> > much more > > >> > > natural > > >> > > > for Amber (than it is for Pharo). However, I still need > > >> > to solve the > > >> > > > issue of > > >> > > > > > >> > > > (('#myForm1 *'asJQuery)filter:':input') > > >> > > > > > >> > > > crapping out on me when a false value causes a break > > >> > from the loop. > > >> > > > > > >> > > > > > >> > > > On Thursday, 11 June 2015 01:24:27 UTC-4, Martin Bähr > > >> > wrote: > > >> > > > > > >> > > > Excerpts from Richard Eng's message of 2015-06-11 > > >> > 05:40:09 +0200: > > >> > > > > Thanks to Herby's (very extensive) proofreading and > > >> > vetting, I've > > >> > > > made many > > >> > > > > substantial changes to the article, esp. the coding > > >> > examples. > > >> > > > It's now > > >> > > > > ready for publishing and I've posted it at Reddit: > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > > http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > >> > > >> > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>> > > > > > >> > > >> > > >> > > > >> > > > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > >> > > >> > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>>> > > > > > >> > > >> > > >> > > > >> > > > > >> > > > > > >> > > > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > >> > > >> > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>> > > > > > >> > > >> > > >> > > > >> > > > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>> > > > > > >> > > >> > > >> > > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>> > > > > > >> > > >> > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/> > > > > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/ > <http://www.reddit.com/r/programming/comments/39e5cq/a_gentle_introduction_to_amber/>>>>>> > > > > > >> > > >> > > >> > > > >> > > > > >> > > > > > >> > > > > > >> > > > the article reads nicely, but i wonder, why the > > >> > excursion on switch? > > >> > > > it is not > > >> > > > specific to amber, and it gives the impression that you > > >> > feel the > > >> > > > need to > > >> > > > apologize for it. > > >> > > > > > >> > > > this should be an aside linked to a separate post, if > > >> > it's mentioned > > >> > > > at all. > > >> > > > > > >> > > > what i would like to know is, if there is a way to > > >> not use > > >> > > smalltalk to > > >> > > > generate html, but just have it as plain raw html. the > > >> > example you > > >> > > > give doesn't > > >> > > > demonstrate that the smalltalk variant is easier to > > >> > read. on the > > >> > > > contrary. > > >> > > > > > >> > > > i find plain html much nicer to read, and it even looks > > >> > like > > >> > > > smalltalk is more > > >> > > > typing. > > >> > > > > > >> > > > also, in day to day work, i very often have to deal > > >> > with html given > > >> > > > to me by > > >> > > > others. i don't write html, our designers do. > > >> > > > > > >> > > > having to translate the designers output into smalltalk > > >> > is just > > >> > > > busywork. and > > >> > > > having to update for changes even worse. it's just not > > >> > practical. > > >> > > > > > >> > > > finally though, i really like that you are using a REST > > >> > api example. > > >> > > > that's > > >> > > > right up my alley, and when i find some time i'll try > > >> > to get this to > > >> > > > run. > > >> > > > > > >> > > > greetings, martin. > > >> > > > > > >> > > > -- > > >> > > > eKita - the online platform for your entire academic > > >> life > > >> > > > -- > > >> > > > chief engineer eKita.co > > >> > > > pike programmer pike.lysator.liu.se > <http://pike.lysator.liu.se> > > <http://pike.lysator.liu.se> > > >> <http://pike.lysator.liu.se> > > >> > <http://pike.lysator.liu.se> <http://pike.lysator.liu.se> > > >> > > <http://pike.lysator.liu.se> > > >> > > > caudium.net <http://caudium.net> <http://caudium.net> > <http://caudium.net> > > <http://caudium.net> > > >> <http://caudium.net> > > >> > <http://caudium.net> > > >> > > societyserver.org <http://societyserver.org> > <http://societyserver.org> > > <http://societyserver.org> > > >> <http://societyserver.org> > > >> > <http://societyserver.org> > > >> > > > <http://societyserver.org> > > >> > > > secretary beijinglug.org <http://beijinglug.org> > <http://beijinglug.org> > > <http://beijinglug.org> > > >> <http://beijinglug.org> > > >> > <http://beijinglug.org> > > >> > > <http://beijinglug.org> > > >> > > > mentor fossasia.org <http://fossasia.org> > <http://fossasia.org> > > <http://fossasia.org> > > >> <http://fossasia.org> > > >> > <http://fossasia.org> <http://fossasia.org> > > >> > > > foresight developer foresightlinux.org > <http://foresightlinux.org> > > <http://foresightlinux.org> > > >> <http://foresightlinux.org> > > >> > <http://foresightlinux.org> > > >> > > <http://foresightlinux.org> <http://foresightlinux.org> > > >> > > > realss.com <http://realss.com> <http://realss.com> > <http://realss.com> > > <http://realss.com> > > >> <http://realss.com> > > >> > <http://realss.com> > > >> > > > unix sysadmin > > >> > > > Martin Bähr working in china > > >> > http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>> > > >> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>>> > > >> > > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>> > > >> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>> > > >> > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>> > > >> <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/> > > <http://societyserver.org/mbaehr/ > <http://societyserver.org/mbaehr/>>>>>> > > >> > > > > > >> > > > -- > > >> > > > You received this message because you are subscribed to > > >> > the Google > > >> > > > Groups "amber-lang" group. > > >> > > > To unsubscribe from this group and stop receiving > > >> > emails from it, > > >> > > send > > >> > > > an email to > > >> > > >> ... > > >> > > >> -- > > >> You received this message because you are subscribed to the > > >> Groups "amber-lang" group. > > >> To unsubscribe from this group and stop receiving emails from > > it, send > > >> an email to [hidden email] <javascript:> > > >> <mailto:[hidden email] <javascript:> > <javascript:>>. > > >> For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout> > > <https://groups.google.com/d/optout > <https://groups.google.com/d/optout>>. > > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "amber-lang" group. > > To unsubscribe from this group and stop receiving emails from it, > send > > an email to [hidden email] <javascript:> > > <mailto:[hidden email] <javascript:>>. > > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
I think I like this style best:
-- '#client-main' asSilk But I'm puzzled by 'FORM' and 'TABLE'. You don't actually say what these are shortcuts for, and I can't figure out how to add an attribute, eg, 'id'->'myForm1'. I've tried various things to no avail. On Wednesday, 24 June 2015 16:00:24 UTC-4, Herby wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Another question I have is: Since Silk is a way to not rely on JQuery, how would you collect the values in the form without using JQuery? IOW, I can't use...
You received this message because you are subscribed to the Google Groups "amber-lang" group.(('#myForm1 *' asJQuery) filter: ':input') On Wednesday, 24 June 2015 19:09:34 UTC-4, Richard Eng wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |