Coffee and Code

The Life and Times of Jeff Woodman

Home >> Tag: development

Entries Tagged with “development”

First Previous 1 2 3 4 5 Next Last  Displaying 1 - 5 of 21 entries.

21st Century (Digital Boy)

Posted: 11/24/2026 06:59 AM | permaLink

Tags: development personal tech geek-love life habits

"I can't believe it
The way you look sometimes
Like a trampled flag on a city street, oh yeah"
Bad Religion. "21st Century (Digital Boy)". Stranger Than Fiction. Atlantic Records, 1994

If you thought that my ideal life was one immersed in data and tech, I'd understand. After all, I'm a web developer and programmer at heart and a CIO for a large government agency, and generally speaking, pretty nerdy. The truth is, I'm only now finding my balance between the digital world and our organic one, and it's been more dangerous and difficult than I had ever imagined. 

Growing up in the 80s and 90s, I was enthralled with sci-fi, video games and personal computers. In my early teens, I read the Spire trilogy by William Gibson (Neuromancer, Count Zero, and Mona Lisa Overdrive), which stoked my interest in writing software. I wrote my first C programs in a notebook before I had computer; when I compiled those first programs on a Borland compiler and saw them run, I was hooked for life.

I played the tabletop RPG Cyberpunk 2020 a lot during that time and imagined my  future self in a dark, edgy future, looking cool as hell wired up with cybernetic augmentation.  The 21st century was still in front of me at that point, and I could see its promise. I set my sights on becoming a technomancer of sorts, and dove headfirst into technology - living, eating and breathing code in my professional and personal life.

Ironically, it was in the year 2020  that I found myself moving in the opposite direction. Even though my tech career was nearing a peak, I craved disconnection. I'd dream about living in a rustic cabin, reading printed books all day without a computer in sight. I would imagine life as a park service worker, a janitor, or even becoming a monk and spending my days in silence. Anything that would disconnect me from all of the technology I was once in love with. What was happening to me?

Even before the pandemic, I was being rattled by alerts from phone calls, text messages, e-mails, and social media notifications. Every time I opened a news website or Facebook, I'd have an emotional reaction to something I read. It was almost never something good, but I'd keep scrolling and scrolling, hooked. Then Covid-19 came with its remote meetings, all day long. Confined to home, tech was the only way to feel connected to the world. The AI wave hit at the same time, a digital sword that brought promise on one edge, and doom on the other.

I was truly adrift at this point, drowning in data feeds, harried by constant pings. I was burdened by the expectation that I should somehow be able to surf this ocean, but was barely treading water. I knew technology was hurting me, so I took early steps to create distance, like a years-long social media break. I put my own tech-related hobbies on hold. These steps helped, but weren't enough. I was still ready to check into a monastery, and check out of the modern world.

 In order to solve this problem, I had to understand it. Why couldn't I keep on top of all of this info? Why was I so irritated by the technology? I turned to online research, and then reached out for help from professionals. After a lot of research and having received some great guidance from professionals, I understand the problem now: My nervous system had been overrun by the sheer volume and constant flood of data I contended with daily.

My job as a tech leader already demanded immersion in data: email, product reviews, contending with predatory IT sales and their constant demands for attention. On top of that, my personal tech habits simply added to the tide of information. Little did I know that I was a casualty of today's attention economy: businesses had learned to compete for the shreds of attention that I had to offer, and to hook me, they learned to first draw me in, and then to play on my hopes and fears. My system couldn't handle the load; my buffers were overrun. Worse, as a technology leader, I felt a responsibility to stay on top of this massive tsunami of information. The effects of digital overwhelm were so damaging that I nearly exited a rewarding technology career to stem the bleeding.

Now that I knew what was going on, my next step was to find a way to stay in the game without being consumed by it. I had invested much time building a technical career and stood on the verge of earning a retirement. It was the wrong time to walk away. So, I took guidance from professionals and also from some great books to execute a few strategic shifts in work and life:

  • Understanding my attention and focus is a precious commodity, I now protect it at key times of the day. I get up very early to meditate, which allows me to practice focus and ground myself before things start flying at me. I keep my phone on "do not disturb". I also prioritize my attention and focus for friends and family and yes, myself. We need my attention so  much more than any tech bro does.

  • I start each work day with a short session in which I simply shut off my e-mail, put Windows and my phone into focus mode, and write a pen-and-paper checklist of things I need to do. (There's now ongoing research into why some prefer to create checklists and calendars this way, versus relying on apps. There's nothing wrong with the analog approach.)

  •  I play low-cognitive music (lo-fi instrumental for example) when I need to focus on a work task. This music keeps a certain part of my mind occupied and magically increases my ability to focus on the task.
  • I now limit (rather than totally avoid) my social media time. I'll spend up to thirty minutes each Sunday catching up with peoples' social media posts and sometimes even post things myself again, now. I'm much more likely to pick up a good book and just read for a while.

  • I feel much less pressure to "keep up" by having the latest or most popular apps and services. With so much to choose from, it's easy to fall into the trap of thinking I must know it all, or have it all. Instead, I use technology that provides a sense of ease. If using the tech starts to make me unhappy or feel like a chore, it's a sign to move in another direction.

 

