6 ms·
Hack – CSS framework for Hackers
- jafingi 10y agoWe already have a Hack: http://hacklang.org/ http://hacklang.org/
- sanqui 10y agoPlease don't call your project "hack".
- vortico 10y agoWhy?
- kowdermeister 10y agoSounds like a messy stuff hacked together in an hour :) Definitely funny and catchy though.
- dozzie 10y agoBecause there is a programming language (PHP dialect) called that.
- EGreg 10y agoBut this isn't a programming language. Should Apple have not called their notebook MacBook Air because of Adobe AIR?
- dozzie 10y ago> But this isn't a programming language. It's in field that's close enough. What will you say after, "I wrote my website in Hack and Hack"?
- qwertyuiop924 10y agoI would instead say 'I wrote my website in Hack, and used Hack CSS (not related)' Not optimal, but it works.
- RobertKerans 10y agoParticular to this project 'hack' in CSS generally refers to literally adding hacks in to force something to work, it's not a synonym for tinkering. If the whole project is chock-full of `! important` statements and specific `-moz/-webkit/-ie` prefixes to selectively cover specific bugs, then maybe it would be well-named (if horrific). I get why it's called 'hack', but given that in the context of CSS, 'hack' is almost always perjorative – referring to awful, unclean things you do to bend CSS styling to your will – it's not a very good name.
- BellsOnSunday 10y agoIt's a name which is confusing and difficult to search - almost as bad as calling the (Haskell) build tool 'stack', but with added negative connotations.
- damptowel 10y agoAlso, give it a unique name that's easy to websearch. E.g. No single char names, no common verb or noun, etc.
- component 10y agoThis is more of a collection of other libraries into "one". From what I saw it doesn't provide much to be called a framework. Or am I missing something?
- qwertyuiop924 10y agoThat's pretty much what CSS frameworks are: a set of pre-built items you can use to build your site, so you don't have to do it all yourself. Don't ask me why, ask whoever wrote the first CSS framework.
- Illniyar 10y agoMy css is full of hacks to get it to work. Not sure what a css framework for hackers would even look like.
- the_duke 10y agotl;dr: "hack.css is a superset of markdown.css with more common UI utilities plugged in." Well... move along please, nothing to see here.
- dikei 10y agoPfff. What kind of hackers use pre-made framework ?
- qwertyuiop924 10y ago12 year olds, who think they're hackers, because they kind of know HTML/CSS/JS
- groovy2shoes 10y agoWe used to call them script kiddies, or even more jokingly, in some circles (or maybe even just my circle...), scrip kitties. But I agree with the sentiment. Frameworks seem pretty much antithetical to the spirit of hacking.
- qwertyuiop924 10y agoWell, yeah. But I wouldn't say that frameworks are INHERENTLY antithetical to the sprit of hacking. A framwork approximating a library, like Mithril, provides a useful set of abstractions and code for building your project. What IS antithetical to hacker sprit is frameworks that like rails that believe that there is one way to do it, only one way to do it. And if you would like to write or organize your code another way, shut up, you're wrong. Not that that's necessarily bad, but it's directly counter to the hacker spirit.
- groovy2shoes 10y agoNah. Hackers invented NIH syndrome! ;) (I don't know anything about Mithril, so I can't comment. Everything I've ever used that's a "framework" rather than a "library" tends to be pretty restrictive, and I feel like many frameworks do all the fun stuff for you, leaving you with just the boring stuff to do).
- qwertyuiop924 10y agoMithril defines a vdom, routing, a $.ajax style XHR request, a few handy wrapper functions, an mvc-style structure for your apps, and a rendering loop that knows about ajax, and can be integrated with external libraries, so it only rerenders when necessary, and not while the application's state is inconsistant. However, the VDOM implementation, and kinda-sorta-not-really the MVC structure is all that's required. Yes, you can even write your own render loop if you want. Although why you'd want to do that is beyond me.
- kimshibal 10y ago1t'5 n0t h4c|< En0ug|-|
- elsurudo 10y agoSome of this is nice, but I don't get why you would want your output to look like markdown _before processing_. Why can't the headings be headings, without the "##"s etc.
- bobwaycott 10y agoBecause 1337 hackers don't even see the code.
- qwertyuiop924 10y agoBecause to some of us, including me, actually, that kind of markdown markup is quite pleasing to the eye, as well as providing addtional visual queues. You can never have too many of those, provided they are well designed.
- kowdermeister 10y agoNo margin on mobile version of the site. Not really convincing if basic typography is ignored. http://m.imgur.com/3uzsU8p http://m.imgur.com/3uzsU8p
- joshka 10y agoSome more info could be useful at https://github.com/egoist/hack/issues/6 https://github.com/egoist/hack/issues/6
- 0x142857 10y agoI mean, it's just cool for me to use this in websites of my projects.
- Kinnard 10y agoI think it looks good.
- Tobold 10y agoIs there a good howto for these "CSS frameworks"? I never used one and everyday there is another one on HN, confusing me with all its features xD
- 0x142857 10y agoI personally don't use the others too, I made my own :)
- dlsym 10y agoWait, didn't we install frontend stuff like css frameworks via bower? I feel kinda out of the loop.
- zongitsrinzler 10y agoEverything is on npm now
- nol13 10y agoim so confused :/
- Bahamut 10y agoWithin the past year or so, the frontend community has chosen npm to deliver frontend dependencies.
- roddux 10y agoFor what possible reason? I'm eternally out of touch with what mainstream front-end devs seem to think is a good idea.
- nilliams 10y agoBecause npm is a package manager that most devs already need present for their front-end build step (to install their deps for gulp/grunt/browserify etc) , and bower is an 'extra' thing that addressed a need that no longer exists.
- nol13 10y agogreat now im even more confused :(
- dikei 10y agoBecause you need npm to install bower.
- mikegioia 10y agoI think the trend of front-end projects not providing a compiled `dist` folder with the assets for web inclusion to be a bad idea. This requires me to NPM install this "front-end code" (no Bower) and then add this Gulp compilation to my build. What happened to adding a `dist/hack.min.css`? Why no Bower?
- insin 10y agoThe README contains a link to the built version on npmcdn: http://npmcdn.com/hack http://npmcdn.com/hack
- mikegioia 10y agoYea, but how does that help me in my dev projects? The nice thing about Bower/NPM is that you can pull repos at specific versions or pull in new versions of a project. Adding a line to my build script to include a file at (say) `./vendor/hackcss/dist/hack.min.css` is a lot easier than having to run his Gulp compilation script. CURLing or including this public link isn't really an option :/
- insin 10y agoThen I didn't understand the complaint, as this does include a dist/ folder in the npm package (which is also what npmcdn uses), so you'd just npm install it as normal :)
- qwertyuiop924 10y agoPlease stop calling your project '<x> for hackers.' It's annoying, regardless of whether your project shows any of the concepts or ideals associated with hackers (either kind). Which most of these projects don't. Besides, it's a trend that's really easy to satirize. Here's a fun game: describe an "os for hackers." See how long it takes for the person you are talking to to realize you're describing ITS. You win if the person fails to realize this, and actually says they would want to use said system today. For bonus points, cart in a PDP-10: their new 'working environment'. :-D
- groovy2shoes 10y agoITS was good. For something a little more recognizable (and probably more achievable on current hardware), MS-DOS was actually pretty good from the hacker's point of view (and FreeDOS continues that legacy). I say this because DOS was an OS that didn't get in your way. No, it didn't afford you any conveniences, really. It gave you a (shitty) file system, command line, program loader, a handful of utilities, and practically nothing else. Not exactly user-friendly. However, it also gave you completely unfettered access to the underlying hardware. The Intel reference manuals and a good assembler, and you could do literally anything. Since it was single-tasking, once your program was loaded, it had complete control and owned the entire physical address space. There was nothing to prevent you from calling into the BIOS, or doing I/O willy-nilly to ports, peeking/poking randomly into memory, etc. There's a reason why several OS's were bootstrapped on top of DOS, including Windows: it gave you just enough conveniences that you didn't have to start from total scratch, but it did so little that it never got in your way or otherwise prevented you from doing whatever you wanted. I occasionally fire up FreeDOS on an old P2 or in a VM and just tinker. If I were to produce a real product, I'd obviously be better off writing something for Linux or BSD kernelspace, but for exploring the way hardware gets programmed on its lowest level, DOS is pretty indispensable. I'd liken the difference between low-level programming on DOS and the same on Linux/BSD to the difference between using an interactive interpreter and a batch compiler. It really can enable low-level experimentation in much the same way. Anyway, ITS was the bee's knees.
- qwertyuiop924 10y ago
- shrugger2 10y agoThere are too many things for hackers, and there are too many things called 'hack'
- TomHack1981 10y agoHello & Thank you : The article is really awesome. Sometimes really urgent to find or hire a hacker. We need to safe and protect our data and information from our cyber crime. For ethical hackers may please visit - http://hackerslist.co/ http://hackerslist.co/ here are a best team of professional ethical hackers & feel free to contact here http://hackerslist.co/ http://hackerslist.co/
- c4pt0r 10y agoI like the idea, I think the author is trying to create a dead-simple css framework, but dont call it 'hack' please.
- dismal2 10y agoSurprised by all the negativity. I like the look, good job! Feels like you could use it for some cyberpunk inspired dashboards.
- dismal2 10y agoSurprised by all the negativity. I like the look, good job!
- allthetime 10y agoThere already is a CSS framework for hackers, it's called CSS.
- oldboyFX 10y agoI was 99% sure this was going to be another one of those jokes like http://vanilla-js.com/ http://vanilla-js.com/. It's kind of sad that it isn't.