@OctavianDamiean If you were dealing with these libraries often, you'd probably write a simple boiler plate to do things you do often with the call of methods and reuse these methods in multiple projects
I have been trying to work this out with no luck.
I have a variable that scales up and down from 221 to 915. When the variable is at 221, id like it to equal 0, and when it reaches 915, i'd like it to equal 88. So, 221 incrementing up to 915 will be represented by 0 incrementing up to 88. decima...
I'm working on a one-page site, but haven't been able to figure out how to make the menu know where I am and highlight that section based on position on the page.
For example, on this site, whether you scroll down or click on the navigation, it automagically highlights what section you're on in ...
Or really, anything I try to write, I write with nearly no privacy so you (the developer) can use and abuse it in whichever way you like, but I do provide optional sugar on top
@phenomnomnominal btw, if you want to use impress.js, see the "impress.js builders" out there, it's really long and tedious to do everything by yourself (I know it, I did it for my final year presentation)
Exactly. And if you can play with the chosen layer, and I mean really play with it (change how it works and shit), you basically take charge of all the higher levels as well
@Zirak If you're playing with the lower levels to boost the higher levels, you're ultimately programming in the lower levels and thus you lose any advantage you'd have just programming in the higher levels
@OctavianDamiean Yeah, but if you spend all your time extending your possibilities in the higher levels by working in the lower levels, it's the same thing as working purely in the lower levels for what concerns time
@Neil Well, you spend some time in the lower levels to extend your possibilities in the higher levels so you don't have to come back ans spend more time in the lower levels.
Don't get me wrong, I'm not saying not to do so.. that's my whole point in fact.. You make methods to handle the things you don't normally change so that you don't have to do so everytime
I mean that's just how the IT engineering field works and always did. There's no unicorns and other magic creatures that power your software which automagically adapt to your needs, you obviously have to do it yourself if you are fortunate enough to work with a technology that is open source of course.
@Neil no, because it'd take more time to find a way to extend the high level without touching the low level, if the low level doesn't provide enough control
@FlorianMargaine That's one way to go about it that would take more time.. there is another way still, which is never trying to abstract.. that takes less time
@OctavianDamiean We're trained to work like that because of the obvious advantage in doing so, but someone mislead you if they told you it was because it is faster to write high level abstraction and low-level
@Zirak Let me give you an example. You have a method called "getConnection" which loads drivers, loads from a property file connection information, and queries a connection to the database and returns it.
You have the advantage that you can call that method and get the connection without worrying about the details after that.. however you cannot, for example, make getConnection also test the connection prior to making the connection first
@Neil All examples are irrelevant because they define a specific point in a system, not the system itself. But using your example, you build a different version of getConnection. That's not losing control. The fact you can do that shows you don't have that limit
@AmaanCheval the shit The best. This word is very interesting. The important part of it is without THE, an entirely different meaning applies. My teacher is shit= bad teacher. My teacher is THE shit = greatest teacher
@AmaanCheval the shit The best. This word is very interesting. The important part of it is without THE, an entirely different meaning applies. My teacher is shit= bad teacher. My teacher is THE shit = greatest teacher
@OctavianDamiean the shit The best. This word is very interesting. The important part of it is without THE, an entirely different meaning applies. My teacher is shit= bad teacher. My teacher is THE shit = greatest teacher
@Zirak In order to truly lose no control, you'd have to write a method "getDrivers" and another "getConnectionProperties" and finally "getConnection" passing both the drivers and the connection properties
If I wanted to perform some operation between getting the drivers and loading the conection properties, the only true way to do that is to make each call separate
You must say, "these instructions will always be run together", and therefore, by calling that method, you accept that you cannot call them in separate moments.
@OctavianDamiean No, abstraction period. Anything considered an abstraction is a limitation of one's ability to do everything you could without said abstraction
The best (as in, most easily understood) example of abstraction is garbage collection. You can have (a)no garbage collection at all (low-level), (b)automatic garbage collection (high-level), (c)automatic garbage collection with access to memory (low and high)
@OctavianDamiean If method C calls methods A and B, and A and B are hidden to caller of C, then yes, you've limited your ability to call A and B in any sequence at any time
If A, B, and C methods are all available, you've not performed true abstraction
I updated my code: jsfiddle.net/RF6df/48 "current" is now a class, not an ID. But now I can't close my container when I click on "current" thumbnail. I'm learning the hard way...
There's an interface for an individual 'slide' then there a (for lack of a better word) global interface where you can manipulate the whole infinite canvas