Talk:Audio alarm

From Rosetta Code
Revision as of 22:48, 22 July 2011 by Star651 (talk | contribs)

Too specific

This is not a RC task, it's a job assignment a manager would hand out to programers. Also, what day and age is this, that someone still uses document.write? --Ledrug 02:58, 22 July 2011 (UTC)

Yeah we have a lot of these bits already: The user input, the pause, display a blank window, timers and event triggers (I think), play a recorded sound. We might need truncation of a string for the purpose of removing the file extension. (I haven't seen that anywhere). Also I don't think this is useful in alarm clock type applications, because you would typically want the event to be synchronous, with the clock itself, (typically, the alarm clock application would trigger the audio event, rather than a separate process.) Markhobley 09:39, 22 July 2011 (UTC)
I have stumbled across "document.write" a few times. I don't think that is a cause for concern. Markhobley 09:39, 22 July 2011 (UTC)

Hello, this is the original writer of AudioAlarm; the newbie RosettaCoder Star651. I was looking at your threads. I've been programming JavaScript since 2006, when I became this big HTMLer, and document.write and its evil partner document.writeln were always being used to display HTML content in JavaScript applications within HTML documents. In fact, the alarm clock I've woken up to the past few days was this app I wrote (major geekage). And, I'm positive it works. I'm sure non-programmers can use it. Some people (who are not programmers) can use it, for these non-programmers might not know about those file extensions. They might think that MP3 is a file type, but not necessarily know what an "extension" is. When I program it at 10:00 PM, for "28800" (28,800 seconds, which is 8 hours), and type in alarm name, such as "example" (which calls example.mp3), I keep this mobile device plugged in, which causes it to never shut off, until I tell it to. When the sound goes off, I know to get off, go over to my device, close the program, close the media-player, and off I go! HTML/JavaScript mania! I'll send the package to the people that I think may need it. So, as I reiterate, AudioAlarm.htm is a working program, when you load it in a Web-browser with active content on. (My browser has it on all the time). Star651 22:48, 22 July 2011 (UTC)