|
Serves you right for expecting sanity and logic.
I had gone for OPTION BASE 42.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I am so old school that I had my first serious programming education (I had some less serious before that...), it was in Pascal. For those who do not know: Pascal allows arbitrary index limts - an array may run from indexes 1900 to 2030, if that suits the task at hand. The index may also be of an arbitrary type, such as a Season enumeration with values spring, summer, fall, winter. So a Season-indexed array has four elements. And enumeration types are NOT named integer values; you cannot index that Season-indexed value with neither 0-3 nor 1-4 integers.
So when C came onto the scene, requiring all arrays to be indexed from 0, and integer indexes only, we shook our heads in disbelief. You cannot be serious??? Hello, we are in the late 1970s!
But we lost. C won, and array handling degenerated to 1950s style, in practically all algorithmic languages following C. Even in C# you have to cast a season to an int to use it as an index, and the year-indexed array, you, the programmer, must explicitly subtract the base year whenever indexing, to bring the index value down to zero based. Good grief! How many extra compiler code lines would it require, to make the compiler do that subtraction? After all: What have we got compilers for?
I my student days, we were joking: To a real programmer, 256 is a round number. But to a C programmer, 255 is even rounder, because he is zero based. ... Nowadays, base zero is all programmers know of, so they are not getting the joke.
|
|
|
|
|
I did some Pascal back in the day, and had forgotten about that feature. However I was soon seduced by the beauty of C.
|
|
|
|
|
Are mostly CSS related
I use a Bootstrap input group[^], an input with a fancy search box in it, and the search box is 1px higher than the input.
I copy-pasted it from the website, but it seems the 1px difference is there as well (in two out of four examples).
Never mind, can't seem to get it fixed as that's always the case with CSS.
Next problem, I use Vue.js with Vue-select, something like Select2, but it works nice with Vue.js.
The v-select works very nice, until I put it in a table.
Because, of course, tables always mess up all styling...
Again, can't seem to get it fixed.
Some dynamically created element gets a style of "width: 100%;", removing it (using the browser dev tools) fixes the problem, but it's not in a class or anything.
To quote an Australian acquaintance of ours... "FAAAAAAAAAAARK!!!!!!!"
Is there really nothing better than CSS?
It doesn't even have to be good, just better.
|
|
|
|
|
I feel your pain. Some things with Bootstrap (and other third party controls, like jqWidgets) I can't style correctly (particularly the width and height issues you mentioned) without overriding the class or id style with !important . The world of CSS is a mess, IMO.
[edit]At times, particularly when working on a 3rd party web application that I don't have control over the rendering but that provides the ability to specify a custom CSS, I've had to revert to using the "Copy Selector" feature of the Chrome debugger to get to the element that I need to style. [/edit]
|
|
|
|
|
Marc Clifton wrote: The world of CSS is a mess Yet it's all we have
|
|
|
|
|
|
I'm using SCSS, wouldn't want to type CSS without a preprocessor anymore, except for the simplest of applications
|
|
|
|
|
|
Unfortunately, if I don't do it no one does and my customer won't be happy.
I believe I may call myself "full stack" developer
|
|
|
|
|
I haven't done any serious web dev in a few years now.. but I remember how finicky Bootstrap can be a t times...
Have a look at w3.css, it might offer a better experience perhaps?
|
|
|
|
|
I'm using Bootstrap and it's too late to switch now, but I'll keep it in mind for a next project
|
|
|
|
|
Have a look at the css grid (see, e.g. [here^]) layout system, if you havn't. Some proponents of it think it is css done right, to which I tend to agree.
While traditional css layout references the conents themselve, which could intefer or mess with each other and is harder to control, the css grid method separates coordination from the content. It enables a user to create lot simpler, more accurate and flexible layout systems ...
|
|
|
|
|
I'm using Bootstrap grid, but that's not going to fix my 1px difference or the fact that a table messes up this third-party component
|
|
|
|
|
You can mix whatever grid system with css grid. css grid can be used either as a page level grid system or local grid system to construct controls, like the input group one, with ease (a three columns one row grid, but I haven't tried it). Hopefully it may solve your 1px off problem (I also experienced this problem before and haven't find it urgent enough to fix)
modified 28-May-18 2:41am.
|
|
|
|
|
You spelled FAARRRKKKK!!!!! wrong
|
|
|
|
|
|
Jörgen Andersson wrote: You spelled FAARRRKKKK!!!!! wrong
He faarrrkkkking well did and you got it right. Bloody Dutch bastards.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Crikey! I bought my first in about 1999, and it took months to get it configured, using extensive help from the ISP and the SonicWall support experts (not first level). This one's no simpler, and it didn't come with a manual. Why do they have to make these machines so difficult set up? All acronyms, no explanations, and online help that is utterly useless - true Microsoft copies. It's an amazingly powerful machine for protecting a network, but how does one tell if it's been set up right, when everything is written in a foreign language? Grrrr....
Will Rogers never met me.
|
|
|
|
|
I hate to say this, but ... it's our fault.
The people who write technical manuals are often the people who write the software, and most of 'em have difficulty stringing two sentences together, much less thinking like a user! It's easy to understand - for them - because it is an abstract of the software, rather than something genuinely written to help a novice. And that's probably because it's documentation, and that's "boring" so it gets chucked together with as little effort as possible.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I know how bad I'm when explaining technical things to non-technical people, so I constantly refuse to write documentation... The only kid of documentation I write is for fellow developers on the team...
|
|
|
|
|
Does your team need a technical writer ?
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
Desperately... Perfect in Hebrew... And with gift to persuade the boss for such trivial thing like documentation...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
My French is pretty good. Would that count?!
|
|
|
|
|
Only if you can do 10 out of this list under any conditions...
french food - Google Search[^]
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|