[Source](https://everything2.com/title/is_computer_on_fire() "Permalink to is_computer_on_fire() - Everything2.com")
# is_computer_on_fire() - Everything2.com
__
Near Matches Ignore Exact
[Everything2][1]
# is_computer_on_fire()
| ----- |
| ([thing][2]) | by [**beek][3]** | Fri Aug 18 2000 at 16:51:09 |
`double **is_computer_on_fire(** void **)**`
: [BeOS][4] [kernel][5] function, returns the [temperature][6] of the [motherboard][7] if the [computer][8] is currently on fire. [Smoldering][9] doesn't count. If the computer isn't on fire, the function returns some other value. _([Be Book][10])_
_see also:_ [is_computer_on()][11]
* * *
to be [consistent][12] with the [naming][13] [convention][14]s used in the rest of the [BeOS][4] [API][15], this function should really be
static bool BComputer::isOnFire();
and should return false if the computer _is not_ on fire. I guess it's okay to return an undefined value when the computer _is_ on fire.
| -----|
|
| [I like it!][16] | [1 **C!**][17] |
| ----- |
| ([idea][18]) | by [**ariels][19]** | Thu Sep 14 2000 at 11:34:11 |
This definitely lowers my opinion of [BeOS][4]. The [coding style][20] used is [terrible][21]! You should _never_ name your [predicate][22]s `is_`_something_. A predicate is not [_ask][23]ing_ a [question][24], it is [_answer][25]ing_ it. Consider this [code fragment][26]:
>
>
> if (is_computer_on_fire()) {
> dump_halon(computer_room);
> }
>
You cannot read it [out loud][27], because it doesn't sound like [English][28].
Much better alternatives would be [`computer][8]_is_on[_fire][29]()`, `computer_on_fire()` or the [Lisp][30]-like `computer_on_fire_p()` (using [the -P convention][31]). All of these let you read your code.
| -----|
|
| [I like it!][32] | |
| ----- |
| ([idea][33]) | by [**SlightlyMadman][34]** | Thu Sep 14 2000 at 13:34:22 |
Actually, [ariels][35], I'd say your suggestions are just as [flawed][36]. The big problem I see with this [function][37], is that it looks, by its name, to be returning a [boolean][38] value, where it actually returns a [double][39]. I say it would more properly be named something along the lines of [getFlamingMotherboardTemperature][40], or something like that.
Of course, I was greatly amused by this, and [is_computer_on()][11], and immediately included them in the function [library][41] I'm currently using in a production system, to replace the [random number generators][42].
| -----|
|
| [I like it!][43] | [1 **C!**][44] |
| ----- |
| [is_computer_on()][45] | [The -P convention][46] | [lpt on fire][47] | [New UNIX filesystem permissions based on Everything2 behavior][48] |
[Log in][66] or [register][67] to write something here or to contact authors.
## Sign in
| ----- |
| **Login** | |
| **Password** | |
remember me
[Lost password][68]
[**Sign up][69]**
Need help? [accounthelp@everything2.com][70]
## Recommended Reading
#### [About Everything2][71]
#### [User Picks][72]
* [So, You Bought a Child Sex Doll.][73]
* [Saxophone][74]
* [Honeybee Language and Wittgenstein][75]
* [Ludwig van Beethoven][76]
* [Tempo in chess][77]
* [Etan Patz][78]
#### [Editor Picks][79]
* [Thermopylae][80]
* [Don't Leave Before the Miracle][81]
* [George W. Bush's address to the UN General Assembly: September 12, 2002][82]
* [Why eat imitation food?][83]
* [closed captioning][84]
* [Spontaneous human combustion][85]
## New Writeups
* [Justin Trudeau's Whacky Indian Adventure][86] ([person][87]) by [TheAnglican][88]
* [transposing instrument][89] ([thing][90]) by [TheAnglican][88]
* [icky][91] ([fiction][92]) by [lostcauser][93]
* [It has been claimed that some or all of this article or section is incoherent and not understandable, and should possibly be reworded if the intended meaning can be determined][94] ([log][95]) by [gate][96]
* [I'm going to have to ask you to leave][97] ([thing][98]) by [Bethaven][99]
* [Saxophone][100] ([thing][74]) by [TheAnglican][88]
* [Office Romance][101] ([poetry][102]) by [syntaxfree][103]
* [February 22, 2018][104] ([log][105]) by [Stasik][106]
* [zoot][107] ([person][108]) by [TheAnglican][88]
* [The Muppet Show][109] ([review][110]) by [TheAnglican][88]
[16]: https://everything2.com/title/is_computer_on_fire%2528%2529?like_id=710134&confirmop=ilikeit "send a message to the author telling them someone likes their work"
[17]: https://everything2.com/title/is_computer_on_fire%2528%2529?showwidget=showCs710134 "1 users found this writeup COOL"
[31]: https://everything2.com/title/the+-P+convention "the -P convention"
[32]: https://everything2.com/title/is_computer_on_fire%2528%2529?like_id=747788&confirmop=ilikeit "send a message to the author telling them someone likes their work"
[42]: https://everything2.com/title/random+number+generators "random number generators"
[43]: https://everything2.com/title/is_computer_on_fire%2528%2529?like_id=747878&confirmop=ilikeit "send a message to the author telling them someone likes their work"
[44]: https://everything2.com/title/is_computer_on_fire%2528%2529?showwidget=showCs747878 "1 users found this writeup COOL"