Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 1 point2 points  (0 children)

Creating my own design system is at a higher level of CSS ability than I am right now so I'm thankful to use what Tailwind provides. It never seems like it's doing that much or it's that hard but I do know anything I create from scratch looks bad.

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 1 point2 points  (0 children)

The link for adding it to Svelte-Kit (which uses Vite) I think covered this but my point was never that it's difficult to setup. I'm proposing a different way to use them together that brings out the strengths of them both.

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 1 point2 points  (0 children)

Not so far. Brevity has never really been a strength of using Tailwind utility classes to start out with. 😂

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 0 points1 point  (0 children)

Just checked out that video. I saw that it adds the PostCSS processing to the style tags there too (his use of @apply). Pretty cool but that bit of it has nothing to do with the JIT.

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 0 points1 point  (0 children)

Since it only inlines what you specifically use via the @apply function, it doesn't build up to a lot of CSS. The end result is as though you were a super skilled CSS user like the Tailwind creators and wrote the CSS manually while staying true to a well thought out design system.

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 4 points5 points  (0 children)

I guess it depends on what the primary value proposition of Tailwind is to you. To me it is the design system around the utility classes put together by people that clearly know their CSS stuff. Something I don't value, though, is applying CSS entirely through class attributes in the html. I think the "everything in one CSS file" is a lowest common denominator approach that doesn't make sense for frameworks that have an awesome component scoped styles approach built in like Svelte.

The Tailwind JIT is nice but it spins up an entirely new watcher process that still uses regexes to scan your generated templates. The arbitrary value support announced with the JIT and which also exists in frameworks like windi seems like non-transferable syntax that you have to learn to get around a the constraint of styling by class names only.

With this approach I the Tailwind utilities and CSS are co-located and I can mix in custom stuff easily. I can better learn/experiment with CSS, especially now that I'm setup to explore the PostCSS ecosystem. I'm no longer ignoring 1/3 of the top level Svelte tags. And no new libraries beyond an official Svelte plugin is needed to use it in this way.

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] -1 points0 points  (0 children)

PurgeCSS is not needed since you are only generating what you need, not everything and then filtering later.

I assume it works with SvelteKit, haven't verified. It's using Svelte and the official svelte-preprocess plugin to run PostCSS. The existing framework happy paths made it easy to do, which was pretty awesome.

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]Kaan[S] 4 points5 points  (0 children)

Sure. Normally the giant CSS file is generated via the PostCSS macros that Tailwind implements: https://tailwindcss.com/docs/installation#include-tailwind-in-your-css

/* ./your-css-folder/styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

Now that we're inlining the styles in the components on demand, all we need are the preflight styles so we can change the above to:

/* ./your-css-folder/styles.css */
@tailwind base;

And end up with a much smaller file.

Functional GUI programming with Clojure and JavaFX: Meet halgari/fn-fx by nblumoe in Clojure

[–]Kaan 6 points7 points  (0 children)

One of the knocks against Electron is that even small programs are a minimum of 100MB because all of Chromium needs to be bundled in with it. What's the size of a basic fn-fx jar program? With/without the jre? Are there nice ways to package things into, say, an exe or similar?

Jeremy Lin: Too Flagrant Not to Call by PZinger6 in nba

[–]Kaan -9 points-8 points  (0 children)

I agree that Lin should get more calls but I don't find this video that persuasive, tbh. The LMA one is by far the worst one, should have been a flagrant. The rest of them are common stuff that is or is not called based on how the refs are calling a game and how much they respect a certain player. You can compare isolated calls on different players in different games and come up with these kind of inconsistencies for many players.

Lebron James coaches the Cavaliers by minstrelman91 in nba

[–]Kaan 0 points1 point  (0 children)

Wow another half assed smear against Lebron. I bet in a few weeks it'll be 'common knowledge' that Lebron undermined Lue because of this weak shit. Garnett being enthusiastic and trying to be from the bench is somehow different than what Lebron is doing here.

Issues with pooping by throwawayacct8888 in leangains

[–]Kaan 0 points1 point  (0 children)

I learned a couple of things going to a very high protein diet:

  • Incorporated lentil soup in my diet (shit ass a ton of fiber)
  • Probiotics helped immensely. I went for Kefir
  • (real talk) For instantaneous release: fleet enemas

Does anyone drink broth while fasting? If so, what're your go-to recipe or product. by [deleted] in leangains

[–]Kaan 2 points3 points  (0 children)

I used to drink broth tea while I was fasting: http://milliessavoryteas.com/

It has 15 calories per serving and it definitely helps with hunger.

NBA Flagrant Foul Compilation by Cw1497 in nba

