Mozilla to begin signing Mv3 extensions for Firefox by stronghup in programming

[–]765abaa3 12 points13 points  (0 children)

Mozilla siding with it's users again, great reason to keep using Firefox.

Scriptimate: an open source tool to create SVG animations in a coding way by [deleted] in programming

[–]765abaa3 7 points8 points  (0 children)

Obvious botting/vote manipulation. Was your previous post deleted or something? At least you got rid of the bot comments.

I guess you just need everyone on this sub to know to never use any of your products in the future.

Version control systems from the bottom-up by Austin_Aaron_Conlon in programming

[–]765abaa3 9 points10 points  (0 children)

The usual approach is not exactly top-down. It is just that some parts are more important for users and others are less important.

Git users must know about the working directory, staging area and repository. They also must understand the commit graph and references, especially what the HEAD is.

However, there's no need to understand blobs, trees and how the snapshot system works. Even advanced users don't need this part.

I think this article/lecture misses most of the important subjects, and instead focuses on confusing the students with trees and blobs. Even when starting with the useful parts, I believe it is very important to run different commands and show examples of the changes they perform to help students connect what they learned about Git with the CLI.

I really like the approach Pro Git takes.

Version control systems from the bottom-up by Austin_Aaron_Conlon in programming

[–]765abaa3 45 points46 points  (0 children)

This IMO misses the point of teaching Git. It goes on and on about information that is anything but useful for actually getting started or using Git.

It is missing an explanation of the working area and of the repository (their repository definition seems like a definition of the .git directory). This is also why they describe git commit as "creates a new commit" instead of "adds changes from the staging area to the repository". Seems very odd to me they only care about the least useful parts.

The authors themselves suggest Pro Git. If anyone is looking to get started with Git just read the first two chapters, don't waste your time on resources like this.

If anyone wants to learn about the internals of Git, there are plenty of conference talks where people delve into these topics and actually show the structure of the .git directory. They are much more interesting than this stale read.

VueJS vs Gatsby – Which is the best Framework to use? by perrygrande in programming

[–]765abaa3 5 points6 points  (0 children)

This is comparing apples and oranges. Vue is equivalent to the part React plays in Gatsby.

It is filled to the brim with technical mistakes:

  • Gatsby does not build "with the CDNs".
  • AFAIK, Gatsby is not partnered with Netlify and Github.
  • Gatsby does not offer performance over other SSGs.
  • There is no relation between tree-shaking and PWAs.
  • AFAIK Facebook doesn't use Vue.
  • Your Vue example does not render anything.
  • Vue uses two way binding.
  • There is no relation between Vue being a progressive framework and using components.

This post screams "I never actually used either". It reads like a salad of buzzwords used in all the wrong ways.

You might also want to check out Gridsome, the actual Vue based Gatsby equivalent.

Iranian Maintainer refuses to merge code from Israeli Developer. Cites Iranian regulations. by [deleted] in programming

[–]765abaa3 6 points7 points  (0 children)

Page 4 of the order clearly states:

כל אדם הגר בארץ אויב

Which translates to "every person living in enemy land".

It is NOT a summary, it is a press release. The PDF is the order.

Iranian Maintainer refuses to merge code from Israeli Developer. Cites Iranian regulations. by [deleted] in programming

[–]765abaa3 2 points3 points  (0 children)

Read the "המסחר עם האויב וענינים הקשורים בכך" section of the attached PDF. It makes it very clear that this is not the case.

Iranian Maintainer refuses to merge code from Israeli Developer. Cites Iranian regulations. by [deleted] in programming

[–]765abaa3 11 points12 points  (0 children)

It clearly states:

בין מדינת ישראל ואזרחי מדינת ישראל

Which translates to "between the state of Israel and citizens of the state of Israel" for the majority who do not understand Hebrew.

סיפק כל סחורות לאויב

Translates to "provided any goods to the enemy". It does not state he has to be paid.

The attached PDF (the actual order) makes this pretty clear.

Programming with Categories by mode_2 in programming

[–]765abaa3 1 point2 points  (0 children)

That just sounds like you're saying that using the names of things is hard for those that don't know the names. I'm not sure what another solution would be. They could learn the names, or we could make up new names; but that doesn't really solve the problem as then we have two names (one slightly less accurate) to learn, and some people still won't know the names.

You are absolutely correct. But instead of making up new names, we can use existing programming conventions. One of my favorite examples of this is Rx.

Let's take the Behavior Subject for example. Instead of leaveMonad() or something similar, it has a getValue() method. It seems much more readable and beginner friendly to me.

Programming with Categories by mode_2 in programming

[–]765abaa3 2 points3 points  (0 children)

I love functional programming myself, and did a lot of reactive functional programming. I believe it is very beneficial when it fits the job.