Here's a list of books and online articles that relate to what I wrote about here today:

I feel like I'm in a place now where I can contend with technology without being dominated by it. I still love gaming, software development,  and the internet, but I also feel that as time goes on, I'm going to carve out more of an analog niche in this digital world. That's the lesson I've learned by diving into the digital ocean and nearly being drowned in its waves. Maybe one day, I'll be that monk in a monastery, but I might still play a videogame or two and have a headset on. 

- Still swimming, Jeff Woodman | SFNM


ASP.Net - Supporting Currency Input

Posted: 05/13/2011 01:23 PM | permaLink

Tags: development asp.net regex code

Question:
I have an ASP.Net application that allows users to enter currency amounts, which are stored in the SQL Server database with the type money. How can I support input of USD currency values, including the dollar sign and thousands separators, within the context of ASP.Net databound controls such as ListView, and declarative data access controls such as SqlDataSource?

Answer:
There are a few little tricks you need to know to support currency input in this scenario.

1. The most important, magical trick I've found is to simply declare your parameter with no Type or DbType attribute.
Example: <asp:parameter name="TuitionPerCredit" />

2. Use a RegularExpressionValidator control with a really solid, well tested expression for validating the currency input The expression I've been using is applicable to US currency, so if you're coding for another culture, the advice in #1 still applies but you'll need a regex that applies to your specific currency format

The currency regex I use is below:

\$?-?([1-9]{1}[0-9]{0,2}(\,\d{3})(.\d{0,2})?|[1-9]{1}\d{0,}(.\d{0,2})?|0(.\d{0,2})?|(.\d{1,2}))$|^-?\$?([1-9]{1}\d{0,2}(\,\d{3})(.\d{0,2})?|[1-9]{1}\d{0,}(.\d{0,2})?|0(.\d{0,2})?|(.\d{1,2}))$|^(\$?([1-9]{1}\d{0,2}(\,\d{3})*(.\d{0,2})?|[1-9]{1}\d{0,}(.\d{0,2})?|0(.\d{0,2})?|(.\d{1,2})))$

The regex above will validate entries like: $3, $3.00, $3,000, and $3000.00 It's not perfect, because it will validate something like $3000[.] (a digit at the end without the following two digits). However, I've found that SQL Server ignores the trailing period, so it's not a serious issue. The regex was posted on StackOverflow.com by the user JohnM, at the following link:
http://stackoverflow.com/questions/354044/what-is-the-best-u-s-currency-regex

Finally, one additional word of advice: If you application has many areas where currency values can be entered or edited, centralize your Regex pattern inside of a resource file. That way, whenever you need to apply a RegularExpressionValidator control, you can obtain the pattern for use in the ValidationExpression property like so:

<asp:regularexpressionvalidator>
   ID="TuitionRegularExpressionValidator
   ControlToValidate="InputTextBox"
   ErrorMessage="The value entered in the 'Tuition' field is not a valid USD currency value."
   ValidationExpression="<%$ Resources:CommonValidation, Currency %>"
   runat="server" />

I am counting down to a full week off work beginning Friday, May 13th at 5:00 PM sharp. Oh yeah!


For Performance Issues, Firebug Rocks

Posted: 03/20/2008 01:05 PM | permaLink | Comment on this entry!

Tags: development asp.net firebug tools

Firebug!
Do you want real, ultimate, client-side debugging power? Get Firebug today.

This week I tackled some performance issues with my new weblog. I had noticed that the weblog took an awfully long time to load. So, I navigated to my weblog and launched Firebug. Firebug's network monitor quickly informed me that:

  • The request to the weblog page itself was averaging over 1 second in duration.
  • The size of the HTML response for the page was in excess of 50 Kb.
  • AJAX resources and Script.aculo.us libraries were unneccessarily loaded on every request - these are only needed in an authenticated context.

Damn, I loves me some Firebug!

Using this information, I determined that the ViewState (A hidden form tag on the page) content was sometimes as large as 23 Kb! In other words, the ViewState information accounted for almost 50% of the markup on the page.

Some minor code changes resulted in a HUGE reduction in the ViewState size. For one particular weblog entry, the viewstate was reduced from 23552 bytes to 236 bytes - a 98.99% difference!