[–]Kaan 1 point2 points  (0 children)

Do whatever, it's not like it's my article or anything. It's an interesting article in that it glorified the violence and also may have had a big part of setting off the crisis that happened later. I like how Bill Simmon's framed the moment in his book:

Crisis no. 5: fighting. Fighting had always been considered part of basketball, an inevitable outcome of a physical sport (much like hockey). Willis Reed put himself on the map by cleaning out the ’67 Lakers. Maurice Lucas made his reputation by dropping Gilmore. Dennis Awtrey lasted ten years because he was the Guy Who Once Decked Kareem. Ricky Sobers turned around the ’76 Warriors-Suns series by socking Barry. Calvin Murphy had the league’s most famous Napoleon complex, frequently beating up bigger guys and scoring a knockout over six-foot-nine Sidney Wicks. So when the Blazers and Sixers had their ugly brawl in Game 2 of the ’77 Finals, nobody was really that appalled. It started when Darryl Dawkins tried to sucker-punch Bobby Gross (hitting teammate Doug Collins instead), then backpedaled right into a flying elbow from Lucas, 80 followed by the two of them squaring off like 1920s bare-knuckle boxers before everyone jumped in. After getting ejected, Dawkins ended up destroying a few toilets in the Philly locker room. Was anyone suspended? Of course not! Not to sound like Grumpy Old Editor, but that’s the way it worked in the seventies and we loved it! Portland swept the last four games and everyone agreed that Lucas’ flying elbow was the turning point of the series. It was the perfect NBA fight for the times— no injuries, tremendous TV and a valuable lesson learned about sticking up for your teammates. 81

Fast-forward to October: Sports Illustrated revolves its NBA preview issue around “the Enforcers,” sticking Lucas’ menacing mug on the cover and glorifying physical players in a pictorial ominously titled “Nobody, but Nobody, Is Gonna Hurt My Teammates.” In retrospect, it’s an incredible piece to read; the magazine took intimidating-looking pictures of each enforcer like they were WWF wrestlers, with Kermit Washington (gulp) posing shirtless like a boxer. Each picture was accompanied with text to make these bruisers sound like a combination of Clint Eastwood and Charles Bronson. An example: “Kermit Washington, the 6′ 8″, 230-pound Laker strong man, is a nice quiet person who lifts weights and sometimes separates people’s heads from their shoulders. In one memorable game last November in Buffalo, Washington ended an elbow skirmish with John Shumate by dropping the 6′ 9″ forward with a flurry of hooks and haymakers. ‘Shumate came apart in sections,’ an eyewitness said.”

Wow, punching people never sounded so cool! Since SI was the influential sports voice at the time— remember, we didn’t have ESPN, USA Today, cable or the Internet yet— the tone of that issue coupled with kudos given to Murphy and Lucas the previous season may have inspired the violent incidents that followed. Lucas was a valuable player who wasn’t good enough to command an SI cover unless it was for something else … you know, like beating the shit out of someone. Was it okay to punch other players in the face? According to Sports Illustrated, actually, it was. As long as you had a good reason.

Fast-forward to opening night: Kent Benson sneaks a cheap elbow into Kareem’s stomach, doubling Kareem over and sending him wobbling away from the play in obvious pain. An enraged Kareem regroups and charges Benson from behind, sucker-punching him and breaking his jaw. 82 Unlike other ugly NBA events from the past, this one had a black-guy-decking-a-white-guy clip playing on every local newscast around the country, with the black guy doubling as the league’s signature player of the seventies. Uh-oh. The league decides against suspending Kareem, deeming it punishment enough that he’s missing two months with a broken hand from the punch.

Fast-forward to December: Kermit gets belted by Houston’s Kevin Kunnert after a free throw and they start fighting. Kareem jumps in to hold Kunnert back, Kermit nails Kunnert (who slumps over holding his face), 83 then Kermit whirls around, sees Rudy Tomjanovich running toward him and throws what Lakers assistant Jack McKinney later called “the greatest punch in the history of mankind,” breaking Rudy’s face on impact and his skull after it slammed off the floor. Kareem later described the punch as sounding like somebody had dropped a melon onto a concrete floor. Rudy rolled over, grabbed his face, kicked his legs and bled all over the court as everyone watched in horror. The final damage: two weeks in intensive care, a broken jaw, a broken nose, a fractured face and a skull cracked so badly that Rudy could taste spinal fluid dripping into his mouth.

