Talk:Audio alarm: Difference between revisions

No edit summary
Line 1:
===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 <code>document.write</code>? --[[User:Ledrug|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.) [[User:Markhobley|Markhobley]] 09:39, 22 July 2011 (UTC)
Line 5:
 
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). [[User:Star651|Star651]] 22:48, 22 July 2011 (UTC)
: Oh I have no doubt you can make the program work, I was rather questioning the suitablity of the very specific requirements of your description: "type names without extension", "type seconds", "must be in its own folder"--what value do those provide as code examples here?
: ''And'', let me reiterate your "app"'s design goal: you kindly send this "app" to some hapless schmuck who has never seen a file extension or an alarm clock, so that he can wake up in time; now every night before he goes to bed he needs to fire up an html file, calculate how many ''seconds'' he needs to sleep, type that in carefully, remember what ''filename'' it is and type ''that'' in carefully, then spend all night worrying if he typed anything wrong (you did no error check) or if the computer would itself go to sleep before dawn (Mr. Schmuck might not have your l33t mobile device)&mdash;I feel sorry for the poor soul. Then again, it's probably his own fault for making acquaintance with a "major geekage" who doesn't know to use javascript to calcuate time or file drag and drop. Meh. --[[User:Ledrug|Ledrug]] 23:10, 22 July 2011 (UTC)
Anonymous user