In addition to the viewstate optimizations, I also did the following:

  • Reduced the total number of items that are fetched for each request to the page - From 17 to 5, on average.
  • Implemented caching where I could to reduce round-trips to the database (From 7 round-trips to 1 round-trip per request).
  • Replaced the Archive TreeView with a simple repeater. The TreeView is expensive to initialize and populate server side, and emits tables which are a Web 2.0 no-no in most cases.

If you're a web developer, Firebug will make your life easier. For ASP.Net developers, I also recommend Binary Fortress's ViewState Helper for Internet Explorer - This tool will decode viewstate for you so you can examine the contents, as well as giving you the ViewState size and percentage of the page's content that the ViewState consumes.


Developer in Isolation Seeks Brain Candy

Posted: 03/04/2008 06:59 PM | permaLink | Comment on this entry!

Tags: development web-design inspiration

I turn 31 tomorrow! Another year gone by - and I'm still just a big kid. When will I finally grow up? Never, hopefully. I took the day off and the party begins TONIGHT.

In Need of Variety

My current job consists almost entirely of programming. I actually picked this job specifically because it would allow me to focus on development - whereas in my previous job, my duties included graphic design, web design, ASP coding, Flash and ActionScript, server administration and database administration a sh**load of stuff.

I primarily design web applications for our intranet, which allows me to play with UI design a bit, but let's face it: you have to rein in your creative instincts quite a bit in the context of a corporate intranet. While this focused environment has allowed me to improve my development skills, I find myself jonesing once again for creative web design.

For the past two weeks or so, I've been dedicating some time to trolling the various CSS / web design galleries and web designer sites; I needed to crawl out of my digital coffin, put my ear to the ground, and get back in touch with the design community. Mind you, I am NOT a professional web designer. My designs don't come close to those produced by artists with real talent and skills to back it up. Even so, the process of web design is a lot of fun for me, and it's a great way to shift gears after writing volumes of code at work. I also like to promote CSS-based design and the use of W3C standards - two concepts that have the potential to make life easier for web designers and developers alike.

One of the first questions I had as I ventured into the wild was: What new and exciting things are designers doing these days?

Some answers:

Misdirected Energy

My biggest flash of inspiration came from this article at A List Apart (WTF!?!?!? There's a Web 3.0?? I'm not used to Web 2.0 yet!!!) Zeldman makes mention of Pareto's 80/20 principle in relation to web design; specifically remarking on the success of developers who, eschewing complex development methodologies and overblown, complex application designs, instead focused on creating elegant, easy-to-use, feature-rich applications that people find fun and enjoyable to use. There is much wisdom is this...

In the process of designing the current incarnation of my weblog utility for this site, I put way too much focus on the architecure, the "under the hood" stuff that users never see. I've got pluggable data sources, via the Provider model. I'm using XML serialization to generate RSS feeds. I'm patching in to the HTTP pipline to rewrite URLs. I've got a litany of business objects that my application uses. Abstract this, interface that. Ad nauseum.

I ended up with a weblogger that is useable, even over-powered, but it's feature-poor and doesn't encourage community involvement. I focused my energy on the 80% of the work that didn't matter as much. (Is this starting to sound like a future re-write project? I think it is.) A case of not seeing the forest through the trees, perhaps.


Script.aculo.us is Mir.aculo.us!

Posted: 02/17/2008 02:18 PM | permaLink

Tags: development props javascript code

scriptaculous.jpg Scriptaculous is an uber-cool set of javascript libraries geared toward rich, interactive user interface design. It's built on top of Prototype, another fantastic javascript framework,  and delivers a ton of easy-to-use, cross-browser effects, transitions, and other user interface tools.

I don't know why it took me so long to get into scriptaculous... maybe it's the do-it-yourself punker in me that avoids such conveniences (But why rewrite all of that code, when scriptaculous is well-written, robust, and free??) At any rate, I finally downloaded the libraries a few days ago while out searching for a good drag 'n drop script. Now, I feel like kicking my own ass for not downloading scriptaculous sooner!

The scriptaculous website has many usage examples, but I thought it was a little difficult to find specific usage examples; there were a couple of instances where I resorted to viewing the source code on the demo pages. All that aside, in many cases you can enable the scriptacular fanciness with one line of javascript (such as registering a draggable element on a page):

Not bad! And here's a quickie function that toggles between SlideUp and SlideDown:

function doSlide(id)
{
    var elem = document.getElementById(id);
    if (elem.style.display == "none")
        new Effect.SlideDown(id);
    else
        new Effect.SlideUp(id);
}

Script.aculo.us is, in my humble opinion, a worthwhile addition to any web developer or designer's arsenal.

First Previous 1 2 3 4 5 Next Last  Displaying 1 - 5 of 21 entries.