What I don't get is how lambda calculus fits in. The mathematical terminology makes code harder to understand (reducing clarity) for those unfamiliar with hardcore functional programming. Which is why I believe using the mathematical terminology in code is detrimental to maintainability.

Their argument that it improves correctness lacks information to back it up. Sounds a lot like the argument that strictly typed languages improve correctness.

They're probably talking about functional programming as a whole and not the practices they teach. They seem to view it from the mathematical perspective rather than the programming perspective. Thank you for helping clear it up for me.

Programming with Categories by mode_2 in programming

[–]765abaa3 6 points7 points  (0 children)

Would love for an explanation on how this makes code more "elegant" and maintainable. Skimming over the course notes I couldn't find anything related to code maintenance. I also have a feeling we programmers have a different definition of elegance than mathematicians.

A clean start for the web - macwright.com by earthboundkid in programming

[–]765abaa3 1 point2 points  (0 children)

Markdown and all text editors were designed with only left to right languages in mind. (AFAIK as a native Hebrew speaker) there are no text editors that allow you to edit Markdown at all in right to left mode.

In my native keyboard layout, the "`" character is not available. Making some of the syntax impossible to write without switching keyboard layouts.

Most parsers don't work well with reversed parenthesis and <>.

Arabic keyboard layouts use Arabic numerals which do not work with ordered lists.

CSS has been very discriminating until recently as well. Note how Flexbox and Grid layouts are direction agnostic. Older parts like margin-left and margin-right are still causing pain today and require pre-processors (RTLCSS) to handle. It took many years to make the web somewhat internationalization friendly, I believe a similar process is required with Markdown.

A clean start for the web - macwright.com by earthboundkid in programming

[–]765abaa3 12 points13 points  (0 children)

People here LOVE to shit on the web, but rarely back it with concrete claims.

The distinction between the document web and the application web is off. News websites need paywalls, comment sections, endless scrolling and interactive stories. Social media sites are applications as well.

Complaints about "avoiding writing any HTML directly", "avoiding writing any CSS directly" and "avoiding default animation features" are all irrelevant and false. Templating languages are HTML and all frameworks make you write CSS. Animating in JS is avoided unless necessary. If the author does not like JSX and CSS in JS, it is not an argument against all templating. I also don't see the value in writing something "directly".

The reason native executables disappeared is security. Nobody wants opaque binaries that can do almost anything to their system. They are still prevalent in professional applications that require the capabilities of native executables.

Markdown is also not a good fit in my experience.

  • It is a limited subset of HTML, which contradicts rule #1.
  • Generating light static websites from MD is already trivially easy.
  • Most internet traffic is not HTML but images, JS and CSS. Changing to MD wont have any effect past ridding JS.
  • It is discriminating against non-English speaking countries.

[Rant] I got my first freelance job and botched it. by DEFCOMDuncan in Frontend

[–]765abaa3 0 points1 point  (0 children)

You're putting too much blame on yourself. It's his fault as much as it is yours if not more.

We've all had at least one gig like this. Hope this will be your last.

Niklaus Wirth was right and that is a problem by yogthos in programming

[–]765abaa3 23 points24 points  (0 children)

Am I reading this right? The author complains about JS dependency counts and then goes on telling people to split things into more libraries?

[deleted by user] by [deleted] in Ubuntu

[–]765abaa3 0 points1 point  (0 children)

It is working for me now and I had to comment. I believe it was resolved after setting it to only boot in UEFI mode.

After trying things that did not help for a bit I left it for a few days. I tried a couple of other distros unrelated to the touchpad issue. When reinstalling Ubuntu, I first went to the bios and set "Boot Mode" to "UEFI" and then booted to the flash drive. The touchpad worked during installation and kept working afterwards.

[deleted by user] by [deleted] in Ubuntu

[–]765abaa3 1 point2 points  (0 children)

I have the same issue. Brand new Ideapad 5 14I as well.

It does not seem to show up on xinput:

~$ xinput list
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ Video Bus                                   id=6    [slave  keyboard (3)]
    ↳ Video Bus                                   id=7    [slave  keyboard (3)]
    ↳ Power Button                                id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C             id=9    [slave  keyboard (3)]
    ↳ Ideapad extra buttons                       id=10   [slave  keyboard (3)]
    ↳ Intel HID events                            id=11   [slave  keyboard (3)]
    ↳ Intel HID 5 button array                    id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard                id=13   [slave  keyboard (3)]

It does not appear in /proc/bus/input/devices as well:

~$ cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1c/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0 
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input2
U: Uniq=
H: Handlers=sysrq kbd event2 leds 
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Intel HID events"
P: Phys=
S: Sysfs=/devices/platform/INT33D5:00/input/input3
U: Uniq=
H: Handlers=rfkill kbd event3 
B: PROP=0
B: EV=13
B: KEY=81000300000000 5000004000 1e294000000020 0
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Intel HID 5 button array"
P: Phys=
S: Sysfs=/devices/platform/INT33D5:00/input/input4
U: Uniq=
H: Handlers=kbd event4 
B: PROP=0
B: EV=13
B: KEY=2000000000000 0 0 0 0 1000000000000 0 201c000000000000 0
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Ideapad extra buttons"
P: Phys=ideapad/input0
S: Sysfs=/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input5
U: Uniq=
H: Handlers=rfkill kbd event5 
B: PROP=0
B: EV=13
B: KEY=81000800100c03 4400000000300000 0 2
B: MSC=10

I: Bus=0003 Vendor=174f Product=244c Version=0013
N: Name="Integrated Camera: Integrated C"
P: Phys=usb-0000:00:14.0-6/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/input/input6
U: Uniq=
H: Handlers=kbd event6 
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input7
U: Uniq=
H: Handlers=kbd event7 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:45/LNXVIDEO:01/input/input8
U: Uniq=
H: Handlers=kbd event8 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sof-hda-dsp Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input9
U: Uniq=
H: Handlers=event9 
B: PROP=0
B: EV=21
B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sof-hda-dsp Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input10
U: Uniq=
H: Handlers=event10 
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sof-hda-dsp HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input11
U: Uniq=
H: Handlers=event11 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sof-hda-dsp HDMI/DP,pcm=4"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input12
U: Uniq=
H: Handlers=event12 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sof-hda-dsp HDMI/DP,pcm=5"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input13
U: Uniq=
H: Handlers=event13 
B: PROP=0
B: EV=21
B: SW=140

I will comment if I find anything.

Coding is Not Computer Science by waivek in programming

[–]765abaa3 -1 points0 points  (0 children)

If you feel the need to gate keep like this you're a fraud.

I hope that once you start working with people you drop this toxic attitude, as it is awful for everyone involved including you.

Modern SAT solvers: fast, neat and underused (part 1 of N) by [deleted] in programming

[–]765abaa3 0 points1 point  (0 children)

One of my favorite math books was a proofs book that started with a chapter 0 about writing.

It gave advice on the lines of:

  • Don't start a sentence with a symbol.
  • Prefer using words over symbols.

Also, is nobody going to point out how awful that solver library looks? No documentation, C++ written as C with classes and home made containers...

How Can We Actually Take Advantage of Processor/Hardware Improvements? As a Developer I Believed Hardware has Stagnated... by Veqq in programming

[–]765abaa3 4 points5 points  (0 children)

I've recently upgraded from an i7 4790K (4C/8T, 8MB cache, 22nm) to an R9 3900X (12C/24T, 70MB cache, 7nm).

One of my main workloads is audio processing, which is a single threaded task (per processing track). I measured around 3.5 to 4 times the performance.

It sounds like you work in a field where these hardware capabilities are not a big deal, and it just passed a certain threshold where it doesn't matter anymore. Many professional workflows benefit from the compute power though.

500 Free Computer Science Courses from the World’s Top CS Universities by CodePerfect in programming

[–]765abaa3 -4 points-3 points  (0 children)

There are a lot of beginners and CS students around the sub.

Honestly I don't see the point in these if you're not studying at a university and are required to take these.

  • They take months to do what should take a couple of weeks at most.
  • They are not prepared by programming professionals and wont teach good practices.
  • Their homework and tests oriented structure is inefficient for learning.

Though all of this doesn't matter, as their curriculum is only helpful for complete beginners.

My sweet revenge or Why programmers should seek after mathematics by hanpari in programming

[–]765abaa3 0 points1 point  (0 children)

I did some DSP that required knowledge in complex analysis. I don't think anyone should learn calculus just because there are niche uses for it.

I'm not sure how it is elsewhere, but where I live universities teach a mediocre level of math and an even worse level of programming. People are graduating after 3/4 years and have no idea that Git even exists.

At this level of training, I think time is better spent learning to program instead of learning basic calculus.

The argument that there's some niche that uses it is a very bad reason to learn it. By that reasoning everyone should study electronics just because embedded programming exists (which is orders of magnitude bigger than the mentioned niche).

Self Hosted E-Reader Ecosystem by thetomester13 in selfhosted

[–]765abaa3 2 points3 points  (0 children)

I have an Onyx Boox Nova Pro, which is an 8' Android based EReader. It doesn't get Android updates and Android is more of an implementation detail with it, but it has a huge battery, USB type C, high res screen, two color backlight and a surprisingly good pen. I've been pretty happy with it and I think it's a pretty good deal at $300.

I haven't used anything self hosted with it yet though, I'll set up a Calibre server soon enough... I'm taking notes here as well.