greptilian logo

IRC log for #friendlyjava, 2019-08-27

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
04:27 nanoz joined ##friendlyjava
05:41 nanozz joined ##friendlyjava
07:01 nanoz joined ##friendlyjava
10:15 nanoz joined ##friendlyjava
11:11 mr_lou Gawd I hate web....
11:12 mr_lou 5 minutes into this new webapp project, and it behaves silly.
11:12 aditsu I like web :)
11:13 mr_lou Put a div as the very first thing. Write "Hey there" in it. All fine and good. It's at the top. Then replace "Hey there" with "<h1>Hey there</h1>"... and now the whole fucking div gets a padding at the top.
11:13 mr_lou I hate web.
11:14 aditsu like this? https://jsfiddle.net/cv5bs34g/
11:15 mr_lou https://jsfiddle.net/wxhy041j/
11:16 mr_lou It's the whole green bar (i.e. the div) that gets a padding. Not logical.
11:16 mr_lou I rarily find web logical.
11:16 Jantz joined ##friendlyjava
11:16 aditsu no padding, but h1 has margins
11:17 mr_lou I set a green background color on the div to check its position. It's at the top when normal text is in there. But put h1, and the whole div jumps down.
11:18 aditsu h1 reserves some space above it
11:18 mr_lou Put margin and padding to 0 on the div, doesn't matter.
11:18 mr_lou Yes.... but that would just mean it should put space INSIDE the div... not outside it.
11:18 mr_lou I.e. the would be a bigger green space above the h1. Not a bigger white space outside the div.
11:20 mr_lou If I set margin and padding = 0 on the h1, then yes, it is "fixed". But I shouldn't have to bloddy do that - because it shouldn't matter what margin and padding any element inside the div has. It shouldn't affect the margin and padding on the div!
11:21 aditsu https://stackoverflow.com/questions/1762539/margin-on-child-element-moves-parent-element
11:23 mr_lou Well at least I'm not alone in my opinion then.
11:23 mr_lou Gimme J2ME instead any day.
11:24 nanoz joined ##friendlyjava
11:24 mr_lou Yea... if I set a border on the div, then it works.   O_o   www.makesnosense.com
11:25 mr_lou Web sucks.
11:30 aditsu https://jsfiddle.net/hsfw514j/
11:37 mr_lou Makes just as much sense as using a border.
11:39 aditsu it makes more sense, as you don't always want to have a border
11:42 mr_lou O_o  That has nothing to do with how little sense it makes.
11:43 mr_lou Needing to add overflow to avoid margin/padding on a div makes no sense.
11:43 mr_lou That's not what overflow is for.
11:46 aditsu your h1 basically overflows your div
11:50 nanoz joined ##friendlyjava
11:56 nanoz aditsu you have a written a book? on algorithms
11:56 nanoz i never knew that
11:57 aditsu what? no I haven't
11:57 nanoz the person name is same as yours
11:58 aditsu really? link?
12:00 nanoz downloaded from github but still that book is great
12:00 nanoz Aditya Y. Bhargava
12:00 nanoz https://www.manning.com/books/grokking-algorithms
12:00 aditsu my name is not Aditya
12:01 aditsu and definitely not Bhargava
12:03 nanoz hmm
12:03 nanoz sorry that you wrote the book
12:11 mr_lou aditsu, That would mean overflow: none should work, but it doesn't. But overflow: hidden works, which again makes no sense.
12:12 aditsu I don't think "none" is a valid value
12:13 nanoz its web
12:13 nanoz please use css3 for smart
12:13 nanoz ginx: grid-template
12:13 nanoz not sure what is the question.
12:14 aditsu mr_lou: hidden works because it still creates a new block formatting context
12:15 mr_lou Mandela Effect.....  I'm from a different dimension, and I can't adapt to the weird rules in this one.
12:20 nanoz its not mandela effect
12:22 mr_lou You would say that because you're from this dimension.
12:25 nanoz what made you to enter web world?
12:25 nanoz isnt that you foo only on embedded things.
12:25 * nanoz just curious
12:26 mr_lou Wasn't really a choice.
12:26 mr_lou You start the education as a computer scientist.
12:27 mr_lou But I probably should have been a farmer.
12:27 mr_lou Or a rock star.
12:27 mr_lou Now I can't even make 3 divs appear next to eachother without margin, using inline-block.
12:29 mr_lou https://jsfiddle.net/se1rouwj/
12:29 mr_lou Why are the space between those?
12:30 aditsu newlines and any other whitespace are treated as a space
12:31 aditsu https://stackoverflow.com/questions/5078239/how-do-i-remove-the-space-between-inline-block-elements
12:32 mr_lou $8-|
12:34 mr_lou That's not how web worked back in my own dimension.
12:34 mr_lou I find it odd that you think that's a normal acceptable behavior.
12:35 aditsu whitespace always worked like that, but inline-block didn't always exist
12:36 mr_lou The funny thing here is, that if you create a div with display: block, and you put a new line in it - then it won't show - because it's the same as saying there's nothing in it But have a new line after the div... and then it's a white space.....
12:38 mr_lou You're all confused in this dimension. That's what it is.
12:46 nanoz dude webassembly for you
12:48 mr_lou It reminds me of an episode of Twilight Zone.
12:49 mr_lou Poor guy finds himself in a world where all words slowly start to change and have new meanings.
12:49 mr_lou So he has to teach himself the new meanings of all words.
12:50 mr_lou https://www.youtube.com/watch?v=r7_xNK49RTs
12:51 mr_lou Amazing you can find anything online today.
12:58 nanoz go to codechef and foo
13:02 * nanoz codechef gui arent good
14:28 Jantz_ joined ##friendlyjava
16:51 Jantz joined ##friendlyjava
23:07 Jantz joined ##friendlyjava
23:12 Jantz https://pastebin.com/gLk7f5Tx
23:14 Jantz hello in this bit of code can someone please tell me whats going on with the 'name' parameter in the sayHello method, like in the main method is it calling the sayHello method and "David" and "Amy" are effectively being what'd??
23:15 Jantz and is sayHello(), actually a Class Method??
23:19 Jantz i can see that the 'name' String is being somethinged in the println method so whenever the sayHello method is called it is executed but what is the process called ?? passing?? calling?? im not sure
23:22 Jantz and in the static void sayHello(String name) method what is actually going here? is 'name' a what? a parameter thats being whatd?
23:22 Jantz on here*
23:43 pdurbin You are passing the string "Amy" as an argument to the sayHello method.
23:58 Jantz so when the sayHello("Amy") method is being called 'Amy' is somehow being passed in directly connected to the String name and println method??
23:59 Jantz like what is the compiler doing?

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode