|
PRADA SLUT posted:How do you make individual table cell a background color using CSS? I have a CSS file that notes style elements for the whole table, but is there a way to make individual cells a certain background color, without wrapping each of them in a div? I am a bit rusty with css but.. [probably wrong code was here] Tei fucked around with this message at 18:25 on Jul 17, 2017 |
# ? Jul 17, 2017 17:45 |
|
|
# ? May 17, 2024 08:31 |
|
PRADA SLUT posted:<th><div class="myClass">Text</div></th> https://jsfiddle.net/v71ynpms/
|
# ? Jul 17, 2017 18:24 |
|
PRADA SLUT posted:<th><div class="myClass">Text</div></th> You can put a class on the th element itself, you don't need a div.
|
# ? Jul 17, 2017 18:38 |
|
Ah, I was assigning the class to the div, not the th.
|
# ? Jul 17, 2017 18:39 |
|
I know the answer to this is probably "no" but... Does anyone know of a way to have javascript play an HTML5 audio element in Safari on an iOS device without requiring ANY user gestures? I know Apple is pretty thorough about this, but figure I would ask. Failing a fix for Safari, are there any browsers available for iOS that don't have the restriction of requiring a user gesture? Chrome doesn't seem to have the ability to disable that, and I'm just not familiar enough with the iOS browser situation to know of more. I ask because I'd built a website for an academic research team that works doing assessments with children, and much of the functionality of the website was tied to events handling sound files playing and ending, with the kids only being able to select an option after the sound files had finished playing. Originally the application was for desktop browsers, but they're moving to mobile and I'm hoping there's a relatively straight-forward fix.
|
# ? Jul 18, 2017 04:43 |
|
https://developer.apple.com/library...Animations.html The apple supported hack appears to be to have a single audio element, use a gesture to trigger it, then change the src on the fly to change which sound is playing. The other path may be an html5 app publishing framework like phone gap: https://phonegap.com/
|
# ? Jul 18, 2017 05:12 |
|
I will give the first one a try; unfortunately Cordova and phone gap wont work without substantial rebuilding. Thanks!
|
# ? Jul 18, 2017 10:51 |
|
Tivac posted:https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b Hooray , more package managers! Just what JS was missing!
|
# ? Jul 18, 2017 22:33 |
|
duck monster posted:Hooray , more package managers! Just what JS was missing! It's not a new package manager though, it's a CLI wrapper around npm?
|
# ? Jul 18, 2017 23:12 |
|
Tivac posted:It's not a new package manager though, it's a CLI wrapper around npm? To their point - what real problem does npx solve, and should it have been prioritized lower (or not at all)? The associated medium.com post just rambled about a bunch of things that had easy workarounds so it wasn't very clear.
|
# ? Jul 19, 2017 00:35 |
|
Helicity posted:To their point - what real problem does npx solve, and should it have been prioritized lower (or not at all)? The associated medium.com post just rambled about a bunch of things that had easy workarounds so it wasn't very clear. Web development in the current year.
|
# ? Jul 19, 2017 05:33 |
|
Helicity posted:To their point - what real problem does npx solve, and should it have been prioritized lower (or not at all)? The associated medium.com post just rambled about a bunch of things that had easy workarounds so it wasn't very clear. I think it allows to run tools without actually having to fight with the OS. Is a OS neutral way to run a tool. The more OS neutral ways to do things we have, the better, because it makes tutorials simpler because the same instructions will work in OSX, Ubuntu and Windows. Software developing is a different type of task than maintaining software. So It kind of make sense for tools designed for software developers to self-install and do that part automatically. You also want installing tools to be easier has possible, because is the first thing newbies need. You don't want the first lesson of a tutorial to be so hard, everyone quit in that part.
|
# ? Jul 19, 2017 13:29 |
|
So should I be putting time into learning Cycle.js/redux-cycles/FRP?
|
# ? Jul 19, 2017 14:02 |
|
prom candy posted:So should I be putting time into learning Cycle.js/redux-cycles/FRP? Understanding Cycle is worthwhile and will make you smarter but it's not something that you're likely to get a job using (afaik).
|
# ? Jul 19, 2017 14:07 |
|
The http://stateofjs.com/ survey is open again if you want to join me in expressing mild disdain about parts of the ecosystem
|
# ? Jul 19, 2017 15:45 |
|
I'm not looking for a new job necessarily, just looking to stay current and have an easier/more fun time building apps.
|
# ? Jul 19, 2017 15:46 |
|
Munkeymon posted:The http://stateofjs.com/ survey is open again if you want to join me in expressing mild disdain about parts of the ecosystem
|
# ? Jul 19, 2017 16:07 |
|
The best of javascript is that we will never be bored. Also the worst.
|
# ? Jul 19, 2017 16:19 |
|
prom candy posted:So should I be putting time into learning Cycle.js/redux-cycles/FRP? I was disenchanted with cyclejs when I was going through a beginning tutorial series and at the end they said in the *advanced* series I'll learn how to dispatch events from repeated HTML elements. if THAT is considered advanced then I'll never be able to use it in a team setting.
|
# ? Jul 19, 2017 16:24 |
|
Munkeymon posted:The http://stateofjs.com/ survey is open again if you want to join me in expressing mild disdain about parts of the ecosystem The random quotes are good. quote:Next time make a survey that works with Javascript disabled.
|
# ? Jul 19, 2017 16:26 |
|
huhu posted:The random quotes are good. Oh hey I didn't notice that earlier and oh hey wouldn't you know it the reload button doesn't work for me E: quote:You hate Microsoft. Is good too E2: for back-end frameworks I helpfully added C#, Python and Java Munkeymon fucked around with this message at 16:40 on Jul 19, 2017 |
# ? Jul 19, 2017 16:34 |
|
huhu posted:The random quotes are good. lmao "Thank You JS! Lost my job today because of you being so unfriendly, counterintuitive, impossible to grasp in big sophisticated code base." e: actual takeaways: I should probably get around to learning SASS Jest is underrated e2: stop capitalizing things Kekekela fucked around with this message at 18:16 on Jul 19, 2017 |
# ? Jul 19, 2017 16:57 |
|
Kekekela posted:JEST is underrated Jest is quite good, though unpleasant to use until they handle async tests that assert.
|
# ? Jul 19, 2017 17:35 |
|
I really like SASS, I've not used any other CSS preprocessors before, but I really enjoy using SASS.JavaScript Survey posted:JavaScript is a horrible language that sent software development back to the dark ages. It has taken over 20 years to get this unruly abomination of a language to a useful and enjoyable state.
|
# ? Jul 20, 2017 06:15 |
|
It's at a useful and enjoyable state? edit: if you're looking for a backend to play with, I've been doing Ratpack + Groovy/Kotlin at my new job. Such a nice, highly performing combination - highly recommended, especially if you've previously shrugged off the JVM because it's the JVM and Java can suck. luchadornado fucked around with this message at 13:13 on Jul 20, 2017 |
# ? Jul 20, 2017 12:58 |
|
Helicity posted:It's at a useful and enjoyable state? My OS teacher in the university was a cool cat guy, and he showed us some Java code written by a system programmer. It was very pretty, efficient, expressive and short. This was a long time ago, so I dunno now, probably you can write some quick rear end java code. What will stop you is the culture, Java culture is shaped by the corporate environment. And theres nothing bad with that, people on a corporate culture need a language they can trust, and Java has sacrificed himself for that
|
# ? Jul 20, 2017 13:34 |
|
Tei posted:My OS teacher in the university was a cool cat guy, and he showed us some Java code written by a system programmer. It was very pretty, efficient, expressive and short. This was a long time ago, so I dunno now, probably you can write some quick rear end java code. What will stop you is the culture, Java culture is shaped by the corporate environment. And theres nothing bad with that, people on a corporate culture need a language they can trust, and Java has sacrificed himself for that Elaborate jokes like https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition come from somewhere
|
# ? Jul 20, 2017 13:42 |
|
Tei posted:It was very pretty, efficient, expressive and short. This was a long time ago, so I dunno now, probably you can write some quick rear end java code. I agree that enterprise culture is a real detriment to the Java community, but there's no escaping that Java itself is a terse language. Efficiency and expressiveness are not traits you often hear in regards to it. Groovy, Kotlin, Scala, etc. were essentially designed to address these specific shortcomings. These languages all compile down to the same Java bytecode and interop is extremely good with some of them, so there is less a reason to intentionally limit yourself. That enterprise FizzBuzz is amazing
|
# ? Jul 20, 2017 14:26 |
|
So at the new gig, they wanted me to learn Semantic-UI as their style/widget framework to use going forward. After fiddling with it for a few days, here is my trip report. Pros: - it's SUPER pretty - it's not Bootstrap - once you get used to the "semantic-ness" of the syntax, it makes total sense. e.g. code:
- did I mention it's pretty? Cons: - it's SUPER persnickety about you using it's theme system. Even something simple like overriding the font for the entire site has to be done in the theme, or you will be in hell. - same thing with colors - every time you update the theme, you have to recompile semantic with gulp build in the semantic directory. This makes your initial dev cycle when you are trying to get base styles set up go reeeeeaaaaalllllllyyyyyy slooooooooooooooooooowly - it's fairly heavyweight when it's all said and done. You get a lot, but you pay for it. So there you go. http://semantic-ui.com
|
# ? Jul 20, 2017 14:41 |
|
HaB posted:- every time you update the theme, you have to recompile semantic with gulp build in the semantic directory. This makes your initial dev cycle when you are trying to get base styles set up go reeeeeaaaaalllllllyyyyyy slooooooooooooooooooowly You could probably change the gulpfile yourself to use some watchers and auto-build directly into your project folder.
|
# ? Jul 20, 2017 16:14 |
|
Helicity posted:I agree that enterprise culture is a real detriment to the Java community, but there's no escaping that Java itself is a terse language. Efficiency and expressiveness are not traits you often hear in regards to it. Groovy, Kotlin, Scala, etc. were essentially designed to address these specific shortcomings. These languages all compile down to the same Java bytecode and interop is extremely good with some of them, so there is less a reason to intentionally limit yourself. I think I know what you're saying but this is probably the first time I've heard Java called 'terse'!
|
# ? Jul 20, 2017 16:51 |
|
Thermopyle posted:I think I know what you're saying but this is probably the first time I've heard Java called 'terse'! Yeah I wondered about that too, figured he meant there's not many language features so the code has to be extra verbose with factory-factories and annotations all over the place
|
# ? Jul 20, 2017 18:27 |
|
HaB posted:
Maintaining this kind of code is a nightmare. Stuff like this is great for getting stuff online quickly, but it's not scalable.
|
# ? Jul 20, 2017 18:59 |
|
prom candy posted:Maintaining this kind of code is a nightmare. Stuff like this is great for getting stuff online quickly, but it's not scalable. Why?
|
# ? Jul 20, 2017 19:21 |
|
Your class names should describe what something is, not how it looks. When you have to make changes across lots of different areas of a site it makes it really difficult if everything has a ton of class names, and even more so when it's hard to tell which class names are related to which larger overall concept. In my experience, systems like BEM are way better for creating CSS that scales. Your HTML says what things are, your CSS determines how they look.
|
# ? Jul 20, 2017 19:39 |
|
prom candy posted:Your class names should describe what something is, not how it looks. When you have to make changes across lots of different areas of a site it makes it really difficult if everything has a ton of class names, and even more so when it's hard to tell which class names are related to which larger overall concept. We had a developer that named everything generic like <button class="btn lrg org left"/> and it's been a night mare to deal with. He also made a bunch of generic jquery listeners with things like $("body").on("click", "div > ul >li", function....) that's made certain parts of our application a nightmare to debug. This was all before we started code review (this stuff gets slapped down quickly) as well as before we started using Less to help out with regurgitating styles.
|
# ? Jul 20, 2017 19:55 |
|
We had a developer who did all that stuff too, and it was me. This is all stuff that seems like a really great idea until you have to scale it or maintain it.
|
# ? Jul 20, 2017 20:58 |
|
Ahz posted:Why? Theres a lot of problems with something like this. - How easy is to find documentation if it breaks?, because it will break, and if theres zero hits in google searching for soultions you are alone. - What happens if you need a feature, and it don't provide, and you are forced to dig into the core, how it works, and write hacky code? is is expansible in a reasonable way. - You don't need to turn css into a programming language because you already have a programming language: javascript - Do this mean that the logic of the page is in two difference places? the css and javascript. What happens if they disagree? - How portable is this stuff. If you work on this for 10 years, will other company hire you and consider these 10 years valuable? - Ok is terse, but is readable by anyone other than the guy that wrote it? Edit: Or maybe not, and I am completely wrong. Tei fucked around with this message at 06:42 on Jul 21, 2017 |
# ? Jul 20, 2017 21:45 |
|
It's a bit fruity if you are used to CSS Grid, which pretty much everything supports now.
|
# ? Jul 20, 2017 22:04 |
|
|
# ? May 17, 2024 08:31 |
|
what's wrong with just using flexbox? It's easy to use if you plan ahead.
|
# ? Jul 20, 2017 22:52 |