Lurker > IllegalAlien

LurkerFAQs, Active DB, Database 1 ( 03.09.2017-09.16.2017 ), DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Board List
Page List: 1, 2, 3, 4, 5, 6
Topicif (someBoolean == true)
IllegalAlien
06/06/17 11:12:12 AM
#96
Sinroth posted...
IllegalAlien posted...
Haskell makes sense the foldr() func is pretty terribly named though since I have no idea what it is supposed to represent lol


To fold a list is to produce a new value obtained by repeatedly "combining" its elements to produce intermediate values, until you get to the end. foldr is a right associative combine, while foldl is a left associative combine. In light of that, I think foldl and foldr are nice names; much better than reduce.

Ah yeah that's nice
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/06/17 10:58:24 AM
#93
DevsBro posted...
def isEven(x):
if x == 2 or x == 4 or x == 6 or x == 8 or x == 10:
... print('You're number is even')
else:
... print('You're number is odd or too big')

I was always a fan of the fastbogosort.

https://xkcd.com/1185/

It's right 100% of the time it's right though.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/06/17 10:57:38 AM
#92
Sinroth posted...
mario2000 posted...
curly braces on same line or next line of function header?


Same line, it's fucking pathetic how much space you waste doing otherwise. Literally the only reason people do next line is because of some blind loyalty to K&R.

I agree same line is the patrician way to code, however sometimes I find myself adding a newline after the method declaration anyways... hmm...

MutantJohn posted...
let printIsEven x = if even(x) then putStrLn("even number") else putStrLn("odd number")
foldr(\a b -> b >> putStrLn(a))(return ())(printIsEven <$> [0..10])

Haskell makes sense the foldr() func is pretty terribly named though since I have no idea what it is supposed to represent lol
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/06/17 2:07:28 AM
#78
MutantJohn posted...
let printIsEven x = if even(x) then putStrLn("even number") else putStrLn("odd number")
foldr(\a b -> b >> putStrLn(a))(return ())(printIsEven <$> [0..10])

Is this bastardization modern C++ btw? Or something else overloads >>
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/06/17 2:03:40 AM
#77

num(one).
num(two).
num(three).
num(four).

even(X) :- num(two); num(four).

?- even(one).
true


???????????
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/06/17 12:53:12 AM
#72

def isEven(x):
if x == 2 or x == 4 or x == 6 or x == 8 or x == 10:
... print('You're number is even')
else:
... print('You're number is odd or too big')


Extra readable version:

def isEven(x):
if (x == 2 or x == 4 or x == 6 or x == 8 or x == 10) == True:
... print('You're number is even')
else:
... print('You're number is odd or too big')

---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 11:38:57 PM
#64
treewojima posted...
if (boolValue)
{
... return true;
}
else
{
... return false;
}

The readability is off the charts!
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTake Two CEO says they're "under monetizing" their userbase
IllegalAlien
06/05/17 6:30:40 PM
#149
ZombiePelican posted...
Asherlee10 posted...
Why would I requote everything that is already conveniently written in this topic?

Still waiting on those details. You can make excuses or put your money where your mouth is


Asherlee10 posted...
I seriously do not think you read posts by people other than yourself. This is not what's being conveyed or what's written.

Everything you have said to defend them can be boiled down to 3 points which aren't points at all and I've smacked down every single time your bring them up

>They're just optional
>They're just cosmetic
>They don't personally bother me so they don't matter.


All of which are wrong on so many levels I can't believe you still keep parroting them over and over


Asherlee10 posted...
They are buzzwords when you repeat them over and over again. Which you've done.

You only label them as buzzwords to try and discredit my argument rather than actually proving me wrong, which you have yet to do EVER

You have yet to prove to me how microtransactions are not avaricious and anticosumerist other than calling them buzzwords which simply is not true.

You two have seriously been hate sexting for almost 150 posts now holy shit.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicThese were my grocery picks.
IllegalAlien
06/05/17 4:51:45 PM
#2
4 2-packs hard-boiled eggs

Why not just get a single 12 count of eggs and boil them yourself lol? Save you a ton of money.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicWhy are young men dropping out of society?
IllegalAlien
06/05/17 4:48:22 PM
#159
HBOSS posted...
Are they really dropping out of society? I wonder...

I guess we go to the next social part outside the home, schools.

Heres my opinion. We were given textbook lives of studying and work. It prepares us for society of mass conformity. When the education was made, it was for factory lifestyle. Its a daycare for the future and if we were raised that way, guess what it produces at graduation. Classes, class size, grades is a reflection of a time period thats no longer part of the modern world. We had limited sources of information coming from newspaper, radio, then later tv and schools and work. The same foundation is applied to how we learn today. Think about what school produces. Few lead. we are expected to follow. Radio and newspaper fed us information. Schools have books and lessons of history and basics of math. We are raised with expectations based on their lives of living in the country. For about 18 years, we are told how to live by various sources. Many young folks expect one day all their work pay off after years of living by the book. It consumes the individual wholeheartedly.

Many young folks are simply tired of being told what to do and how to live so they go on their respective journeys to find themselves. But the thing is this: many of us dont know how to. Many are lost in this world and have no sense of identity and purpose. Everything we were taught wasnt enough to fill the void that exists within us. There may be something we are missing fundamentally as a modern society. As a result, this leaves most people unfulfilled and they simply dont know what to do. So they bide their time waiting for that muse of inspiration. Until then, we wait and see where life takes us instead of going where we want to be.

tldr: my mommy and daddy told me I was special so instead of studying/working hard I chose to squander the most productive years of my life at McFranchise trying to "find myself".
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTake Two CEO says they're "under monetizing" their userbase
IllegalAlien
06/05/17 4:44:06 PM
#139
DLC is generally scummy as fuck. What's with the DLC apologists lmao, bet day 1 DLC just gets you all hot and sweaty huh
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:41:14 PM
#53
MJ_Max posted...
IllegalAlien posted...
I pray for your code, son. And for your coworkers (if you're out of school == true).

EDIT: forgot to make my conditional explicit, my bad

No see that's redundant cause you have the copula there

I don't even know what a copula is.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicWhy are young men dropping out of society?
IllegalAlien
06/05/17 4:40:22 PM
#149
JerickoX posted...
Twinmold posted...
The amount of bitter men whining about women in this topic explains so much about the attitudes and ideologies you see on this board. You start to get a good idea of what kind of people you're witnessing.


The issue is that you think we're bitter, when were actually speaking from experience. If we were bitter, we'd be trying to find "the one," while whining about how "all the good women are taken." Sound familiar feminists? Yeah. Lol.

You're never butter when you're free.

Lmfao, you may not be butter but you're bitter af
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:38:31 PM
#50
MJ_Max posted...
IllegalAlien posted...
Like you should read all if statements as:

"If expression is true, do this..."

So adding the cute little == True at the end is the same as:

"If expression == true is true, do this..."

But that's implicit, and readability is about making things explicit.

I pray for your code, son. And for your coworkers (if you're out of school == true).

EDIT: forgot to make my conditional explicit, my bad
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:35:52 PM
#47
Like you should read all if statements as:

"If expression is true, do this..."

So adding the cute little == True at the end is the same as:

"If expression == true is true, do this..."
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:34:18 PM
#44
MJ_Max posted...
DevsBro posted...
If adding a comparison with true or false makes your code more readable, you need to name your variables better.

if(badTopic == true)

vs

if(isBadTopic)

Exactly, but sometimes you have to work with libraries that name things however they want to name them.

Please enlighten me to your libraries which change the implementation of the language to the point where an if statement doesn't fire when the expression is True?
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:26:18 PM
#35
I couldn't parse how you wrote the sentence earlier tbh
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:25:50 PM
#33
ChromaticAngel posted...
If you see this code there is a 99.9999% chance the guy who wrote it is a moron OR it is the result of bad deprecation/maintenance of legacy code.

More like:

if ((the guy who wrote it is a moron OR it is the result of bad deprecation/maintenance of legacy code) == True)
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicWhy are young men dropping out of society?
IllegalAlien
06/05/17 4:23:36 PM
#132
r/incels is hilarious and accurately depicts a segment of CE lmao
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:19:08 PM
#30
AlephZero posted...

I disagree

Despicable.

teepan95 posted...
faizan_faizan posted...
MutantJohn posted...
ChromaticAngel posted...
I've seen code that looked like this before

if (someBool == true)
{
// something
}
else if (someBool == false)
{
// something else
}
else
{
// something totally different
}

This is actually bad code that shows flawed logic. Scary.

Why? Looks fine to me.

Edit: Nvm. I'm an idiot.

As an idiot taking babby's first programming course, please explain what's wrong with this <_<

Try to imagine a situation where you hit the last else (that's what everyone else was trying to do earlier). It's the law of the excluded middle from logic.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:09:47 PM
#25
MJ_Max posted...
I Like Toast posted...
AlephZero posted...
but more readable

No

It's totally more readable. It usually parses into English a lot better (depending on how the variable was named).

It'll all be compiled down to the same thing anyway.

If you understand programming at all you know the semantics of a conditional evaluates a Boolean. Which means that if the conditional passes, the Boolean is True. It might be more readable for say, CS101, but for production code it makes you think that the programmer has a poor grasp of fundamental concepts...
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 4:02:23 PM
#21
AlephZero posted...
It's unnecessary but more readable. The compiler will turn it into the same assembly code anyway.

It's not really more readable at all. Please don't do this it gives off such a bad code smell.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicif (someBoolean == true)
IllegalAlien
06/05/17 3:30:25 PM
#2
Totally, I was just about to post it lmao
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicWhy are young men dropping out of society?
IllegalAlien
06/05/17 3:23:00 PM
#92
emblem boy posted...
clearaflagrantj posted...
GreatEvilEmpire posted...
clearaflagrantj posted...
STEM is a myth, Science and Math don't even get you a job anymore, half of Engineering doesn't guarantee anything, entry salaries are abysmal these days, ~40K.

The STEM shortage was a myth spread to create an oversaturated labor pool for companies to pick from. It worked.


The problem isn't STEM, it's people half assing STEM. You can bring a horse to water, but you can't make him drink it.

Only the hardworking people and outliers get what they want.

This is bullshit. Anybody that has earned a STEM degree has earned the right to a decent paying job, they have already worked hard enough. The problem is when they leave college they enter a job market that says "oh sorry best we can do is a 35K salary contract. No benefits." We have been told that if we work hard in school it will pay off for us, we have been lied to.




What's a decent paying job mean?

Man, going through my EE degree, it's not that difficult to half ass your way to the degree. I mean, ya you can get a job but it might not be the most technical job out there. I got a job in analog and some digital circuit design and thinking back to my classes, many classmates were for sure not strong in those areas.

Word. As someone who graded almost half a thousand students in the past year it didn't really hit me until the last final I graded that these students are actually perfectly okay with a C. I never really realized this and I graded harshly (held students to a high standard) since my school is well known for the program I'm in.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicWhy are young men dropping out of society?
IllegalAlien
06/05/17 3:21:04 PM
#91
Think about it, what jobs actually require basic (undergraduate) knowledge about Biology or Geology? Now take that half dozen list you've pre-emptively gathered and think about how many companies actually need a constant influx of new talent.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicMillennials are killing chains like Buffalo Wild Wings and Applebee's
IllegalAlien
06/04/17 10:00:10 PM
#12
Third topic in two days using the same fucking article. Low hanging fruit posters for fucks sake
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topicwhy the fuck is pizza hut so expensive now?
IllegalAlien
06/04/17 2:45:17 PM
#31
6 stuffed crust pizzas and """some""" wings, yeah no shit it's gonna be expensive dude.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicLooking at what happens to women when they get older legit terrifies me.
IllegalAlien
06/03/17 8:34:28 PM
#12
CE is nothing but alts and trolls nowadays, it's sad really.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicI am officially moving out!
IllegalAlien
06/03/17 2:30:39 PM
#11
Meh I have a little bookshelf for video games and I think it looks just as nice as my real bookshelfs full of nice textbooks. Records are also cool for sure.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Topic500th poster gets anything on steam under $75
IllegalAlien
06/02/17 9:46:48 PM
#205
You can't simply BUY a 500 topic for $75 dollars
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicNew list of predatory journals being contracted by a firm
IllegalAlien
06/02/17 1:12:17 PM
#12
Some decent features at the journal level could be:

Centrality measures of citations, years in print, prominence of editors, etc. I think juxtaposed against real journals it wouldn't be too hard to discriminate tbh, at least a decent thing to look into as opposed to hiring qualified staff to hand sift.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicNew list of predatory journals being contracted by a firm
IllegalAlien
06/02/17 1:01:04 PM
#10
You have to be more edgy and talk about how X soft science is BTFO by Y researchers as stated by Z clickbait article.

There's probably a decent space here to use statistical learning methods to determine if a journal is trash or not however. Probably no market for it to be a worthwhile venture though.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicHow to make the high school diploma have value again?
IllegalAlien
06/02/17 12:58:34 PM
#42
Damn_Underscore posted...
You're telling me you remember everything you learned in school?

There's a huge difference between hiring some random question mark and hoping they can learn something like Finance and hiring someone who learned it before and can refresh their memory...

No, I don't remember the random tidbits of information I learned in Compilers, but I could read my big old Compilers book and get back up to speed in a week or so, whereas some random off the street would literally never understand the subject.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicHow to make the high school diploma have value again?
IllegalAlien
06/02/17 12:26:06 PM
#30
Why would you have to relearn it if you learned it in the first place? What the fuck are you talking about lmao holy shit I'm out.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicHow to make the high school diploma have value again?
IllegalAlien
06/02/17 12:20:54 PM
#27
Damn_Underscore posted...
IllegalAlien posted...
Damn_Underscore posted...
How will a bunch of classes in college make you a better manager?

Well if they're focused around business I think it could be pretty relevant right? Nah. Doesn't make sense to me.


Yes they are relevant.

But what you are learning is theoretical.

What exactly do you think managers do? You can't connect the relationship between say, a class in Finance with being a good manager?
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicHow to make the high school diploma have value again?
IllegalAlien
06/02/17 12:16:01 PM
#20
Damn_Underscore posted...
How will a bunch of classes in college make you a better manager?

Well if they're focused around business I think it could be pretty relevant right? Nah. Doesn't make sense to me.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicLiving on your own away from your parents.... it's hard isn't it?
IllegalAlien
06/01/17 11:33:19 AM
#43
You'll be fine. What the other posters are avoiding is the fact that you don't live in shit stain Nebraska but in fact in San Fransisco, California. You're likely younger and starting your career if you're making about 45k each.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicCan anyone here play guitar by ear?
IllegalAlien
05/29/17 9:01:39 PM
#18
Playing a power chord ballad by ear is way different than playing something like Joe Pass by ear.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: New York is expensive as fuck
IllegalAlien
05/29/17 6:21:11 PM
#9
Fuck long island. 1600 for a 1BR in the ghetto (shared with Section 8) is some hardcore bullshit. I really don't understand what the appeal of this place is, just get an apartment in the city and avoid the LIRR completely.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: Massachusetts is a shit tier state.
IllegalAlien
05/29/17 5:28:50 PM
#25
Anyways weed is great therefore MA is great. Big cities in the east coast and areas near them are all full of assholes there's no escaping it.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: Massachusetts is a shit tier state.
IllegalAlien
05/29/17 5:25:10 PM
#23
Hey posted...

Mmmmmm sure

I'd post my LinkedIn but I think I'm getting too loose with that with all you new people on CE. I'm sure your shack you rent with your McMinimum wage job is plenty fulfilling however.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: Massachusetts is a shit tier state.
IllegalAlien
05/29/17 5:22:40 PM
#21
Hey posted...
IllegalAlien posted...
Hey posted...
IllegalAlien posted...
Hey posted...
IllegalAlien posted...
Any state with recreational marijuana is by default a high tier state.

In the minds of druggies and failures, sure.

I'm better than you.

Not likely

What do you contribute to society besides shitposting on CE?

I have a job, house, and car. That's more than you.

Nah, still pretty sure I'm better than you.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: Massachusetts is a shit tier state.
IllegalAlien
05/29/17 5:11:46 PM
#19
Hey posted...
IllegalAlien posted...
Hey posted...
IllegalAlien posted...
Any state with recreational marijuana is by default a high tier state.

In the minds of druggies and failures, sure.

I'm better than you.

Not likely

What do you contribute to society besides shitposting on CE?
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: Massachusetts is a shit tier state.
IllegalAlien
05/29/17 5:03:56 PM
#17
Hey posted...
IllegalAlien posted...
Any state with recreational marijuana is by default a high tier state.

In the minds of druggies and failures, sure.

I'm better than you.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicTRUTH: Massachusetts is a shit tier state.
IllegalAlien
05/29/17 4:37:43 PM
#6
Any state with recreational marijuana is by default a high tier state.
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
TopicIs one piece worth watching?
IllegalAlien
05/28/17 11:32:11 PM
#9
Even though the action scenes can get too busy at times, it is def a series meant to be read not watched...
---
"Never argue with an idiot, they drag you down to their level, then beat you with experience."
Board List
Page List: 1, 2, 3, 4, 5, 6