Cutter
Member since Dec 11, 2008
- Profile: /members/1384-cutter.htm
- URL: https://cutterscrossing.com
- Comments: 24
Recent Blog Comments By Cutter
-
Formatting Dates In The Local Timezone With Alpine.js
Posted on Nov 27, 2024 at 3:03 PM
@Ben Nadel, Yeah, some of my examples there are bad, only because the Temporal.ZonedDateTime.toLocaleString() is a wrapper around Intl.DateTimeFormat() (something I discovered after that preso). But loving that this stuff is now becoming browser native. For base formatting today the I... read more »
-
Formatting Dates In The Local Timezone With Alpine.js
Posted on Nov 26, 2024 at 5:52 PM
@Ben, You can build your own formatter function to use the users local 'locale', and it will automatically adjust accordingly. function buildFormatter() { const {locale} = new Intl.DateTimeFormat().resolvedOptions(); const formatter = new Intl.DateTimeFormat(locale, { year: 'numeric',... read more »
-
Formatting Dates In The Local Timezone With Alpine.js
Posted on Nov 21, 2024 at 9:20 PM
I've moved to using the Intl.DateTimeFormat for all of my date/time formatting. Native in all modern browsers, and can handle timezone conversions for me when needed. Plus the formatting that the Temporal API will use is the same under the hood.... read more »
-
Is Injecting The $element And $event Objects An Anti-Pattern In AngularJS?
Posted on Nov 30, 2015 at 11:12 PM
I was reading another site this morning that talked about this issue, with much the same view point as your own. As an example of using such an anti-pattern, it pointed to the Angular-UI Bootstrap library. If you look at the directives, they're very trim, and their linking function does one thing: T... read more »
-
Var For Life - Why Let And Const Don't Interest Me In JavaScript
Posted on Nov 18, 2015 at 8:40 AM
Love Ya Brother, but I had to ;) http://www.cutterscrossing.com/index.cfm/2015/11/18/Death-to-Var--Why-Let-and-Const-Really-Interest-Me-In-JavaScript... read more »
-
Posting Form Data With $http In AngularJS
Posted on Apr 23, 2014 at 2:03 PM
Great post Ben. What's the advantage of using this over angular's built-in $http.post()?... read more »
-
The User Experience (UX) Of Sketching In Prototyping
Posted on Apr 17, 2014 at 8:49 AM
@Ben, I have more of a love/love relationship with Bootstrap, but I do completely understand what you are saying. In fact, that was brought up in this article from 2012, which also lays out some solutions for handling that as well: http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-clas... read more »
-
The User Experience (UX) Of Sketching In Prototyping
Posted on Apr 8, 2014 at 7:58 AM
+1 on Balsamiq, though I completely "get" the appeal of putting pen to paper (I prefer the Uni-Ball Vision series, usually the Elite).... read more »
-
Referencing ColdFusion Query Columns In A Loop Using Both Array And Dot Notation
Posted on May 31, 2013 at 4:44 PM
That's what I get for not reloading the page first;) (had this up in a tab for...a while)... read more »
-
Referencing ColdFusion Query Columns In A Loop Using Both Array And Dot Notation
Posted on May 31, 2013 at 4:43 PM
And, the CF 10+ way too for (var rec in LOCAL.myQuery) { WriteOutput("this column " & LOCAL.rec.thisColumn & " at " & LOCAL.myQuery.currentRow); }... read more »
-
How Client-Side Validation Is Changing The Shape Of Server-Side Validation
Posted on Dec 29, 2011 at 3:46 PM
@Anna, @Gary, et al, I think you need to maintain both client and server-side validation. Client side validation for user experience, and server-side for security. I also think that you have to craft this carefully, to maintain graceful degradation for those few out there who do operate with JS tur... read more »
-
How Client-Side Validation Is Changing The Shape Of Server-Side Validation
Posted on Dec 29, 2011 at 1:12 PM
Ben, Nice post. I layed out some similar concepts in a recent post on how I use CF with Ajax: http://www.cutterscrossing.com/index.cfm/2011/9/26/How-I-Do-Things-ColdFusion-and-Ajax-Requests... read more »
-
Strange ColdFusion URLDecode() and GetEncoding() Behavior
Posted on Feb 6, 2009 at 5:09 PM
@Ben - In my day job, there are dozens of variables in our 3k template app that read 'URL' or 'FORM'. They are so numerous, renaming them would be a nightmare. We've been able to avoid the conflicts by, when finding them, putting them in their proper scope: VARIABLES.url ARGUMENTS.url REQUEST.url ... read more »
-
Strange ColdFusion URLDecode() and GetEncoding() Behavior
Posted on Feb 5, 2009 at 10:21 AM
@Ben Call me Cutter brother. I had to start using the rest of the name in communications because the CF product team kept passing me up on the ACE program because they didn't know who 'Steve Blades' was;) I understand that you are only passing in a string. ColdFusion doesn't (in the context of tha... read more »
-
Strange ColdFusion URLDecode() and GetEncoding() Behavior
Posted on Feb 5, 2009 at 9:43 AM
Not sure I would use an argument name of URL either, but did you try explicitly defining the scope? <cfdump var="#GetEncoding(ARGUMENTS.URL)#" />... read more »
-
Six Months Of Epicenter Consulting
Posted on Jul 24, 2008 at 11:39 AM
Ben, Glad to hear things are going well. Simon Free had told us about your change, when we were talking at WebManiacs. And Clark is a great guy. He and I had a discussion at CFUnited '06, out on the back deck over drinks one night, about people with an affinity for learning foreign languages seemin... read more »