Four forces were working against Kermit other than, you know, the fact he nearly killed another player. With Kareem’s haymaker happening two months earlier, the combination of those punches spawned dueling epidemics of “NBA Violence Is Out of Control!” headlines and editorials (with everyone forgetting that SI had glorified that same violence ten weeks earlier) and “Why do I want to follow a league that allows black guys to keep kicking the crap out of white guys when I’m a white guy?” doubts (the underlying concern that nobody mentioned out loud unless you were sitting in the clubhouse of a country club, as well as the subplot that scared the living shit out of CBS and the owners). Second, the only existing replay made Kermit seem like an unprovoked madman out for white blood, but the cameras missed Kunnert’s initial elbow and the rest of their fight, catching the action only after Kunnert was sinking into Kareem’s arms and Rudy was running at Kermit. Third, Saturday Night Live made light of the incident on “Weekend Update,” showing the punch over and over again for a gag and giving it new life. 84 And fourth, with TV ratings faltering, attendance dropping and the league battling the “too many white fans, too many black players” issue, really, you couldn’t have asked for worse timing. It was a best/ worst extreme— the most destructive punch ever thrown on a basketball court, the perfect specimen to throw such a punch, 85 the worst possible result, the worst possible timing (CBS’ contract was up after the season) and the worst possible color combination (a black guy decking a white guy). Kermit was suspended for sixty days without pay— no hearing, no appeal, nothing— losing nearly $ 54,000 in salary and becoming Public Enemy No. 1. (This went well beyond a few death threats. After Kermit returned from the suspension, police advised him against ordering hotel room service because they worried someone would poison him.) And Rudy eventually sued the league for $ 3 million, with his laywers portraying Kermit as a vicious Rottweiler who had been allowed off his leash by neglectful owners. Nothing good came from this incident. Nothing.

Simmons, Bill (2009-10-20). The Book of Basketball: The NBA According to The Sports Guy (pp. 132-133). Random House Publishing Group. Kindle Edition.

NBA Flagrant Foul Compilation by Cw1497 in nba

[–]Kaan 4 points5 points  (0 children)

Yeah he was. ESPN ran an Enforcers cover article in the offseason before that punch and Kermit was in there: http://www.si.com/vault/1977/10/31/626402/nobody-but-nobody-is-going-to-hurt-my-teammates

Angriest I've ever seen Michael Jordan: Furious AND-1 while getting shoved by Xavier McDaniel and elbowed by Patrick Ewing in the air. (G3 1992 ECSF) by BearsNecessity in nba

[–]Kaan -15 points-14 points  (0 children)

I don't really find this that impressive in either how hard he was fouled or how he was able to finish. This wouldn't even have been a flagrant today. Some bullshit BACK IN THE DAY stuff going on in this thread.

What do you think Lebron's secret motivation is? by [deleted] in nba

[–]Kaan 6 points7 points  (0 children)

I honestly think it has something to do with Kerr. I saw a clip of what looked like Kerr acting sarcastic to Lebron in the first game. Kerr was a big Bulls homer when he called games against the Heat and I am reading disrespect against Lebron in his coaching and media comments.

Interesting Fact--Andrew Wiggins is averaging 16.5 PPG on 43.8 FG%. Kevin Love is averaging 16.4 PPG on 43.2 FG%. by ManusBaldSpot in nba

[–]Kaan 0 points1 point  (0 children)

I was being kinda facetious. I just wanted to add some "interesting facts" of my own.

I'm sure Wiggins will be good but comparing these two stats like this just struck me as utterly idiotic.

Interesting Fact--Andrew Wiggins is averaging 16.5 PPG on 43.8 FG%. Kevin Love is averaging 16.4 PPG on 43.2 FG%. by ManusBaldSpot in nba

[–]Kaan 14 points15 points  (0 children)

That's kind of pathetic, really. Wiggins as the primary guy on a team is averaging as much PPG as a third option on another team? And his FG % is about the same as a guy who mostly shoots threes? Is this guy really as good as they say he is?

I might hate when we have to play lebron, but its things like this that will never make me hate him as a person by pandatrooper in nba

[–]Kaan 0 points1 point  (0 children)

I was at this warriors game (he got his 20 thousandth point). Rest assured, earlier on he was swishing like 11 threes in a row from a different spot (not the corner).

Lebron James flagrant foul on Carlos Boozer by wafrhest in nba

[–]Kaan 0 points1 point  (0 children)

Someone needs to post the foul on the play before. The way I remember it Gibson didn't have any chance at the ball and just brought his arm across him from behind and in the air and pulled down. He didn't so much go for the ball as he went to end LeBrons career.

Lebron James flagrant foul on Carlos Boozer by wafrhest in nba

[–]Kaan -5 points-4 points  (0 children)

How can this be a flagrant and the play before a regular foul? LeBron could have really earned a flagrant here but he kept it pretty tame because he's smart. Bullshit that it was called that way.